v0.7.0: adjusted proguard config, as the optimize variant is becoming default
This commit is contained in:
@@ -17,7 +17,7 @@ android {
|
|||||||
release {
|
release {
|
||||||
shrinkResources true
|
shrinkResources true
|
||||||
minifyEnabled true
|
minifyEnabled true
|
||||||
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
|
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
7
core/proguard-rules.pro
vendored
7
core/proguard-rules.pro
vendored
@@ -3,4 +3,9 @@
|
|||||||
-keepnames class com.watabou.** { *; }
|
-keepnames class com.watabou.** { *; }
|
||||||
-keep class com.shatteredpixel.shatteredpixeldungeon { *; }
|
-keep class com.shatteredpixel.shatteredpixeldungeon { *; }
|
||||||
-keep class com.watabou.noosa.game { *; }
|
-keep class com.watabou.noosa.game { *; }
|
||||||
-keepattributes SourceFile,LineNumberTable
|
-keepattributes SourceFile,LineNumberTable
|
||||||
|
|
||||||
|
# overrides default in proguard-android-optimize.txt, which is:
|
||||||
|
# -optimizations !code/simplification/arithmetic,!code/simplification/cast,!field/*,!class/merging/*
|
||||||
|
# This is because code/simplification/arithmetic is safe to use on android 2.0+
|
||||||
|
-optimizations !code/simplification/cast,!field/*,!class/merging/*
|
||||||
Reference in New Issue
Block a user