File tree Expand file tree Collapse file tree 4 files changed +22
-7
lines changed
module-communication-plugin/src/main/kotlin/com/flyjingfish/module_communication_plugin Expand file tree Collapse file tree 4 files changed +22
-7
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.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
161164dependencies {
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下边是涉及到本库的一些必须混淆规则
Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ DEVELOPER_ID=FlyJingFish
3535DEVELOPER_NAME =FlyJingFish
3636DEVELOPER_EMAIL =749617782@qq.com
3737
38- TestVersion = 1.1.2
38+ TestVersion = 1.1.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.1.2 "
4+ const val version = " 1.1.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 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
You can’t perform that action at this time.
0 commit comments