Skip to content

Instantly share code, notes, and snippets.

@ponnamkarthik
Created November 3, 2017 14:15
Show Gist options
  • Save ponnamkarthik/9fd842859edc8bfe72699c6f511ebcd4 to your computer and use it in GitHub Desktop.
Save ponnamkarthik/9fd842859edc8bfe72699c6f511ebcd4 to your computer and use it in GitHub Desktop.
Progaurd android
# To enable ProGuard in your project, edit project.properties
# to define the proguard.config property as described in that file.
#
# Add project specific ProGuard rules here.
# By default, the flags in this file are appended to flags specified
# in ${sdk.dir}/tools/proguard/proguard-android.txt
# You can edit the include path and order by changing the ProGuard
# include property in project.properties.
#
# For more details, see
# http://developer.android.com/guide/developing/tools/proguard.html
# Add any project specific keep options here:
# If your project uses WebView with JS, uncomment the following
# and specify the fully qualified class name to the JavaScript interface
# class:
# Remove printstacktrace to system err stream
-dontobfuscate
-optimizations !code/allocation/variable
-assumenosideeffects class * extends java.lang.Throwable {
public void printStackTrace();
}
##---------------Begin: Remove logging ----------
-assumenosideeffects class android.util.Log {
public static *** d(...);
public static *** e(...);
public static *** i(...);
public static *** v(...);
public static *** w(...);
}
##-------- lepsi trackovani chyb (zachova cisla radku)-----
-renamesourcefileattribute SourceFile
-keepattributes SourceFile,LineNumberTable
##---------------------------------------------------------
-keep public class * extends android.support.v4.app.Fragment
-dontwarn butterknife.Views$InjectViewProcessor
-dontwarn butterknife.internal.**
-keep class **$$ViewInjector { *; }
-keepnames class * { @butterknife.InjectView *;}
-keep class cz.mpelant.fitchecker.model.** { *; }
# OrmLite uses reflection
-keep class com.j256.**
-keepclassmembers class com.j256.** { *; }
-keep enum com.j256.**
-keepclassmembers enum com.j256.** { *; }
-keep interface com.j256.**
-keepclassmembers interface com.j256.** { *; }
#-keep interface com.afollestad.materialdialogs.**
#-keepclassmembers interface com.afollestad.materialdialogs.** { *; }
#otto
-keepclassmembers class ** {
@com.squareup.otto.Subscribe public *;
@com.squareup.otto.Produce public *;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment