Skip to content

Commit 84c32ab

Browse files
committed
Enable minify
Signed-off-by: Fung <fython@163.com>
1 parent 388c771 commit 84c32ab

2 files changed

Lines changed: 8 additions & 24 deletions

File tree

app/build.gradle

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@ android {
1313
}
1414
buildTypes {
1515
release {
16-
minifyEnabled false
16+
minifyEnabled true
17+
shrinkResources true
1718
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
1819
}
1920
}

app/proguard-rules.pro

Lines changed: 6 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,8 @@
1-
# Add project specific ProGuard rules here.
2-
# By default, the flags in this file are appended to flags specified
3-
# in G:\adt\sdk/tools/proguard/proguard-android.txt
4-
# You can edit the include path and order by changing the proguardFiles
5-
# directive in build.gradle.
6-
#
7-
# For more details, see
8-
# http://developer.android.com/guide/developing/tools/proguard.html
1+
-dontwarn kotlin.**
2+
-dontobfuscate
3+
-optimizations !code/simplification/arithmetic,!field/*,!class/merging/*,!code/allocation/variable
94

10-
# Add any project specific keep options here:
5+
-keep class moe.feng.nyanpasu.pinsettings.util.Preferences {*;}
116

12-
# If your project uses WebView with JS, uncomment the following
13-
# and specify the fully qualified class name to the JavaScript interface
14-
# class:
15-
#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
16-
# public *;
17-
#}
18-
19-
# Uncomment this to preserve the line number information for
20-
# debugging stack traces.
21-
#-keepattributes SourceFile,LineNumberTable
22-
23-
# If you keep the line number information, uncomment this to
24-
# hide the original source file name.
25-
#-renamesourcefileattribute SourceFile
7+
-keepattributes Signature
8+
-keepattributes Exceptions

0 commit comments

Comments
 (0)