Skip to content

Commit a75f666

Browse files
authored
Merge pull request Blankj#822 from Blankj/1.23.3
1.23.3
2 parents 59fd054 + a56a1f4 commit a75f666

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

48 files changed

+538
-435
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
* `19/01/29` [fix] LogUtils format json when json not start with '{'. Publish v1.23.3.
2+
* `19/01/28` [fix] KeyboardUtils#fixSoftInputLeaks don't work on the device of HuaWei.
3+
* `19/01/26` [fix] NetworkUtils#getNetworkType.
14
* `19/01/25` [add] CloneUtils, PermissionUtils support request permission of WRITE_SETTINGS and DRAW_OVERLAYS. Publish v1.23.2.
25
* `19/01/24` [add] BrightnessUtils and FlashlightUtils.
36
* `19/01/23` [add] Modify the demo of utilcode use kotlin. Publish v1.23.1.

README-CN.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141

4242
[logo]: https://raw.githubusercontent.com/Blankj/AndroidUtilCode/master/art/logo.png
4343

44-
[aucSvg]: https://img.shields.io/badge/AndroidUtilCode-v1.23.2-brightgreen.svg
44+
[aucSvg]: https://img.shields.io/badge/AndroidUtilCode-v1.23.3-brightgreen.svg
4545
[auc]: https://github.com/Blankj/AndroidUtilCode
4646

4747
[apiSvg]: https://img.shields.io/badge/API-14+-brightgreen.svg

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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.23.2-brightgreen.svg
44+
[aucSvg]: https://img.shields.io/badge/AndroidUtilCode-v1.23.3-brightgreen.svg
4545
[auc]: https://github.com/Blankj/AndroidUtilCode
4646

4747
[apiSvg]: https://img.shields.io/badge/API-14+-brightgreen.svg

config.gradle

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ ext {
55
compileSdkVersion = 27
66
minSdkVersion = 14
77
targetSdkVersion = 27
8-
versionCode = 1_023_002
9-
versionName = '1.23.2'// E.g. 1.9.72 => 1,009,072
8+
versionCode = 1_023_003
9+
versionName = '1.23.3'// E.g. 1.9.72 => 1,009,072
1010

1111
bus = [
1212
isDebug: false,
@@ -17,7 +17,7 @@ ext {
1717
// lib version
1818
kotlin_version = '1.3.0'
1919
support_version = '27.1.1'
20-
leakcanary_version = '1.5.4'
20+
leakcanary_version = '1.6.3'
2121

2222
dep = [
2323
plugin : [
@@ -38,8 +38,9 @@ ext {
3838
constraint : "com.android.support.constraint:constraint-layout:1.1.3",
3939
kotlin : "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version",
4040
leakcanary : [
41-
android : "com.squareup.leakcanary:leakcanary-android:$leakcanary_version",
42-
android_no_op: "com.squareup.leakcanary:leakcanary-android-no-op:$leakcanary_version",
41+
android : "com.squareup.leakcanary:leakcanary-android:$leakcanary_version",
42+
android_no_op : "com.squareup.leakcanary:leakcanary-android-no-op:$leakcanary_version",
43+
support_fragment: "com.squareup.leakcanary:leakcanary-support-fragment:$leakcanary_version"
4344
],
4445
free_proguard: "com.blankj:free-proguard:0.0.7",
4546
adapt_screen : "com.blankj:adapt-screen:0.0.3",

config_app.gradle

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ android {
4040
dependencies {
4141
// LeakCanary
4242
debugImplementation dep.leakcanary.android
43+
debugImplementation dep.leakcanary.support_fragment
4344
releaseImplementation dep.leakcanary.android_no_op
4445
}
4546

lib/base/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -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.23.2'
18+
// api 'com.blankj:utilcode:1.23.3'
1919
}

subutil/pkg/src/main/java/com/blankj/subutil/pkg/feature/location/LocationActivity.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ class LocationActivity : BaseBackActivity() {
5151
override fun getLocation(lastLatitude: String, lastLongitude: String, latitude: String,
5252
longitude: String, country: String, locality: String, street: String) {
5353
runOnUiThread {
54-
locationAboutTv.text = SpanUtils()
54+
SpanUtils.with(locationAboutTv)
5555
.appendLine("lastLatitude: $lastLatitude")
5656
.appendLine("lastLongitude: $lastLongitude")
5757
.appendLine("latitude: $latitude")
@@ -77,7 +77,7 @@ class LocationActivity : BaseBackActivity() {
7777
override fun initView(savedInstanceState: Bundle?, contentView: View) {
7878
setTitle(R.string.demo_location)
7979

80-
locationAboutTv.text = SpanUtils()
80+
SpanUtils.with(locationAboutTv)
8181
.appendLine("lastLatitude: unknown")
8282
.appendLine("lastLongitude: unknown")
8383
.appendLine("latitude: unknown")

utilcode/README-CN.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
Gradle:
44
```groovy
5-
implementation 'com.blankj:utilcode:1.23.2'
5+
implementation 'com.blankj:utilcode:1.23.3'
66
```
77

88

utilcode/README-STATIC-BUS.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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.23.2"
30+
api "com.blankj:utilcode:1.23.3"
3131
```
3232

3333
比如 module0 中存在的 `Module0Activity.java`,我们通常都是在它内部写一个 `start` 函数来启动它,现在我们给它添加 `@BusUtils.Subscribe` 注解,并给注解的 `name` 赋唯一值,要注意,函数务必要 `public static` 哦:

utilcode/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
Gradle:
44
```groovy
5-
implementation 'com.blankj:utilcode:1.23.2'
5+
implementation 'com.blankj:utilcode:1.23.3'
66
```
77

88

0 commit comments

Comments
 (0)