Skip to content

Commit f246297

Browse files
committed
1、更新版本
1 parent 215b95d commit f246297

File tree

4 files changed

+22
-7
lines changed

4 files changed

+22
-7
lines changed

README.md

Lines changed: 18 additions & 3 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.1.2'
54+
classpath 'io.github.FlyJingFish.ModuleCommunication:module-communication-plugin:1.1.3'
5555
}
5656
}
5757
```
@@ -84,7 +84,10 @@ plugins {
8484
- 3、在项目根目录的 ```gradle.properties``` 新增如下配置
8585

8686
```
87-
CommunicationModuleName = communication
87+
//公共导出的 module 名
88+
communication.moduleName = communication
89+
//是否自动在设置 communication.export 插件的 module 自动 compileOnly 入公共的 module(前提是已经设置了 communication.moduleName)
90+
communication.antoCompileOnly = true
8891
```
8992

9093
### 三、开始使用
@@ -160,7 +163,7 @@ b、如果 ```lib-login``` 也已经引入过 ```communication.export``` 插件
160163
```gradle
161164
dependencies {
162165
//必须项 👇(可以直接放在公共 module)
163-
implementation 'io.github.FlyJingFish.ModuleCommunication:module-communication-annotation:1.1.2'
166+
implementation 'io.github.FlyJingFish.ModuleCommunication:module-communication-annotation:1.1.3'
164167
}
165168
```
166169

@@ -342,6 +345,18 @@ class LoginActivity: AppCompatActivity() {
342345
}
343346
```
344347

348+
设置以下设置可以生成空的导航方法,这样方便移除当前module
349+
350+
```gradle
351+
communicationConfig{
352+
//第一步生成
353+
exportEmptyRoute = false
354+
exportModuleName = "communication2"
355+
}
356+
```
357+
358+
> 可能你会问移除当前module,那么导航类不也就没了吗,当然是的,`exportEmptyRoute = false` 是第1步,第2步就是设置单独导出的通信 module,然后在强引用(例如:implementation)通信 module 即可
359+
345360
#### 混淆规则
346361

347362
下边是涉及到本库的一些必须混淆规则

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.1.2
38+
TestVersion = 1.1.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.1.2"
4+
const val version = "1.1.3"
55
const val buildDir = "communication"
66
const val pathName = "java"
77
const val resName = "res"

version.properties

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
#Mon Apr 15 19:05:04 CST 2024
2-
PROJ_VERSION=1.1.2
1+
#Thu May 16 22:48:13 CST 2024
2+
PROJ_VERSION=1.1.3

0 commit comments

Comments
 (0)