GeezerVison is showing github.com — see 04/23 log · yuchangliang/AndroidUtilCode@2a5c5e4
File treeExpand file treeCollapse file tree Open diff view settings src/main/java/com/blankj/androidutilcode/feature/core
android/support/v4/content
Expand file treeCollapse file tree Open diff view settings Collapse file Copy file name to clipboardExpand all lines: README-CN.md +1-1Lines changed: 1 addition & 1 deletion - Display the source diff
- Display the rich diff
| 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.13.16-brightgreen.svg | | 44 | +[aucsvg]: https://img.shields.io/badge/AndroidUtilCode-v1.14.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 | |
Collapse file Copy file name to clipboardExpand all lines: README.md +1-1Lines changed: 1 addition & 1 deletion - Display the source diff
- Display the rich diff
| 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.13.16-brightgreen.svg | | 44 | +[aucsvg]: https://img.shields.io/badge/AndroidUtilCode-v1.14.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 | |
Collapse file Copy file name to clipboardExpand all lines: app/build.gradle +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -57,7 +57,7 @@ dependencies { | 57 | 57 | // LeakCanary | 58 | 58 | debugImplementation "com.squareup.leakcanary:leakcanary-android:$leakcanary_version" | 59 | 59 | releaseImplementation "com.squareup.leakcanary:leakcanary-android-no-op:$leakcanary_version" | 60 | | -// implementation 'com.blankj:utilcode:1.13.15' | | 60 | +// implementation 'com.blankj:utilcode:1.14.0' | 61 | 61 | } | 62 | 62 |
| 63 | 63 |
|
Collapse file Copy file name to clipboardExpand all lines: app/src/main/java/com/blankj/androidutilcode/feature/core/CoreUtilActivity.java -5Lines changed: 0 additions & 5 deletions | Original file line number | Diff line number | Diff line change |
|---|
| 11 | 11 | import com.blankj.androidutilcode.feature.core.activity.ActivityActivity; | 12 | 12 | import com.blankj.androidutilcode.feature.core.app.AppActivity; | 13 | 13 | import com.blankj.androidutilcode.feature.core.bar.BarActivity; | 14 | | -import com.blankj.androidutilcode.feature.core.clean.CleanActivity; | 15 | 14 | import com.blankj.androidutilcode.feature.core.device.DeviceActivity; | 16 | 15 | import com.blankj.androidutilcode.feature.core.fragment.FragmentActivity; | 17 | 16 | import com.blankj.androidutilcode.feature.core.image.ImageActivity; | @@ -85,10 +84,6 @@ public void barClick(View view) { | 85 | 84 | BarActivity.start(this); | 86 | 85 | } | 87 | 86 |
| 88 | | - public void cleanClick(View view) { | 89 | | - CleanActivity.start(this); | 90 | | - } | 91 | | - | 92 | 87 | public void crashClick(View view) { | 93 | 88 | throw new NullPointerException("crash test"); | 94 | 89 | } | |
Collapse file Copy file name to clipboardExpand all lines: app/src/main/java/com/blankj/androidutilcode/feature/core/sdcard/SDCardActivity.java +2Lines changed: 2 additions & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -43,6 +43,8 @@ public void initView(Bundle savedInstanceState, View contentView) { | 43 | 43 |
| 44 | 44 | TextView tvAboutSdcard = findViewById(R.id.tv_about_sdcard); | 45 | 45 | tvAboutSdcard.setText(new SpanUtils() | | 46 | + .appendLine("isSDCardEnableByEnvironment: " + SDCardUtils.isSDCardEnableByEnvironment()) | | 47 | + .appendLine("getSDCardPathByEnvironment: " + SDCardUtils.getSDCardPathByEnvironment()) | 46 | 48 | .appendLine("isSDCardEnable: " + SDCardUtils.isSDCardEnable()) | 47 | 49 | .appendLine("getSDCardPaths: " + SDCardUtils.getSDCardPaths()) | 48 | 50 | .appendLine("getInnerSDCardPaths: " + SDCardUtils.getSDCardPaths(true)) | |
Collapse file Copy file name to clipboardExpand all lines: build.gradle +2-2Lines changed: 2 additions & 2 deletions | Original file line number | Diff line number | Diff line change |
|---|
| 33 | 33 | min_sdk_version = 14 | 34 | 34 | target_sdk_version = 27 | 35 | 35 |
| 36 | | - version_code = 1_013_016 | 37 | | - version_name = '1.13.16'// E.g 1.9.72 => 1,009,072 | | 36 | + version_code = 1_014_000 | | 37 | + version_name = '1.14.0'// E.g 1.9.72 => 1,009,072 | 38 | 38 |
| 39 | 39 | // App dependencies | 40 | 40 | support_version = '27.1.0' | |
Collapse file Copy file name to clipboardExpand all lines: update_log.md +1Lines changed: 1 addition & 0 deletions - Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|
| | 1 | +* 18/04/24 修复多 FileProvider 带来的问题,发布 1.14.0 版本 | 1 | 2 | * 18/04/23 新增 RSA 加解密,发布 1.13.16 版本 | 2 | 3 | * 18/04/22 新增 LogUtils 设置栈偏移 | 3 | 4 | * 18/04/21 新增 AppUtils#relaunchApp、DeviceUtils#getABIs,发布 1.13.15 版本 | |
Collapse file Copy file name to clipboardExpand all lines: utilcode/README-CN.md +6-8Lines changed: 6 additions & 8 deletions - Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|
| 2 | 2 |
| 3 | 3 | Gradle: | 4 | 4 | ```groovy | 5 | | -implementation 'com.blankj:utilcode:1.13.16' | | 5 | +implementation 'com.blankj:utilcode:1.14.0' | 6 | 6 | ``` | 7 | 7 |
| 8 | 8 |
| @@ -16,11 +16,7 @@ Utils.init(application); | 16 | 16 |
| 17 | 17 | ## Proguard | 18 | 18 |
| 19 | | -``` | 20 | | --keep class com.blankj.utilcode.** { *; } | 21 | | --keepclassmembers class com.blankj.utilcode.** { *; } | 22 | | --dontwarn com.blankj.utilcode.** | 23 | | -``` | | 19 | +U needn't do anything, because I add `consumerProguardFiles 'proguard-rules.pro'` in build.gradle. | 24 | 20 |
| 25 | 21 |
| 26 | 22 | ## APIs | @@ -493,8 +489,10 @@ isTablet : 判断是否是平板 | 493 | 489 |
| 494 | 490 | * ### SD 卡相关 -> [SDCardUtils.java][sdcard.java] -> [Demo][sdcard.demo] | 495 | 491 | ``` | 496 | | -isSDCardEnable: 判断 SD 卡是否可用 | 497 | | -getSDCardPaths: 获取 SD 卡路径 | | 492 | +isSDCardEnableByEnvironment: 根据 Environment 判断 SD 卡是否可用 | | 493 | +getSDCardPathByEnvironment : 根据 Environment 获取 SD 卡路径 | | 494 | +isSDCardEnable : 判断 SD 卡是否可用 | | 495 | +getSDCardPaths : 获取 SD 卡路径 | 498 | 496 | ``` | 499 | 497 |
| 500 | 498 | * ### 服务相关 -> [ServiceUtils.java][service.java] | |
Collapse file Copy file name to clipboardExpand all lines: utilcode/README.md +4-6Lines changed: 4 additions & 6 deletions - Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|
| 2 | 2 |
| 3 | 3 | Gradle: | 4 | 4 | ```groovy | 5 | | -implementation 'com.blankj:utilcode:1.13.16' | | 5 | +implementation 'com.blankj:utilcode:1.14.0' | 6 | 6 | ``` | 7 | 7 |
| 8 | 8 |
| @@ -16,11 +16,7 @@ Utils.init(application); | 16 | 16 |
| 17 | 17 | ## Proguard | 18 | 18 |
| 19 | | -``` | 20 | | --keep class com.blankj.utilcode.** { *; } | 21 | | --keepclassmembers class com.blankj.utilcode.** { *; } | 22 | | --dontwarn com.blankj.utilcode.** | 23 | | -``` | | 19 | +U needn't do anything, because I add `consumerProguardFiles 'proguard-rules.pro'` in build.gradle. | 24 | 20 |
| 25 | 21 |
| 26 | 22 | ## APIs | @@ -493,6 +489,8 @@ isTablet | 493 | 489 |
| 494 | 490 | * ### About SDCard -> [SDCardUtils.java][sdcard.java] -> [Demo][sdcard.demo] | 495 | 491 | ``` | | 492 | +isSDCardEnableByEnvironment | | 493 | +getSDCardPathByEnvironment | 496 | 494 | isSDCardEnable | 497 | 495 | getSDCardPaths | 498 | 496 | ``` | |
Collapse file Copy file name to clipboardExpand all lines: utilcode/build.gradle +1Lines changed: 1 addition & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -12,6 +12,7 @@ android { | 12 | 12 | buildTypes { | 13 | 13 | release { | 14 | 14 | minifyEnabled false | | 15 | + consumerProguardFiles 'proguard-rules.pro' | 15 | 16 | proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' | 16 | 17 | } | 17 | 18 | } | |
|