File tree Expand file tree Collapse file tree 11 files changed +33
-28
lines changed
java/com/blankj/utilcode/util Expand file tree Collapse file tree 11 files changed +33
-28
lines changed Original file line number Diff line number Diff line change 1+ * ` 18/12/17 ` [ fix] Utils$FileProvider4UtilCode not found. Publish v1.22.3.
12* ` 18/12/17 ` [ fix] ToastUtils leak. Publish v1.22.2.
23* ` 18/12/09 ` [ add] Component for the project.
34* ` 18/12/04 ` [ add] BusUtils. Publish v1.22.1.
Original file line number Diff line number Diff line change 4141
4242[ logo ] : https://raw.githubusercontent.com/Blankj/AndroidUtilCode/master/art/logo.png
4343
44- [ aucSvg ] : https://img.shields.io/badge/AndroidUtilCode-v1.22.2 -brightgreen.svg
44+ [ aucSvg ] : https://img.shields.io/badge/AndroidUtilCode-v1.22.3 -brightgreen.svg
4545[ auc ] : https://github.com/Blankj/AndroidUtilCode
4646
4747[ 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
4141
4242[ logo ] : https://raw.githubusercontent.com/Blankj/AndroidUtilCode/master/art/logo.png
4343
44- [ aucSvg ] : https://img.shields.io/badge/AndroidUtilCode-v1.22.2 -brightgreen.svg
44+ [ aucSvg ] : https://img.shields.io/badge/AndroidUtilCode-v1.22.3 -brightgreen.svg
4545[ auc ] : https://github.com/Blankj/AndroidUtilCode
4646
4747[ apiSvg ] : https://img.shields.io/badge/API-14+-brightgreen.svg
Original file line number Diff line number Diff line change 55 compileSdkVersion = 27
66 minSdkVersion = 14
77 targetSdkVersion = 27
8- versionCode = 1_022_002
9- versionName = ' 1.22.2 ' // E.g. 1.9.72 => 1,009,072
8+ versionCode = 1_022_003
9+ versionName = ' 1.22.3 ' // E.g. 1.9.72 => 1,009,072
1010
1111 bus = [
1212 isDebug : false ,
Original file line number Diff line number Diff line change 44
55dependencies {
66 implementation fileTree(include : [' *.jar' ], dir : ' libs' )
7- // api project(':utilcode-lib')
7+ api project(' :utilcode-lib' )
88 api project(' :subutil-lib' )
99
1010 api dep. support. appcompat_v7
@@ -15,5 +15,5 @@ dependencies {
1515 api dep. free_proguard
1616 api ' com.r0adkll:slidableactivity:2.0.5'
1717 compileOnly dep. leakcanary. android_no_op
18- api ' com.blankj:utilcode:1.22.2 '
18+ // api 'com.blankj:utilcode:1.22.3 '
1919}
Original file line number Diff line number Diff line change 22
33Gradle:
44``` groovy
5- implementation 'com.blankj:utilcode:1.22.2 '
5+ implementation 'com.blankj:utilcode:1.22.3 '
66```
77
88
Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ apply plugin: "com.blankj.bus"
2727给 base 模块添加 [ AndroidUtilCode] ( https://github.com/Blankj/AndroidUtilCode ) 依赖:
2828
2929``` groovy
30- api "com.blankj:utilcode:1.22.2 "
30+ api "com.blankj:utilcode:1.22.3 "
3131```
3232
3333比如 module0 中存在的 ` Module0Activity.java ` ,我们通常都是在它内部写一个 ` start ` 函数来启动它,现在我们给它添加 ` @BusUtils.Subscribe ` 注解,并给注解的 ` name ` 赋唯一值,要注意,函数务必要 ` public static ` 哦:
Original file line number Diff line number Diff line change 22
33Gradle:
44``` groovy
5- implementation 'com.blankj:utilcode:1.22.2 '
5+ implementation 'com.blankj:utilcode:1.22.3 '
66```
77
88
Original file line number Diff line number Diff line change 99 android : theme =" @style/ActivityTranslucent"
1010 android : windowSoftInputMode =" stateHidden|stateAlwaysHidden" />
1111
12- <!-- < provider-->
13- <!-- android:name=".util.Utils$FileProvider4UtilCode"-->
14- <!-- android:authorities="${applicationId}.utilcode.provider"-->
15- <!-- android:exported="false"-->
16- <!-- android:grantUriPermissions="true"-->
17- <!-- android:multiprocess="true"> -- >
18- <!-- < meta-data-->
19- <!-- android:name="android.support.FILE_PROVIDER_PATHS"-->
20- <!-- android:resource="@xml/util_code_provider_paths" /> -- >
21- <!-- < /provider> -- >
12+ <provider
13+ android : name =" .util.Utils$FileProvider4UtilCode"
14+ android : authorities =" ${applicationId}.utilcode.provider"
15+ android : exported =" false"
16+ android : grantUriPermissions =" true"
17+ android : multiprocess =" true" >
18+ <meta-data
19+ android : name =" android.support.FILE_PROVIDER_PATHS"
20+ android : resource =" @xml/util_code_provider_paths" />
21+ </provider >
2222 </application >
2323</manifest >
Original file line number Diff line number Diff line change 77import java .lang .annotation .Retention ;
88import java .lang .annotation .RetentionPolicy ;
99import java .lang .annotation .Target ;
10+ import java .util .Map ;
11+ import java .util .concurrent .ConcurrentHashMap ;
1012
1113/**
1214 * <pre>
2022 */
2123public final class BusUtils {
2224
23- private static final Object NULL = new Object ();
25+ private static final Object NULL = new Object ();
26+ private static final Map <Object , String > BUSES = new ConcurrentHashMap <>();
2427
2528 public static <T > T post (String name , Object ... objects ) {
2629 if (name == null || name .length () == 0 ) return null ;
You can’t perform that action at this time.
0 commit comments