# ---- 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 ; } -keepclasseswithmembernames class * { native ; } -keep public class io.card.payment.* { public protected *; } # required to suppress errors when building on android 22 -dontwarn io.card.payment.CardIOActivity