Skip to content

Instantly share code, notes, and snippets.

@flurrydev
Last active October 1, 2015 22:14
Show Gist options
  • Save flurrydev/d2eb3847bc917037e3e5 to your computer and use it in GitHub Desktop.
Save flurrydev/d2eb3847bc917037e3e5 to your computer and use it in GitHub Desktop.
-keep class com.flurry.** { *; }
-dontwarn com.flurry.**
-keepattributes *Annotation*,EnclosingMethod,Signature
-keepclasseswithmembers class * {
public <init>(android.content.Context, android.util.AttributeSet, int);
}
# Google Play Services library
-keep class * extends java.util.ListResourceBundle {
protected Object[][] getContents();
}
-keep public class com.google.android.gms.common.internal.safeparcel.SafeParcelable {
public static final *** NULL;
}
-keepnames @com.google.android.gms.common.annotation.KeepName class *
-keepclassmembernames class * {
@com.google.android.gms.common.annotation.KeepName *;
}
-keepnames class * implements android.os.Parcelable {
public static final ** CREATOR;
}
#If you are using the Google Mobile Ads SDK, add the following:
# Preserve GMS ads classes
-keep class com.google.android.gms.** { *;
}
-dontwarn com.google.android.gms.**
#If you are using the InMobi SDK, add the following:
# Preserve InMobi Ads classes
-keep class com.inmobi.** { *;
}
-dontwarn com.inmobi.**
#If you are using the Millennial Media SDK, add the following:
# Preserve Millennial Ads classes
-keep class com.millennialmedia.** { *;
}
-dontwarn com.millennialmedia.**
@avipars
Copy link

avipars commented Jun 1, 2015

SHould I create this file in Android Studio, to get ProGuard not to touch these files?

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