Created
December 8, 2014 09:06
-
-
Save AAverin/30e9315d1e32bc4e788f to your computer and use it in GitHub Desktop.
OpenScienceMap VTM proguard configuration
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-printusage unused.txt | |
-dontusemixedcaseclassnames | |
-dontskipnonpubliclibraryclasses | |
-verbose | |
-optimizations !code/simplification/arithmetic,!field/*,!class/merging/* | |
-printmapping out.map | |
-dontpreverify | |
-renamesourcefileattribute SourceFile | |
-keepattributes SourceFile,LineNumberTable,*Annotation*,Signature,EnclosingMethod,InnerClasses | |
#General Android | |
-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 | |
-keepclasseswithmembers class * { | |
public <init>(android.content.Context, android.util.AttributeSet); | |
} | |
-keepclasseswithmembers class * { | |
public <init>(android.content.Context, android.util.AttributeSet, int); | |
} | |
-keepclassmembers class * extends android.content.Context { | |
public void *(android.view.View); | |
public void *(android.view.MenuItem); | |
} | |
-keepclasseswithmembernames class * { | |
native <methods>; | |
} | |
-keep public class * extends android.view.View { | |
public <init>(android.content.Context); | |
public <init>(android.content.Context, android.util.AttributeSet); | |
public <init>(android.content.Context, android.util.AttributeSet, int); | |
} | |
-keepclassmembers public class * extends android.view.View { | |
void set*(***); | |
*** get*(); | |
} | |
-keepclassmembers class * extends android.app.Activity { | |
public void *(android.view.View); | |
} | |
-keep class * implements android.os.Parcelable { | |
public static final android.os.Parcelable$Creator *; | |
} | |
-keepclassmembers class **.R$* { | |
public static <fields>; | |
} | |
#Billing | |
-keep class com.android.vending.billing.** | |
-keep public class com.google.vending.licensing.ILicensingService | |
-keep public class com.android.vending.licensing.ILicensingService | |
#Support Library | |
-keep public class * extends android.preference.PreferenceFragment | |
-keep public class * extends android.support.v4.app.Fragment | |
-keep public class * extends android.support.v4.app.FragmentActivity | |
-keepclassmembers enum * { | |
public static **[] values(); | |
public static ** valueOf(java.lang.String); | |
} | |
-dontwarn android.support.** | |
# GMS | |
-keep class com.google.android.gms.** { *; } | |
-dontwarn com.google.android.gms.** | |
# MixPanel | |
-dontwarn com.mixpanel.** | |
#Flurry | |
-keep class com.flurry.** { *; } | |
-dontwarn com.flurry.** | |
-keepclasseswithmembers class * { | |
public <init>(android.content.Context, android.util.AttributeSet, int); | |
} | |
# Square | |
-dontwarn com.squareup.okhttp.** | |
-dontwarn okio.** | |
# Retrofit | |
-keep class com.google.inject.* { *; } | |
-keep class org.apache.http.* { *; } | |
-keep class org.apache.james.mime4j.* { *; } | |
-keep class javax.inject.* { *; } | |
-keep class retrofit.** { *; } | |
-dontwarn rx.** | |
-dontwarn com.google.appengine.api.urlfetch.* | |
-keepclasseswithmembers class * { | |
@retrofit.http.* <methods>; | |
} | |
#VTM | |
-dontwarn java.awt.* | |
-dontwarn java.awt.geom.* | |
-dontwarn org.slf4j.impl.* | |
# Jackson | |
-keepnames class org.codehaus.jackson.** { *; } | |
-dontwarn javax.xml.** | |
-dontwarn javax.xml.stream.events.** | |
-dontwarn com.fasterxml.jackson.databind.** | |
## GSON (used by Game Analytics) ## | |
-keep class sun.misc.Unsafe { *; } | |
-keep class com.google.gson.** { *; } | |
#add models here | |
#with static references to required inner classes | |
-keepnames class * implements java.io.Serializable | |
-keepclassmembers class * implements java.io.Serializable { | |
static final long serialVersionUID; | |
private static final java.io.ObjectStreamField[] serialPersistentFields; | |
!static !transient <fields>; | |
!private <fields>; | |
!private <methods>; | |
private void writeObject(java.io.ObjectOutputStream); | |
private void readObject(java.io.ObjectInputStream); | |
java.lang.Object writeReplace(); | |
java.lang.Object readResolve(); | |
} | |
#AsyncHttp | |
-keep class com.loopj.android.http.** { *; } | |
-keep interface com.loopj.android.http.** { *; } | |
#BugSense | |
-keep class com.bugsense.** { *; } | |
#Facebook API | |
-keep class com.facebook.** { *; } | |
## GAME ANALYTICS ## | |
-keep class com.gameanalytics.android.** { *; } | |
#VividSolutions | |
-dontwarn com.vividsolutions.jts.awt.** |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment