Skip to content

Commit 62bac11

Browse files
committed
change: Add proguard support
1 parent e36e87d commit 62bac11

File tree

4 files changed

+24
-2
lines changed

4 files changed

+24
-2
lines changed

demo/build.gradle

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,26 @@ android {
1212
versionCode 1
1313
versionName "1.0"
1414
}
15+
16+
signingConfigs {
17+
testkey {
18+
storeFile file("debug.keystore")
19+
storePassword "android"
20+
keyAlias "androiddebugkey"
21+
keyPassword "android"
22+
}
23+
}
24+
1525
buildTypes {
1626
release {
17-
minifyEnabled false
27+
minifyEnabled true
1828
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
29+
30+
signingConfig signingConfigs.testkey
31+
}
32+
33+
debug {
34+
signingConfig signingConfigs.testkey
1935
}
2036
}
2137
}

demo/debug.keystore

7.43 KB
Binary file not shown.

lib/build.gradle

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,14 @@ android {
66

77
defaultConfig {
88
minSdkVersion 9
9+
10+
consumerProguardFiles 'proguard-export.pro'
911
}
1012

1113
buildTypes {
1214
release {
1315
buildConfigField "boolean", "DISABLE_LOG", "false"
14-
buildConfigField "boolean", "DEBUG_LOG", "true"
16+
buildConfigField "boolean", "DEBUG_LOG", "false"
1517
}
1618

1719
debug {

lib/proguard-export.pro

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# Proguard rules in this file will be bundled in the aar
2+
-keepclasseswithmembers class me.ycdev.android.lib.ssproxy.SysServiceProxyDaemon {
3+
public static void main(java.lang.String[]);
4+
}

0 commit comments

Comments
 (0)