Skip to content

Commit

Permalink
Retain only fields for GSON and allow methods/constructors to be removed
Browse files Browse the repository at this point in the history
  • Loading branch information
Hopsaheysa committed Dec 13, 2024
1 parent 99753ad commit 97aecc2
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions library/consumer-proguard-rules.pro
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,12 @@
@com.google.gson.annotations.SerializedName <fields>;
}

-keepclasseswithmembers, allowobfuscation class com.wultra.android.powerauth.networking.data.** { *; }
-keepclasseswithmembers, allowobfuscation class com.wultra.android.powerauth.networking.error.** { *; }
# keeps fields in the class
-keepclassmembers class com.wultra.android.powerauth.networking.data.** { <fields>; }
# handle R8 full mode optimizations
-keep, allowobfuscation class com.wultra.android.powerauth.networking.data.**

# keeps fields in the class
-keepclassmembers class com.wultra.android.powerauth.networking.error.** { <fields>; }
# handle R8 full mode optimizations
-keep, allowobfuscation class com.wultra.android.powerauth.networking.error.**

0 comments on commit 97aecc2

Please sign in to comment.