Skip to content

Instantly share code, notes, and snippets.

@drakeet
Created July 16, 2017 10:00
Show Gist options
  • Save drakeet/01fcaeee598b6c82b32822689155f347 to your computer and use it in GitHub Desktop.
Save drakeet/01fcaeee598b6c82b32822689155f347 to your computer and use it in GitHub Desktop.
-ignorewarnings
-keep public class * extends android.os.Binder
-keepclassmembers enum * {
**[] $VALUES;
public *;
}
# v7
-keep public class android.support.v7.widget.** { *; }
-keep public class android.support.v7.internal.widget.** { *; }
-keep public class android.support.v7.internal.view.menu.** { *; }
-keep public class * extends android.support.v4.view.ActionProvider {
public <init>(android.content.Context);
}
# log
-assumenosideeffects class android.util.Log {
public static boolean isLoggable(java.lang.String, int);
public static int d(...);
public static int w(...);
public static int v(...);
public static int i(...);
}
-keepclassmembers class * {
public <init> (org.json.JSONObject);
}
-keep class org.ocpsoft.prettytime.** { *; }
# Fabric
-keep public class * extends java.lang.Exception
-keepattributes *Annotation*
-keep class com.crashlytics.** { *; }
-dontwarn com.crashlytics.**
-keep class io.fabric.** { *; }
-renamesourcefileattribute Proguard
-keepattributes SourceFile,LineNumberTable
-obfuscationdictionary dictionary-elder.txt
-repackageclasses 'com.drakeet.purewriter'
-allowaccessmodification
@AlexMahao
Copy link

关于仅仅只删除Log日志的地方,我想问一下用什么优化算法合适?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment