Skip to content

Instantly share code, notes, and snippets.

@hongyangAndroid
Forked from drakeet/proguard-rules.pro
Created July 19, 2017 11:24
Show Gist options
  • Save hongyangAndroid/02024734964aa09dee00c249b1c843ff to your computer and use it in GitHub Desktop.
Save hongyangAndroid/02024734964aa09dee00c249b1c843ff 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment