File tree 7 files changed +31
-22
lines changed
src/main/java/com/blankj/androidutilcode/feature/core
7 files changed +31
-22
lines changed Original file line number Diff line number Diff line change @@ -36,9 +36,8 @@ android {
36
36
}
37
37
38
38
sourceSets {
39
- main {
40
- res. srcDirs(' src/main/res' , ' src/main/res_core' , ' src/main/res_sub' )
41
- }
39
+ main. res. srcDirs + = ' src/main/res_core'
40
+ main. res. srcDirs + = ' src/main/res_sub'
42
41
}
43
42
44
43
lintOptions {
Original file line number Diff line number Diff line change 14
14
# class:
15
15
#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
16
16
# public *;
17
- #}
18
- -keep class com.blankj.utilcode.** { *; }
19
- -keepclassmembers class com.blankj.utilcode.** { *; }
20
- -dontwarn com.blankj.utilcode.**
21
-
22
- # Gson
23
- -keepattributes Signature
24
- -keepattributes *Annotation*
25
- -keep class sun.misc.Unsafe { *; }
26
- -keep class com.google.gson.stream.** { *; }
27
- # 使用Gson时需要配置Gson的解析对象及变量都不混淆。不然Gson会找不到变量。
28
- # 将下面替换成自己的实体类
29
- #-keep class com.example.bean.** { *; }
17
+ #}
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 ;
14
15
import com .blankj .androidutilcode .feature .core .device .DeviceActivity ;
15
16
import com .blankj .androidutilcode .feature .core .fragment .FragmentActivity ;
16
17
import com .blankj .androidutilcode .feature .core .image .ImageActivity ;
@@ -84,6 +85,10 @@ public void barClick(View view) {
84
85
BarActivity .start (this );
85
86
}
86
87
88
+ public void cleanClick (View view ) {
89
+ CleanActivity .start (this );
90
+ }
91
+
87
92
public void crashClick (View view ) {
88
93
throw new NullPointerException ("crash test" );
89
94
}
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ buildscript {
5
5
jcenter()
6
6
}
7
7
dependencies {
8
- classpath ' com.android.tools.build:gradle:3.1.0 '
8
+ classpath ' com.android.tools.build:gradle:3.1.2 '
9
9
classpath ' com.github.dcendents:android-maven-gradle-plugin:1.5'
10
10
classpath ' com.jfrog.bintray.gradle:gradle-bintray-plugin:1.7.3'
11
11
@@ -21,6 +21,17 @@ allprojects {
21
21
google()
22
22
jcenter()
23
23
}
24
+
25
+ configurations. all {
26
+ resolutionStrategy. cacheChangingModulesFor 0 , ' seconds'
27
+
28
+ resolutionStrategy. eachDependency {
29
+ if (it. requested. group == ' com.android.support'
30
+ && it. requested. name != ' multidex' ) {
31
+ it. useVersion support_version
32
+ }
33
+ }
34
+ }
24
35
}
25
36
26
37
task clean (type : Delete ) {
44
55
45
56
junit_version = ' 4.12'
46
57
robolectric_version = ' 3.1.2'
47
- }
48
-
49
-
58
+ }
Original file line number Diff line number Diff line change
1
+ * 18/04/25 修复多个空异常,发布 1.14.1 版本
1
2
* 18/04/24 修复多 FileProvider 带来的问题,发布 1.14.0 版本
2
3
* 18/04/23 新增 RSA 加解密,发布 1.13.16 版本
3
4
* 18/04/22 新增 LogUtils 设置栈偏移
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ android {
11
11
12
12
buildTypes {
13
13
release {
14
- minifyEnabled false
14
+ minifyEnabled true
15
15
consumerProguardFiles ' proguard-rules.pro'
16
16
proguardFiles getDefaultProguardFile(' proguard-android.txt' ), ' proguard-rules.pro'
17
17
}
Original file line number Diff line number Diff line change 18
18
19
19
-keep class com.blankj.utilcode.** { *; }
20
20
-keepclassmembers class com.blankj.utilcode.** { *; }
21
- -dontwarn com.blankj.utilcode.**
21
+ -dontwarn com.blankj.utilcode.**
22
+
23
+ # @Keep
24
+ -keep,allowobfuscation @interface android.support.annotation.Keep
25
+ -keep @android.support.annotation.Keep class *
26
+ -keepclassmembers class * {
27
+ @android.support.annotation.Keep *;
28
+ }
You can’t perform that action at this time.
0 commit comments