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 5151buildscript {
5252 dependencies {
5353 //必须项 👇
54- classpath 'io.github.FlyJingFish.ModuleCommunication:module-communication-plugin:1.2.2 '
54+ classpath 'io.github.FlyJingFish.ModuleCommunication:module-communication-plugin:1.2.3 '
5555 }
5656}
5757```
@@ -163,7 +163,7 @@ b、如果 ```lib-login``` 也没有引入过 ```communication.export``` 插件
163163``` gradle
164164dependencies {
165165 //必须项 👇(可以直接放在公共 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 '
167167}
168168```
169169
@@ -279,9 +279,9 @@ communicationConfig{
279279``` gradle
280280dependencies {
281281 //使用拦截器(不是必须的)
282- implementation 'io.github.FlyJingFish.ModuleCommunication:module-communication-intercept:1.2.2 '
282+ implementation 'io.github.FlyJingFish.ModuleCommunication:module-communication-intercept:1.2.3 '
283283 //使用路径的方式跳转才需要 (不是必须的)
284- implementation 'io.github.FlyJingFish.ModuleCommunication:module-communication-route:1.2.2 '
284+ implementation 'io.github.FlyJingFish.ModuleCommunication:module-communication-route:1.2.3 '
285285}
286286```
287287
Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ DEVELOPER_ID=FlyJingFish
3535DEVELOPER_NAME =FlyJingFish
36363737
38- TestVersion = 1.2.2
38+ TestVersion = 1.2.3
3939SonatypeTestCode = 1332
4040TestType = 0
4141
Original file line number Diff line number Diff line change 11package com.flyjingfish.module_communication_plugin
22
33object LibVersion {
4- const val version = " 1.2.2 "
4+ const val version = " 1.2.3 "
55 const val buildDir = " communication"
66 const val pathName = " java"
77 const val resName = " res"
Original file line number Diff line number Diff line change @@ -147,16 +147,17 @@ object ModuleRoute {
147147 }
148148
149149 private fun goActivity (context : Context ,intent : Intent ){
150+ val onGoActivity = this .onGoActivity
150151 if (Looper .getMainLooper() == Looper .myLooper()){
151152 if (onGoActivity != null ){
152- onGoActivity? .onGo(context, intent)
153+ onGoActivity.onGo(context, intent)
153154 return
154155 }
155156 context.startActivity(intent)
156157 }else {
157158 handler.post {
158159 if (onGoActivity != null ){
159- onGoActivity? .onGo(context, intent)
160+ onGoActivity.onGo(context, intent)
160161 }else {
161162 context.startActivity(intent)
162163 }
@@ -167,8 +168,9 @@ object ModuleRoute {
167168 /* *
168169 * 设置此项之后 你需要自己去写 [Context.startActivity]
169170 */
170- fun setOnGoActivity (onGoActivity : OnGoActivity ){
171+ fun setOnGoActivity (onGoActivity : OnGoActivity ): RouteBuilder {
171172 this .onGoActivity = onGoActivity
173+ return this
172174 }
173175
174176 /* *
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