|
1 | | -# Keep your entire SDK public API |
| 1 | +# ============================ |
| 2 | +# Keep all SDK classes |
| 3 | +# ============================ |
2 | 4 | -keep class company.tap.tapcardformkit.** { *; } |
3 | 5 | -keep class company.tap.tapbenefitpay.** { *; } |
4 | 6 | -keep class company.tap.tapnetworkkit.** { *; } |
5 | 7 | -keep class com.tap.** { *; } |
6 | | --keep class com.github.tap.payments.benefitpay.** { *; } |
7 | 8 | -keep class com.tap.commondatamodels.** { *; } |
| 9 | +-keep class com.github.tap.payments.benefitpay.** { *; } |
| 10 | + |
| 11 | +# ============================ |
| 12 | +# Gson serialization / Retrofit models |
| 13 | +# ============================ |
| 14 | +-keepclassmembers,allowobfuscation class * { |
| 15 | + @com.google.gson.annotations.SerializedName <fields>; |
| 16 | +} |
| 17 | + |
| 18 | +-keep class retrofit2.** { *; } |
| 19 | +-keep class okhttp3.** { *; } |
| 20 | +-keep class okio.** { *; } |
| 21 | + |
| 22 | +-dontwarn retrofit2.** |
| 23 | +-dontwarn okhttp3.** |
| 24 | +-dontwarn okio.** |
| 25 | +-dontwarn com.google.gson.** |
| 26 | + |
| 27 | +# ============================ |
| 28 | +# Kotlin & AndroidX |
| 29 | +# ============================ |
| 30 | +-keep class kotlin.** { *; } |
| 31 | +-dontwarn kotlin.** |
| 32 | + |
| 33 | +-keep class androidx.** { *; } |
| 34 | +-dontwarn androidx.** |
| 35 | + |
| 36 | +# ============================ |
| 37 | +# WebView JS Interfaces |
| 38 | +# ============================ |
| 39 | +-keepclassmembers class * { |
| 40 | + @android.webkit.JavascriptInterface <methods>; |
| 41 | +} |
| 42 | + |
| 43 | +# ============================ |
| 44 | +# Serializable support |
| 45 | +# ============================ |
| 46 | +-keepclassmembers class * implements java.io.Serializable { |
| 47 | + static final long serialVersionUID; |
| 48 | + private static final java.io.ObjectStreamField[] serialPersistentFields; |
| 49 | + private void writeObject(java.io.ObjectOutputStream); |
| 50 | + private void readObject(java.io.ObjectInputStream); |
| 51 | + java.lang.Object readResolve(); |
| 52 | +} |
0 commit comments