Skip to content

Commit

Permalink
Improve R8 rules (#65)
Browse files Browse the repository at this point in the history
Fixes: #64

It was happening that instead of `ApiErrorCode` - null was assigned to
`ApiError.error`
This means that during "minification" the whole `ApiErrorCode` enum
class was thrown away
  • Loading branch information
Hopsaheysa authored Dec 17, 2024
1 parent 057c66a commit 7d857a7
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>;
}

-keepclassmembers class com.wultra.android.powerauth.networking.data.** { *; }
-keepclassmembers 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 7d857a7

Please sign in to comment.