Skip to content

Instantly share code, notes, and snippets.

@rusty120
Created June 12, 2015 17:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rusty120/a30dc24d01b118b9ede6 to your computer and use it in GitHub Desktop.
Save rusty120/a30dc24d01b118b9ede6 to your computer and use it in GitHub Desktop.
# Kongregate Config ####################################################
# These are additional options for the Kongregate SDK. You should add
# these to your standard android config. The default android config
# from the SDK is included below
########################################################################
-keepattributes Exceptions,InnerClasses,Signature,Deprecated,SourceFile,LineNumberTable,*Annotation*,EnclosingMethod
# Needed by google-api-client to keep generic types and @Key annotations accessed via reflection
-keepclassmembers class * {
@com.google.api.client.util.Key <fields>;
}
-keep class android.support.v4.** {*;}
-keep class com.AdX.** {*;}
-keep class com.facebook.** {*;}
-keep class com.fasterxml.** {*;}
-keep class com.google.** {*;}
-keep class com.kongregate.** {*;}
-keep class io.keen.** {*;}
-keep class com.adjust.** {*;}
-dontwarn android.os.UserManager
-dontwarn android.os.Process
-dontwarn android.webkit.**
-dontwarn com.fasterxml.jackson.databind.ext.DOMSerializer
-dontwarn com.google.api.client.googleapis.extensions.**
-dontwarn io.keen.client.android.KeenClientTest
-dontwarn java.lang.StringBuilder
-dontwarn java.lang.StringBuffer
-dontwarn javax.annotation.**
-dontwarn javax.naming.**
-dontwarn com.facebook.android.BuildConfig
-dontnote com.google.vending.licensing.ILicensingService
-dontnote com.android.vending.licensing.ILicensingService
-dontnote com.google.api.client.util.Key
-dontnote com.kongregate.android.internal.sdk.unity.UnityWrapper
-dontnote com.google.api.client.util.IOUtils
-dontnote android.webkit.**
-dontnote android.net.ProxyProperties
########################################################################
# Standard Android Config ##############################################
########################################################################
-dontusemixedcaseclassnames
-dontskipnonpubliclibraryclasses
-dontskipnonpubliclibraryclassmembers
-verbose
# Optimization is turned off by default. Dex does not like code run
# through the ProGuard optimize and preverify steps (and performs some
# of these optimizations on its own).
-dontoptimize
-dontpreverify
-keepattributes *Annotation*
-keep public class com.google.vending.licensing.ILicensingService
-keep public class com.android.vending.licensing.ILicensingService
# For native methods, see http://proguard.sourceforge.net/manual/examples.html#native
-keepclasseswithmembernames class * {
native <methods>;
}
# keep setters in Views so that animations can still work.
# see http://proguard.sourceforge.net/manual/examples.html#beans
-keepclassmembers public class * extends android.view.View {
void set*(***);
*** get*();
}
# We want to keep methods in Activity that could be used in the XML attribute onClick
-keepclassmembers class * extends android.app.Activity {
public void *(android.view.View);
}
# For enumeration classes, see http://proguard.sourceforge.net/manual/examples.html#enumerations
-keepclassmembers enum * {
public static **[] values();
public static ** valueOf(java.lang.String);
}
-keep class * implements android.os.Parcelable {
public static final android.os.Parcelable$Creator *;
}
-keepclassmembers class **.R$* {
public static <fields>;
}
# The support library contains references to newer platform versions.
# Don't warn about those in case this app is linking against an older
# platform version. We know about them, and they are safe.
-dontwarn android.support.**
# Keep anything that is referenced by the manifest
-keep public class * extends android.app.Activity
-keep public class * extends android.app.Application
-keep public class * extends android.app.Service
-keep public class * extends android.content.BroadcastReceiver
-keep public class * extends android.content.ContentProvider
-keep public class * extends android.app.backup.BackupAgentHelper
-keep public class * extends android.preference.Preference
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment