提交 81341d32 编写于 作者: B Blankj

see 12/17 log

上级 d5b7d919
* `18/12/17` [fix] Utils$FileProvider4UtilCode not found. Publish v1.22.3.
* `18/12/17` [fix] ToastUtils leak. Publish v1.22.2.
* `18/12/09` [add] Component for the project.
* `18/12/04` [add] BusUtils. Publish v1.22.1.
......
......@@ -41,7 +41,7 @@
[logo]: https://raw.githubusercontent.com/Blankj/AndroidUtilCode/master/art/logo.png
[aucSvg]: https://img.shields.io/badge/AndroidUtilCode-v1.22.2-brightgreen.svg
[aucSvg]: https://img.shields.io/badge/AndroidUtilCode-v1.22.3-brightgreen.svg
[auc]: https://github.com/Blankj/AndroidUtilCode
[apiSvg]: https://img.shields.io/badge/API-14+-brightgreen.svg
......
......@@ -41,7 +41,7 @@ If this project helps you a lot and you want to support the project's developmen
[logo]: https://raw.githubusercontent.com/Blankj/AndroidUtilCode/master/art/logo.png
[aucSvg]: https://img.shields.io/badge/AndroidUtilCode-v1.22.2-brightgreen.svg
[aucSvg]: https://img.shields.io/badge/AndroidUtilCode-v1.22.3-brightgreen.svg
[auc]: https://github.com/Blankj/AndroidUtilCode
[apiSvg]: https://img.shields.io/badge/API-14+-brightgreen.svg
......
......@@ -5,8 +5,8 @@ ext {
compileSdkVersion = 27
minSdkVersion = 14
targetSdkVersion = 27
versionCode = 1_022_002
versionName = '1.22.2'// E.g. 1.9.72 => 1,009,072
versionCode = 1_022_003
versionName = '1.22.3'// E.g. 1.9.72 => 1,009,072
bus = [
isDebug: false,
......
......@@ -4,7 +4,7 @@ apply {
dependencies {
implementation fileTree(include: ['*.jar'], dir: 'libs')
// api project(':utilcode-lib')
api project(':utilcode-lib')
api project(':subutil-lib')
api dep.support.appcompat_v7
......@@ -15,5 +15,5 @@ dependencies {
api dep.free_proguard
api 'com.r0adkll:slidableactivity:2.0.5'
compileOnly dep.leakcanary.android_no_op
api 'com.blankj:utilcode:1.22.2'
// api 'com.blankj:utilcode:1.22.3'
}
\ No newline at end of file
......@@ -2,7 +2,7 @@
Gradle:
```groovy
implementation 'com.blankj:utilcode:1.22.2'
implementation 'com.blankj:utilcode:1.22.3'
```
......
......@@ -27,7 +27,7 @@ apply plugin: "com.blankj.bus"
给 base 模块添加 [AndroidUtilCode](https://github.com/Blankj/AndroidUtilCode) 依赖:
```groovy
api "com.blankj:utilcode:1.22.2"
api "com.blankj:utilcode:1.22.3"
```
比如 module0 中存在的 `Module0Activity.java`,我们通常都是在它内部写一个 `start` 函数来启动它,现在我们给它添加 `@BusUtils.Subscribe` 注解,并给注解的 `name` 赋唯一值,要注意,函数务必要 `public static` 哦:
......
......@@ -2,7 +2,7 @@
Gradle:
```groovy
implementation 'com.blankj:utilcode:1.22.2'
implementation 'com.blankj:utilcode:1.22.3'
```
......
......@@ -9,15 +9,15 @@
android:theme="@style/ActivityTranslucent"
android:windowSoftInputMode="stateHidden|stateAlwaysHidden" />
<!--<provider-->
<!--android:name=".util.Utils$FileProvider4UtilCode"-->
<!--android:authorities="${applicationId}.utilcode.provider"-->
<!--android:exported="false"-->
<!--android:grantUriPermissions="true"-->
<!--android:multiprocess="true">-->
<!--<meta-data-->
<!--android:name="android.support.FILE_PROVIDER_PATHS"-->
<!--android:resource="@xml/util_code_provider_paths" />-->
<!--</provider>-->
<provider
android:name=".util.Utils$FileProvider4UtilCode"
android:authorities="${applicationId}.utilcode.provider"
android:exported="false"
android:grantUriPermissions="true"
android:multiprocess="true">
<meta-data
android:name="android.support.FILE_PROVIDER_PATHS"
android:resource="@xml/util_code_provider_paths" />
</provider>
</application>
</manifest>
\ No newline at end of file
......@@ -7,6 +7,8 @@ import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;
/**
* <pre>
......@@ -20,7 +22,8 @@ import java.lang.annotation.Target;
*/
public final class BusUtils {
private static final Object NULL = new Object();
private static final Object NULL = new Object();
private static final Map<Object, String> BUSES = new ConcurrentHashMap<>();
public static <T> T post(String name, Object... objects) {
if (name == null || name.length() == 0) return null;
......
......@@ -7,6 +7,7 @@ import android.app.Application;
import android.app.Application.ActivityLifecycleCallbacks;
import android.content.Context;
import android.os.Bundle;
import android.support.v4.content.FileProvider;
import java.lang.reflect.Field;
import java.lang.reflect.InvocationTargetException;
......@@ -331,14 +332,14 @@ public final class Utils {
}
}
// public static final class FileProvider4UtilCode extends FileProvider {
//
// @Override
// public boolean onCreate() {
// Utils.init(getContext());
// return true;
// }
// }
public static final class FileProvider4UtilCode extends FileProvider {
@Override
public boolean onCreate() {
Utils.init(getContext());
return true;
}
}
///////////////////////////////////////////////////////////////////////////
// interface
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册