提交 81c0ec2d 编写于 作者: B Blankj

see 12/18 log

上级 a06c0d5f
* `18/12/19` [fix] ToastUtils multi show crash when run API 25. Publish v1.22.4.
* `18/12/18` [fix] ImageUtils recycle ret equals src. Publish v1.22.3.
* `18/12/17` [fix] Utils$FileProvider4UtilCode not found. Publish v1.22.3. * `18/12/17` [fix] Utils$FileProvider4UtilCode not found. Publish v1.22.3.
* `18/12/17` [fix] ToastUtils leak. Publish v1.22.2. * `18/12/17` [fix] ToastUtils leak. Publish v1.22.2.
* `18/12/09` [add] Component for the project. * `18/12/09` [add] Component for the project.
......
...@@ -41,7 +41,7 @@ ...@@ -41,7 +41,7 @@
[logo]: https://raw.githubusercontent.com/Blankj/AndroidUtilCode/master/art/logo.png [logo]: https://raw.githubusercontent.com/Blankj/AndroidUtilCode/master/art/logo.png
[aucSvg]: https://img.shields.io/badge/AndroidUtilCode-v1.22.3-brightgreen.svg [aucSvg]: https://img.shields.io/badge/AndroidUtilCode-v1.22.4-brightgreen.svg
[auc]: https://github.com/Blankj/AndroidUtilCode [auc]: https://github.com/Blankj/AndroidUtilCode
[apiSvg]: https://img.shields.io/badge/API-14+-brightgreen.svg [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 ...@@ -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 [logo]: https://raw.githubusercontent.com/Blankj/AndroidUtilCode/master/art/logo.png
[aucSvg]: https://img.shields.io/badge/AndroidUtilCode-v1.22.3-brightgreen.svg [aucSvg]: https://img.shields.io/badge/AndroidUtilCode-v1.22.4-brightgreen.svg
[auc]: https://github.com/Blankj/AndroidUtilCode [auc]: https://github.com/Blankj/AndroidUtilCode
[apiSvg]: https://img.shields.io/badge/API-14+-brightgreen.svg [apiSvg]: https://img.shields.io/badge/API-14+-brightgreen.svg
......
...@@ -5,8 +5,8 @@ ext { ...@@ -5,8 +5,8 @@ ext {
compileSdkVersion = 27 compileSdkVersion = 27
minSdkVersion = 14 minSdkVersion = 14
targetSdkVersion = 27 targetSdkVersion = 27
versionCode = 1_022_003 versionCode = 1_022_004
versionName = '1.22.3'// E.g. 1.9.72 => 1,009,072 versionName = '1.22.4'// E.g. 1.9.72 => 1,009,072
bus = [ bus = [
isDebug: false, isDebug: false,
......
...@@ -15,5 +15,5 @@ dependencies { ...@@ -15,5 +15,5 @@ dependencies {
api dep.free_proguard api dep.free_proguard
api 'com.r0adkll:slidableactivity:2.0.5' api 'com.r0adkll:slidableactivity:2.0.5'
compileOnly dep.leakcanary.android_no_op compileOnly dep.leakcanary.android_no_op
// api 'com.blankj:utilcode:1.22.3' // api 'com.blankj:utilcode:1.22.4'
} }
\ No newline at end of file
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
Gradle: Gradle:
```groovy ```groovy
implementation 'com.blankj:utilcode:1.22.3' implementation 'com.blankj:utilcode:1.22.4'
``` ```
......
...@@ -27,7 +27,7 @@ apply plugin: "com.blankj.bus" ...@@ -27,7 +27,7 @@ apply plugin: "com.blankj.bus"
给 base 模块添加 [AndroidUtilCode](https://github.com/Blankj/AndroidUtilCode) 依赖: 给 base 模块添加 [AndroidUtilCode](https://github.com/Blankj/AndroidUtilCode) 依赖:
```groovy ```groovy
api "com.blankj:utilcode:1.22.3" api "com.blankj:utilcode:1.22.4"
``` ```
比如 module0 中存在的 `Module0Activity.java`,我们通常都是在它内部写一个 `start` 函数来启动它,现在我们给它添加 `@BusUtils.Subscribe` 注解,并给注解的 `name` 赋唯一值,要注意,函数务必要 `public static` 哦: 比如 module0 中存在的 `Module0Activity.java`,我们通常都是在它内部写一个 `start` 函数来启动它,现在我们给它添加 `@BusUtils.Subscribe` 注解,并给注解的 `name` 赋唯一值,要注意,函数务必要 `public static` 哦:
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
Gradle: Gradle:
```groovy ```groovy
implementation 'com.blankj:utilcode:1.22.3' implementation 'com.blankj:utilcode:1.22.4'
``` ```
......
...@@ -25,7 +25,7 @@ public final class BusUtils { ...@@ -25,7 +25,7 @@ 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<>(); private static final Map<Object, String> BUSES = new ConcurrentHashMap<>();
public static <T> T post(String name, Object... objects) { public static <T> T post(final String name, final Object... objects) {
if (name == null || name.length() == 0) return null; if (name == null || name.length() == 0) return null;
Object o = injectShell(name, objects); Object o = injectShell(name, objects);
if (NULL.equals(o)) { if (NULL.equals(o)) {
...@@ -35,7 +35,18 @@ public final class BusUtils { ...@@ -35,7 +35,18 @@ public final class BusUtils {
return (T) o; return (T) o;
} }
private static Object injectShell(String name, Object[] objects) {
public static void register(final Object bus) {
}
public static void unregister(final Object bus) {
}
private static Object injectShell(final String name, final Object[] objects) {
return NULL; return NULL;
} }
......
...@@ -399,16 +399,16 @@ public final class ToastUtils { ...@@ -399,16 +399,16 @@ public final class ToastUtils {
@Override @Override
public void handleMessage(Message msg) { public void handleMessage(Message msg) {
try { impl.handleMessage(msg);
impl.handleMessage(msg);
} catch (Exception e) {
Log.e("ToastUtils", e.toString());
}
} }
@Override @Override
public void dispatchMessage(Message msg) { public void dispatchMessage(Message msg) {
impl.dispatchMessage(msg); try {
impl.dispatchMessage(msg);
} catch (Exception e) {
Log.e("ToastUtils", e.toString());
}
} }
} }
} }
......
...@@ -36,7 +36,7 @@ public class TimeUtilsTest { ...@@ -36,7 +36,7 @@ public class TimeUtilsTest {
private final Date tomorrowTimeDate = new Date(tomorrowTimeMillis); private final Date tomorrowTimeDate = new Date(tomorrowTimeMillis);
private final String tomorrowTimeString = defaultFormat.format(tomorrowTimeDate); private final String tomorrowTimeString = defaultFormat.format(tomorrowTimeDate);
private final String tomorrowTimeStringFormat = mFormat.format(tomorrowTimeDate); private final String tomorrowTimeStringFormat = mFormat.format(tomorrowTimeDate);
private final long delta = 8;// 允许误差8ms private final long delta = 10;// 允许误差 10ms
@Test @Test
public void millis2String() { public void millis2String() {
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
android:background="@color/white" android:background="@color/white"
tools:context=".pkg.feature.core.adaptScreen.CloseAdaptActivity"> tools:context=".feature.adaptScreen.CloseAdaptActivity">
<android.support.constraint.ConstraintLayout <android.support.constraint.ConstraintLayout
android:layout_width="match_parent" android:layout_width="match_parent"
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
android:background="@color/white" android:background="@color/white"
tools:context=".pkg.feature.core.adaptScreen.HeightActivity"> tools:context=".feature.adaptScreen.HeightActivity">
<android.support.constraint.ConstraintLayout <android.support.constraint.ConstraintLayout
android:layout_width="wrap_content" android:layout_width="wrap_content"
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
android:background="@color/white" android:background="@color/white"
tools:context=".pkg.feature.core.adaptScreen.WidthActivity"> tools:context=".feature.adaptScreen.WidthActivity">
<android.support.constraint.ConstraintLayout <android.support.constraint.ConstraintLayout
android:layout_width="match_parent" android:layout_width="match_parent"
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册