File tree Expand file tree Collapse file tree 5 files changed +13
-11
lines changed
module-communication-plugin/src/main/kotlin/com/flyjingfish/module_communication_plugin
module-communication-route/src/main/java/com/flyjingfish/module_communication_route Expand file tree Collapse file tree 5 files changed +13
-11
lines changed Original file line number Diff line number Diff line change 51
51
buildscript {
52
52
dependencies {
53
53
//必须项 👇
54
- classpath 'io.github.FlyJingFish.ModuleCommunication:module-communication-plugin:1.2.2 '
54
+ classpath 'io.github.FlyJingFish.ModuleCommunication:module-communication-plugin:1.2.3 '
55
55
}
56
56
}
57
57
```
@@ -163,7 +163,7 @@ b、如果 ```lib-login``` 也没有引入过 ```communication.export``` 插件
163
163
``` gradle
164
164
dependencies {
165
165
//必须项 👇(可以直接放在公共 module)
166
- implementation 'io.github.FlyJingFish.ModuleCommunication:module-communication-annotation:1.2.2 '
166
+ implementation 'io.github.FlyJingFish.ModuleCommunication:module-communication-annotation:1.2.3 '
167
167
}
168
168
```
169
169
@@ -279,9 +279,9 @@ communicationConfig{
279
279
``` gradle
280
280
dependencies {
281
281
//使用拦截器(不是必须的)
282
- implementation 'io.github.FlyJingFish.ModuleCommunication:module-communication-intercept:1.2.2 '
282
+ implementation 'io.github.FlyJingFish.ModuleCommunication:module-communication-intercept:1.2.3 '
283
283
//使用路径的方式跳转才需要 (不是必须的)
284
- implementation 'io.github.FlyJingFish.ModuleCommunication:module-communication-route:1.2.2 '
284
+ implementation 'io.github.FlyJingFish.ModuleCommunication:module-communication-route:1.2.3 '
285
285
}
286
286
```
287
287
Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ DEVELOPER_ID=FlyJingFish
35
35
DEVELOPER_NAME =FlyJingFish
36
36
DEVELOPER_EMAIL =749617782@qq.com
37
37
38
- TestVersion = 1.2.2
38
+ TestVersion = 1.2.3
39
39
SonatypeTestCode = 1332
40
40
TestType = 0
41
41
Original file line number Diff line number Diff line change 1
1
package com.flyjingfish.module_communication_plugin
2
2
3
3
object LibVersion {
4
- const val version = " 1.2.2 "
4
+ const val version = " 1.2.3 "
5
5
const val buildDir = " communication"
6
6
const val pathName = " java"
7
7
const val resName = " res"
Original file line number Diff line number Diff line change @@ -147,16 +147,17 @@ object ModuleRoute {
147
147
}
148
148
149
149
private fun goActivity (context : Context ,intent : Intent ){
150
+ val onGoActivity = this .onGoActivity
150
151
if (Looper .getMainLooper() == Looper .myLooper()){
151
152
if (onGoActivity != null ){
152
- onGoActivity? .onGo(context, intent)
153
+ onGoActivity.onGo(context, intent)
153
154
return
154
155
}
155
156
context.startActivity(intent)
156
157
}else {
157
158
handler.post {
158
159
if (onGoActivity != null ){
159
- onGoActivity? .onGo(context, intent)
160
+ onGoActivity.onGo(context, intent)
160
161
}else {
161
162
context.startActivity(intent)
162
163
}
@@ -167,8 +168,9 @@ object ModuleRoute {
167
168
/* *
168
169
* 设置此项之后 你需要自己去写 [Context.startActivity]
169
170
*/
170
- fun setOnGoActivity (onGoActivity : OnGoActivity ){
171
+ fun setOnGoActivity (onGoActivity : OnGoActivity ): RouteBuilder {
171
172
this .onGoActivity = onGoActivity
173
+ return this
172
174
}
173
175
174
176
/* *
Original file line number Diff line number Diff line change 1
- # Fri May 24 18:44:45 CST 2024
2
- PROJ_VERSION =1.2.2
1
+ # Fri May 24 19:09:16 CST 2024
2
+ PROJ_VERSION =1.2.3
You can’t perform that action at this time.
0 commit comments