使用 proguard 以减小 apk 体积
This commit is contained in:
1 parent
3a7bc14c01
commit
688e1f0ed2
3 files changed
+20
-2
No files matched your search
+1
-1
@@ -1,4 +1,4 @@
|
||||
# x86 libjpeg-turbo 汇编链接会出错
|
||||
APP_ABI := armeabi armeabi-v7a arm64-v8a# mips# x86
|
||||
APP_ABI := armeabi armeabi-v7a# arm64-v8a# mips# x86
|
||||
APP_PLATFORM := android-14
|
||||
APP_OPTIM := release
|
||||
@@ -18,3 +18,21 @@
|
||||
#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
|
||||
# public *;
|
||||
#}
|
||||
-keepattributes SourceFile,LineNumberTable
|
||||
|
||||
-keep class com.hippo.**
|
||||
|
||||
-keepclassmembers public class * extends android.graphics.drawable.Drawable {
|
||||
void set*(***);
|
||||
*** get*();
|
||||
}
|
||||
|
||||
-keepclassmembers class com.hippo.ehviewer.drawable.MaterialProgressDrawable$Ring {
|
||||
void set*(***);
|
||||
*** get*();
|
||||
}
|
||||
|
||||
-keepclassmembers public class * extends com.hippo.ehviewer.windowsanimate.Sprite {
|
||||
void set*(***);
|
||||
*** get*();
|
||||
}
|
||||
+1
-1
@@ -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-21
|
||||
|
||||
Reference in new issue
Block a user