Skip to content

Commit 6f0974c

Browse files
committed
see 04/10 log
1 parent 11dff44 commit 6f0974c

File tree

3 files changed

+3
-43
lines changed

3 files changed

+3
-43
lines changed

CHANGELOG.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
* `20/04/10` [fix] FileUtils#isFileExists; FragmentUtils#getTop bug. Publish v1.27.6.
2-
* `20/04/09` [add] UriUtils#res2Uri; ThreadUtils#getMainHandler; PathUtils#getxxPathExternalFirst.
2+
* `20/04/09` [add] UriUtils#res2Uri, UriUtils#uri2File support QQBrowser; ThreadUtils#getMainHandler; PathUtils#getxxPathExternalFirst.
33
* `20/04/08` [fix] ActivityUtils#finish bug. Publish v1.27.5.
44
* `20/04/08` [fix] CleanUtils clean dir not work. FileUtils#isFileExists. Publish v1.27.4.
55
* `20/04/08` [fix] CrashUtils DefaultUncaughtExceptionHandler is wrong; LogUtils write file failed; Utils#getApp failed run on remote process. Publish v1.27.3.

build.gradle

-27
Original file line numberDiff line numberDiff line change
@@ -8,18 +8,6 @@ buildscript {
88
url new File("mavenLocal")
99
}
1010
}
11-
maven {
12-
url 'https://maven.aliyun.com/repository/public'
13-
name 'replace jcenter() and mavenCentral()'
14-
}
15-
maven {
16-
url 'https://maven.aliyun.com/repository/jcenter'
17-
name 'replace jcenter()'
18-
}
19-
maven {
20-
url 'https://maven.aliyun.com/repository/google'
21-
name 'replace google()'
22-
}
2311
google()
2412
jcenter()
2513
}
@@ -33,21 +21,6 @@ buildscript {
3321

3422
allprojects {
3523
repositories {
36-
maven {
37-
url 'https://maven.aliyun.com/repository/public'
38-
name 'replace jcenter() and mavenCentral()'
39-
}
40-
maven {
41-
url 'https://maven.aliyun.com/repository/jcenter'
42-
name 'replace jcenter()'
43-
}
44-
maven {
45-
url 'https://maven.aliyun.com/repository/google'
46-
name 'replace google()'
47-
}
48-
maven {
49-
url "https://jitpack.io"
50-
}
5124
google()
5225
jcenter()
5326
}
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
package com.blankj.utilcode.pkg
22

3-
import android.os.Environment
4-
import com.blankj.utilcode.util.Utils
3+
import com.blankj.utilcode.util.PathUtils
54

65
/**
76
* ```
@@ -12,20 +11,8 @@ import com.blankj.utilcode.util.Utils
1211
* ```
1312
*/
1413
object Config {
15-
1614
val FILE_SEP = System.getProperty("file.separator")
1715
val LINE_SEP = System.getProperty("line.separator")
1816
const val TEST_PKG = "com.blankj.testinstall"
19-
val CACHE_PATH: String
20-
val TEST_APK_PATH: String
21-
22-
init {
23-
val cacheDir = Utils.getApp().externalCacheDir
24-
CACHE_PATH = if (cacheDir != null) {
25-
cacheDir.absolutePath
26-
} else {
27-
Environment.getExternalStorageDirectory().absolutePath
28-
} + FILE_SEP
29-
TEST_APK_PATH = CACHE_PATH + "test_install.apk"
30-
}
17+
val TEST_APK_PATH: String = PathUtils.getCachePathExternalFirst() + FILE_SEP + "test_install.apk"
3118
}

0 commit comments

Comments
 (0)