Skip to content

Commit

Permalink
feature: drop diagnostic logs from production code
Browse files Browse the repository at this point in the history
There isn't much benefit in having this in production and removing it reduces the final APK size a bit
  • Loading branch information
CAMOBAP authored Dec 15, 2023
1 parent a6026df commit 58036fa
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions sdk/consumer-rules.pro
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,8 @@
-keepclasseswithmembernames public enum com.hcaptcha.sdk.** {
@com.fasterxml.jackson.annotation.JsonValue *;
}

# Remove debug logging from the production code
-assumenosideeffects class com.hcaptcha.sdk.HCaptchaLog {
*;
}

0 comments on commit 58036fa

Please sign in to comment.