File tree Expand file tree Collapse file tree 6 files changed +31
-15
lines changed Expand file tree Collapse file tree 6 files changed +31
-15
lines changed Original file line number Diff line number Diff line change @@ -40,8 +40,11 @@ dependencies {
40
40
implementation fileTree(dir : ' libs' , include : [' *.jar' ])
41
41
implementation ' androidx.appcompat:appcompat:1.1.0'
42
42
implementation project(' :m_test' )
43
- implementation project(" :xrouter_core" )
44
- annotationProcessor project(' :xrouter_compiler' )
45
- // implementation 'cn.cheney.xrouter:core:1.0.3'
46
- // annotationProcessor 'cn.cheney.xrouter:compiler:1.0.3'
43
+ if (debug == " true" ) {
44
+ implementation project(" :xrouter_core" )
45
+ annotationProcessor project(' :xrouter_compiler' )
46
+ } else {
47
+ implementation " cn.cheney.xrouter:core:$sdkVersion "
48
+ annotationProcessor " cn.cheney.xrouter:compiler:$sdkVersion "
49
+ }
47
50
}
Original file line number Diff line number Diff line change @@ -16,4 +16,7 @@ org.gradle.jvmargs=-Xmx2048m -Dfile.encoding=UTF-8
16
16
# https://developer.android.com/topic/libraries/support-library/androidx-rn
17
17
android.useAndroidX =true
18
18
# Automatically convert third-party libraries to use AndroidX
19
- android.enableJetifier =true
19
+ android.enableJetifier =true
20
+
21
+ debug = true
22
+ sdkVersion = 1.0.4
Original file line number Diff line number Diff line change @@ -32,8 +32,11 @@ android {
32
32
dependencies {
33
33
implementation fileTree(dir : ' libs' , include : [' *.jar' ])
34
34
implementation ' androidx.appcompat:appcompat:1.1.0'
35
- implementation project(" :xrouter_core" )
36
- annotationProcessor project(' :xrouter_compiler' )
37
- // implementation 'cn.cheney.xrouter:core:1.0.3'
38
- // annotationProcessor 'cn.cheney.xrouter:compiler:1.0.3'
35
+ if (debug == " true" ) {
36
+ implementation project(" :xrouter_core" )
37
+ annotationProcessor project(' :xrouter_compiler' )
38
+ } else {
39
+ implementation " cn.cheney.xrouter:core:$sdkVersion "
40
+ annotationProcessor " cn.cheney.xrouter:compiler:$sdkVersion "
41
+ }
39
42
}
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ apply plugin: 'java-library'
3
3
ext {
4
4
PUBLISH_GROUP_ID = " io.github.wangshuwen1107"
5
5
PUBLISH_ARTIFACT_ID = ' xrouter-annotation'
6
- PUBLISH_VERSION = ' 1.0.4 '
6
+ PUBLISH_VERSION = " $s dkVersion "
7
7
}
8
8
apply from : " ${ rootProject.projectDir} /publish-mavencentral.gradle"
9
9
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ apply plugin: 'java-library'
3
3
ext {
4
4
PUBLISH_GROUP_ID = " io.github.wangshuwen1107"
5
5
PUBLISH_ARTIFACT_ID = ' xrouter-compiler'
6
- PUBLISH_VERSION = ' 1.0.4 '
6
+ PUBLISH_VERSION = " $s dkVersion "
7
7
}
8
8
apply from : " ${ rootProject.projectDir} /publish-mavencentral.gradle"
9
9
@@ -13,8 +13,11 @@ java {
13
13
}
14
14
15
15
dependencies {
16
- implementation project(" :xrouter_annotation" )
17
- // implementation 'io.github.wangshuwen1107:xrouter-annotation:1.0.4'
16
+ if (debug == " true" ){
17
+ implementation project(" :xrouter_annotation" )
18
+ }else {
19
+ implementation " io.github.wangshuwen1107:xrouter-annotation:$sdkVersion "
20
+ }
18
21
compileOnly ' com.google.auto.service:auto-service-annotations:1.0-rc7'
19
22
implementation ' com.squareup:javapoet:1.10.0'
20
23
annotationProcessor ' com.google.auto.service:auto-service:1.0-rc7'
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ apply plugin: 'com.android.library'
3
3
ext {
4
4
PUBLISH_GROUP_ID = " io.github.wangshuwen1107"
5
5
PUBLISH_ARTIFACT_ID = ' xrouter-core'
6
- PUBLISH_VERSION = ' 1.0.4 '
6
+ PUBLISH_VERSION = " $s dkVersion "
7
7
}
8
8
apply from : " ${ rootProject.projectDir} /publish-mavencentral.gradle"
9
9
@@ -38,7 +38,11 @@ android {
38
38
dependencies {
39
39
api ' com.alibaba:fastjson:1.2.23'
40
40
api project(" :xrouter_annotation" )
41
- // api 'io.github.wangshuwen1107:xrouter-annotation:1.0.4'
41
+ if (debug == " true" ){
42
+ api project(" :xrouter_annotation" )
43
+ }else {
44
+ api " io.github.wangshuwen1107:xrouter-annotation:$sdkVersion "
45
+ }
42
46
}
43
47
44
48
You can’t perform that action at this time.
0 commit comments