Created
April 10, 2015 06:41
-
-
Save engincancan/853574f61ee8dae07985 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
# 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: | |
#-keepclassmembers class fqcn.of.javascript.interface.for.webview { | |
# public *; | |
#} | |
-keep class io.card.** { *; } | |
-keep class com.keepe.** { *; } | |
-keepclassmembers class io.card.** { *;} | |
-keepclassmembers class com.keepe.** { *;} | |
-keepclassmembers class com.paypal.** { *;} | |
-keepclassmembers class android.support.v4.app.** { *; } | |
-keepclassmembers interface android.support.v4.app.** { *; } | |
-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 * { | |
public protected *; | |
} | |
# If your application, applet, servlet, library, etc., contains enumeration | |
# classes, you'll have to preserve some special methods. Enumerations were | |
# introduced in Java 5. The java compiler translates enumerations into classes | |
# with a special structure. Notably, the classes contain implementations of some | |
# static methods that the run-time environment accesses by introspection (Isn't | |
# that just grand? Introspection is the self-modifying code of a new | |
# generation). You have to specify these explicitly, to make sure they aren't | |
# removed or obfuscated: | |
-keepclassmembers enum * { | |
public static **[] values(); | |
public static ** valueOf(java.lang.String); | |
} | |
# More complex applications, applets, servlets, libraries, etc., may contain | |
# classes that are serialized. Depending on the way in which they are used, they | |
# may require special attention | |
-keepclassmembers class * implements java.io.Serializable { | |
static final long serialVersionUID; | |
private static final java.io.ObjectStreamField[] serialPersistentFields; | |
private void writeObject(java.io.ObjectOutputStream); | |
private void readObject(java.io.ObjectInputStream); | |
java.lang.Object writeReplace(); | |
java.lang.Object readResolve(); | |
} | |
# --- RECOMMENDED ANDROID CONFIG ------------------------------------------ | |
-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.view.View { | |
public <init>(android.content.Context); | |
public <init>(android.content.Context, android.util.AttributeSet); | |
public <init>(android.content.Context, android.util.AttributeSet, int); | |
public void set*(...); | |
} | |
-keepclasseswithmembers class * { | |
public <init>(android.content.Context, android.util.AttributeSet); | |
} | |
-keepclasseswithmembers class * { | |
public <init>(android.content.Context, android.util.AttributeSet, int); | |
} | |
-keepclassmembers class * implements android.os.Parcelable { | |
static android.os.Parcelable$Creator CREATOR; | |
} | |
# ---- REQUIRED card.io CONFIG ---------------------------------------- | |
# card.io is a native lib, so anything crossing JNI must not be changed | |
# Don't obfuscate DetectionInfo or public fields, since | |
# it is used by native methods | |
-keep class io.card.payment.DetectionInfo | |
-keepclassmembers class io.card.payment.DetectionInfo { | |
public *; | |
} | |
-keep class io.card.payment.CreditCard | |
-keep class io.card.payment.CreditCard$1 | |
-keepclassmembers class io.card.payment.CreditCard { | |
*; | |
} | |
-keepclassmembers class io.card.payment.CardScanner { | |
*** onEdgeUpdate(...); | |
} | |
# Don't mess with classes with native methods | |
-keepclasseswithmembers class * { | |
native <methods>; | |
} | |
-keepclasseswithmembernames class * { | |
native <methods>; | |
} | |
-keep public class io.card.payment.* { | |
public protected *; | |
} | |
# -------- PayPal SDK ---------- | |
# (does not include card.io) | |
-dontwarn com.google.android.gms.** | |
-dontwarn android.support.v4.** | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment