Skip to content

Commit c8b2c8d

Browse files
committed
see 06/29 log
1 parent 711d1ce commit c8b2c8d

File tree

13 files changed

+87
-37
lines changed

13 files changed

+87
-37
lines changed

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.17.1-brightgreen.svg
44+
[aucsvg]: https://img.shields.io/badge/AndroidUtilCode-v1.17.2-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.17.1-brightgreen.svg
44+
[aucsvg]: https://img.shields.io/badge/AndroidUtilCode-v1.17.2-brightgreen.svg
4545
[auc]: https://github.com/Blankj/AndroidUtilCode
4646

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

app/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,5 +57,5 @@ dependencies {
5757
implementation 'com.android.support.constraint:constraint-layout:1.1.0'
5858
debugImplementation "com.squareup.leakcanary:leakcanary-android:$leakcanary_version"
5959
releaseImplementation "com.squareup.leakcanary:leakcanary-android-no-op:$leakcanary_version"
60-
// implementation 'com.blankj:utilcode:1.17.1'
60+
// implementation 'com.blankj:utilcode:1.17.2'
6161
}

build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ buildscript {
77
min_sdk_version = 14
88
target_sdk_version = 27
99

10-
version_code = 1_017_001
11-
version_name = '1.17.1'// E.g 1.9.72 => 1,009,072
10+
version_code = 1_017_002
11+
version_name = '1.17.2'// E.g 1.9.72 => 1,009,072
1212

1313
// App dependencies
1414
support_version = '27.1.0'

update_log.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
* 18/06/29 修复 FragmentUtils 中 getFragmentManager 空指针错误,发布 1.17.2
2+
* 18/06/27 新增 UriUtils#uri2File
13
* 18/06/25 新增 KeyboardUtils#fixAndroidBug5497,发布 1.17.1 版本
24
* 18/06/21 修复 FragmentUtils#add 死循环的 BUG
35
* 18/06/14 替换 CacheUtils 为 CacheDiskUtils,CacheUtils 标记 deprecated,发布 1.17.0 版本

utilcode/README-CN.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

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

88

@@ -745,7 +745,8 @@ cancel : 取消吐司显示
745745

746746
* ### URI 相关 -> [UriUtils.java][uri.java]
747747
```
748-
getUriForFile: 获取文件 URI
748+
file2Uri: file 转 uri
749+
uri2File: uri 转 file
749750
```
750751

751752
* ### 压缩相关 -> [ZipUtils.java][zip.java] -> [Test][zip.test]

utilcode/README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

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

88

@@ -745,7 +745,8 @@ cancel
745745

746746
* ### About Uri -> [UriUtils.java][uri.java]
747747
```
748-
getUriForFile
748+
file2Uri
749+
uri2File
749750
```
750751

751752
* ### About Zip -> [ZipUtils.java][zip.java] -> [Test][zip.test]

utilcode/src/main/java/com/blankj/utilcode/util/CacheDiskUtils.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
* author: Blankj
4242
* blog : http://blankj.com
4343
* time : 2017/05/24
44-
* desc : utils about cache
44+
* desc : utils about disk cache
4545
* </pre>
4646
*/
4747
public final class CacheDiskUtils implements CacheConstants {
@@ -128,7 +128,7 @@ public static CacheDiskUtils getInstance(@NonNull final File cacheDir) {
128128
public static CacheDiskUtils getInstance(@NonNull final File cacheDir,
129129
final long maxSize,
130130
final int maxCount) {
131-
final String cacheKey = cacheDir.getAbsoluteFile() + "_" + maxCount + "_" + maxCount;
131+
final String cacheKey = cacheDir.getAbsoluteFile() + "_" + maxSize + "_" + maxCount;
132132
CacheDiskUtils cache = CACHE_MAP.get(cacheKey);
133133
if (cache == null) {
134134
if (!cacheDir.exists() && !cacheDir.mkdirs()) {

utilcode/src/main/java/com/blankj/utilcode/util/CacheMemoryUtils.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
* author: Blankj
1414
* blog : http://blankj.com
1515
* time : 2017/05/24
16-
* desc : utils about LRU cache
16+
* desc : utils about memory cache
1717
* </pre>
1818
*/
1919
public final class CacheMemoryUtils implements CacheConstants {

utilcode/src/main/java/com/blankj/utilcode/util/CacheUtils.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ public static CacheUtils getInstance(@NonNull final File cacheDir) {
131131
public static CacheUtils getInstance(@NonNull final File cacheDir,
132132
final long maxSize,
133133
final int maxCount) {
134-
final String cacheKey = cacheDir.getAbsoluteFile() + "_" + maxCount + "_" + maxCount;
134+
final String cacheKey = cacheDir.getAbsoluteFile() + "_" + maxSize + "_" + maxCount;
135135
CacheUtils cache = CACHE_MAP.get(cacheKey);
136136
if (cache == null) {
137137
if (!cacheDir.exists() && !cacheDir.mkdirs()) {

0 commit comments

Comments
 (0)