Skip to content

Commit 0d511ad

Browse files
committed
升级版本
1 parent b60e8a1 commit 0d511ad

File tree

5 files changed

+13
-11
lines changed

5 files changed

+13
-11
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@
5151
buildscript {
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
164164
dependencies {
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
280280
dependencies {
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

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ DEVELOPER_ID=FlyJingFish
3535
DEVELOPER_NAME=FlyJingFish
3636
DEVELOPER_EMAIL=749617782@qq.com
3737

38-
TestVersion = 1.2.2
38+
TestVersion = 1.2.3
3939
SonatypeTestCode = 1332
4040
TestType = 0
4141

module-communication-plugin/src/main/kotlin/com/flyjingfish/module_communication_plugin/LibVersion.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package com.flyjingfish.module_communication_plugin
22

33
object 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"

module-communication-route/src/main/java/com/flyjingfish/module_communication_route/ModuleRoute.kt

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff 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
/**

version.properties

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
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

0 commit comments

Comments
 (0)