Skip to content

Commit 91bcf41

Browse files
committed
add proguard config
1 parent 7819b57 commit 91bcf41

File tree

10 files changed

+4897
-6
lines changed

10 files changed

+4897
-6
lines changed

app/.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
/build
22
.classpath
33
.project
4-
.settings
4+
.settings
5+
proguard-merge-config.txt

app/build.gradle

Lines changed: 38 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,48 @@ android {
1717
abiFilters 'arm64-v8a', 'armeabi-v7a', 'x86_64', 'x86'
1818
}
1919
}
20-
buildTypes {
20+
21+
signingConfigs {
2122
release {
23+
v1SigningEnabled true
24+
v2SigningEnabled true
25+
keyAlias "plugin"
26+
keyPassword "plugin"
27+
storeFile file("../plugin.jks")
28+
storePassword "plugin"
29+
}
30+
debug {
31+
v1SigningEnabled true
32+
v2SigningEnabled true
33+
}
34+
}
35+
36+
packagingOptions {
37+
exclude 'META-INF/*'
38+
exclude 'META-INF/CERT.SF'
39+
exclude 'META-INF/CERT.RSA'
40+
exclude 'META-INF/MANIFEST.MF'
41+
}
42+
43+
buildTypes {
44+
debug {
45+
debuggable true
2246
minifyEnabled false
23-
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
47+
zipAlignEnabled false
48+
shrinkResources false
49+
crunchPngs false
50+
}
51+
release {
52+
debuggable false
53+
shrinkResources true
54+
zipAlignEnabled true
55+
minifyEnabled true
56+
signingConfig signingConfigs.release
57+
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt')
58+
proguardFile 'proguard-rules.pro'
2459
}
2560
}
61+
2662
compileOptions {
2763
sourceCompatibility JavaVersion.VERSION_1_8
2864
targetCompatibility JavaVersion.VERSION_1_8

0 commit comments

Comments
 (0)