File tree Expand file tree Collapse file tree 11 files changed +24
-10
lines changed
utilcode/pkg/src/main/java/com/blankj/utilcode/pkg/feature/bus Expand file tree Collapse file tree 11 files changed +24
-10
lines changed Original file line number Diff line number Diff line change 1
- * ` 19/07/15 ` [ upd] Bus plugin for use BusUtils. Publish bus plugin v2.0.
2
- * ` 19/07/15 ` [ add] Api plugin for use ApiUtils. Publish api plugin v1.0.
1
+ * ` 19/07/15 ` [ add] Publish v1.25.0.
2
+ * ` 19/07/14 ` [ upd] Bus plugin for use BusUtils. Publish bus plugin v2.0.
3
+ * ` 19/07/13 ` [ add] Api plugin for use ApiUtils. Publish api plugin v1.0.
3
4
* ` 19/07/09 ` [ upd] The frame of project.
4
5
* ` 19/07/06 ` [ upd] BusUtils which behave same as EventBus.
5
6
* ` 19/07/03 ` [ add] ApiUtils which decoupling modules.
6
- * ` 19/06/30 ` [ add] LanguageUtils support activity's class name. Publish v1.24.7 .
7
+ * ` 19/06/30 ` [ add] LanguageUtils support activity's class name. Publish v1.25.0 .
7
8
* ` 19/06/29 ` [ add] ClickUtils#OnMultiClickListener, and remove dangerous function. Publish v1.24.6.
8
9
* ` 19/06/28 ` [ add] LanguageUtils. Publish v1.24.5.
9
10
* ` 19/06/20 ` [ fix] BusUtils' permission. Publish v1.24.4.
Original file line number Diff line number Diff line change 41
41
42
42
[ logo ] : https://raw.githubusercontent.com/Blankj/AndroidUtilCode/master/art/logo.png
43
43
44
- [ aucSvg ] : https://img.shields.io/badge/AndroidUtilCode-v1.24.7 -brightgreen.svg
44
+ [ aucSvg ] : https://img.shields.io/badge/AndroidUtilCode-v1.25.0 -brightgreen.svg
45
45
[ auc ] : https://github.com/Blankj/AndroidUtilCode
46
46
47
47
[ apiSvg ] : https://img.shields.io/badge/API-14+-brightgreen.svg
Original file line number Diff line number Diff line change @@ -41,7 +41,7 @@ If this project helps you a lot and you want to support the project's developmen
41
41
42
42
[ logo ] : https://raw.githubusercontent.com/Blankj/AndroidUtilCode/master/art/logo.png
43
43
44
- [ aucSvg ] : https://img.shields.io/badge/AndroidUtilCode-v1.24.7 -brightgreen.svg
44
+ [ aucSvg ] : https://img.shields.io/badge/AndroidUtilCode-v1.25.0 -brightgreen.svg
45
45
[ auc ] : https://github.com/Blankj/AndroidUtilCode
46
46
47
47
[ apiSvg ] : https://img.shields.io/badge/API-14+-brightgreen.svg
Original file line number Diff line number Diff line change @@ -17,6 +17,7 @@ android {
17
17
release {
18
18
minifyEnabled false
19
19
proguardFiles getDefaultProguardFile(' proguard-android.txt' ), ' proguard-rules.pro'
20
+ consumerProguardFiles ' proguard-rules.pro'
20
21
}
21
22
}
22
23
Original file line number Diff line number Diff line change @@ -99,7 +99,10 @@ class Config {
99
99
glide : new DepConfig (" com.github.bumptech.glide:glide:4.7.1" ),
100
100
retrofit : new DepConfig (" com.squareup.retrofit2:retrofit:2.4.0" ),
101
101
commons_io : new DepConfig (" commons-io:commons-io:2.6" ),
102
- eventbus : new DepConfig (" org.greenrobot:eventbus:3.1.1" ),
102
+ eventbus : [
103
+ lib : new DepConfig (" org.greenrobot:eventbus:3.1.1" ),
104
+ processor : new DepConfig (" org.greenrobot:eventbus-annotation-processor:3.0.1" )
105
+ ],
103
106
104
107
test : [
105
108
junit : new DepConfig (" junit:junit:4.12" ),
Original file line number Diff line number Diff line change 1
1
apply plugin : ' kotlin-kapt'
2
2
3
3
dependencies {
4
- kapt ' org.greenrobot: eventbus-annotation- processor:3.0.1 '
4
+ kapt Config . depConfig . eventbus. processor. dep
5
5
}
Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ package com.blankj.utilcode.pkg.feature.bus
3
3
import android.content.Context
4
4
import android.content.Intent
5
5
import android.os.Bundle
6
+ import android.support.annotation.Keep
6
7
import android.view.View
7
8
import com.blankj.lib.common.CommonTitleActivity
8
9
import com.blankj.utilcode.pkg.R
@@ -112,6 +113,7 @@ class BusActivity : CommonTitleActivity() {
112
113
BusUtils .unregister(this )
113
114
}
114
115
116
+ @Keep
115
117
interface Callback {
116
118
fun call (): String
117
119
}
Original file line number Diff line number Diff line change @@ -269,6 +269,7 @@ class BusCompareActivity : CommonTaskActivity<Unit>() {
269
269
private fun setBtnEnabled (enable : Boolean ) {
270
270
busCompareRegister10000TimesBtn.isEnabled = enable
271
271
busComparePostTo1Subscriber1000000TimesBtn.isEnabled = enable
272
+ busComparePostTo100Subscribers100000TimesBtn.isEnabled = enable
272
273
busCompareUnregister10000TimesBtn.isEnabled = enable
273
274
}
274
275
Original file line number Diff line number Diff line change @@ -10,6 +10,6 @@ dependencies {
10
10
api Config . depConfig. kotlin. dep
11
11
api Config . depConfig. free_proguard. dep
12
12
api Config . depConfig. swipe_panel. dep
13
- api Config . depConfig. eventbus. dep
13
+ api Config . depConfig. eventbus. lib . dep
14
14
compileOnly Config . depConfig. leakcanary. android_no_op. dep
15
15
}
Original file line number Diff line number Diff line change @@ -20,5 +20,5 @@ dependencies {
20
20
testImplementation Config . depConfig. test. junit. dep
21
21
testImplementation Config . depConfig. test. robolectric. dep
22
22
testImplementation Config . depConfig. support. appcompat_v7. dep
23
- testImplementation Config . depConfig. eventbus. dep
23
+ testImplementation Config . depConfig. eventbus. lib . dep
24
24
}
Original file line number Diff line number Diff line change 15
15
#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
16
16
# public *;
17
17
#}
18
- -dontwarn com.blankj.utilcode.**
18
+ -dontwarn com.blankj.utilcode.**
19
+
20
+ -keepclassmembers class * {
21
+ @com.blankj.utilcode.util.BusUtils$Bus <methods>;
22
+ }
23
+
24
+ -keepattributes *Annotation*
You can’t perform that action at this time.
0 commit comments