File tree 3 files changed +3
-43
lines changed
feature/utilcode/pkg/src/main/java/com/blankj/utilcode/pkg
3 files changed +3
-43
lines changed Original file line number Diff line number Diff line change 1
1
* ` 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.
3
3
* ` 20/04/08 ` [ fix] ActivityUtils#finish bug. Publish v1.27.5.
4
4
* ` 20/04/08 ` [ fix] CleanUtils clean dir not work. FileUtils#isFileExists. Publish v1.27.4.
5
5
* ` 20/04/08 ` [ fix] CrashUtils DefaultUncaughtExceptionHandler is wrong; LogUtils write file failed; Utils#getApp failed run on remote process. Publish v1.27.3.
Original file line number Diff line number Diff line change @@ -8,18 +8,6 @@ buildscript {
8
8
url new File (" mavenLocal" )
9
9
}
10
10
}
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
- }
23
11
google()
24
12
jcenter()
25
13
}
@@ -33,21 +21,6 @@ buildscript {
33
21
34
22
allprojects {
35
23
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
- }
51
24
google()
52
25
jcenter()
53
26
}
Original file line number Diff line number Diff line change 1
1
package com.blankj.utilcode.pkg
2
2
3
- import android.os.Environment
4
- import com.blankj.utilcode.util.Utils
3
+ import com.blankj.utilcode.util.PathUtils
5
4
6
5
/* *
7
6
* ```
@@ -12,20 +11,8 @@ import com.blankj.utilcode.util.Utils
12
11
* ```
13
12
*/
14
13
object Config {
15
-
16
14
val FILE_SEP = System .getProperty(" file.separator" )
17
15
val LINE_SEP = System .getProperty(" line.separator" )
18
16
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"
31
18
}
You can’t perform that action at this time.
0 commit comments