Skip to content

Commit

Permalink
enable proguard
Browse files Browse the repository at this point in the history
  • Loading branch information
miku-nyan committed Dec 7, 2015
1 parent 3eb8b6d commit e187c6c
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,10 @@ android {
assets.srcDirs = ['assets']
jni.srcDirs = ['jni']
}
buildTypes.release {
minifyEnabled true
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-project.txt'
}
defaultConfig.ndk {
moduleName "gif"
}
Expand Down
2 changes: 1 addition & 1 deletion proguard-project.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
-dontwarn sun.nio.ch.**
-dontwarn sun.misc.**
-keep,allowshrinking class ** { *; }
-keep class nya.miku.wishmaster.** { *; }
-keep class nya.miku.** { *; }
-keep class org.acra.** { *; }
-keep class com.esotericsoftware.** { *; }
-keep class sun.reflect.** { *; }
Expand Down
2 changes: 1 addition & 1 deletion project.properties
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
# project structure.
#
# To enable ProGuard to shrink and obfuscate your code, uncomment this (available properties: sdk.dir, user.home):
#proguard.config=${sdk.dir}/tools/proguard/proguard-android.txt:proguard-project.txt
proguard.config=${sdk.dir}/tools/proguard/proguard-android.txt:proguard-project.txt

# Project target.
target=android-23

0 comments on commit e187c6c

Please sign in to comment.