Skip to content

Added the consumer file with the rules for client facing obfustication#41

Merged
pacific-ring merged 1 commit into
mainfrom
task/proguard-setup
Jun 23, 2026
Merged

Added the consumer file with the rules for client facing obfustication#41
pacific-ring merged 1 commit into
mainfrom
task/proguard-setup

Conversation

@pacific-ring

@pacific-ring pacific-ring commented Jun 23, 2026

Copy link
Copy Markdown
Contributor

Description

Adds consumer ProGuard/R8 keep rules (universal_components/consumer-rules.pro) so that
apps consuming this library can safely enable minification without breaking the MFA flows.

Two classes of runtime reflection are protected:

  • Auth0 SDK Gson models (com.auth0.android.result.** + the AuthenticationMethod$Deserializer
    polymorphic adapter) — deserialized via reflection, so R8 would otherwise strip the
    fields/classes and Gson would fail with a0.sdk.internal_error.unknown.
  • AuthenticatorType enum — used as a kotlinx.serialization-backed Compose Navigation
    argument and resolved by fully qualified name at runtime, so its name must not be obfuscated.

Type of Change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation update
  • Code refactoring
  • Performance improvement
  • Test improvement

Testing

  • Unit tests
  • Manual testing
  • Sample app testing

Test Configuration:

  • Android version(s):
  • Device(s):

Screenshots (if appropriate)

Uploading Screen_Recording_20260623_140839_manmohan-sample-ui-components-android.mp4…

Checklist

@pacific-ring pacific-ring requested a review from a team as a code owner June 23, 2026 09:05
@pacific-ring pacific-ring changed the title UIC-948 : Added the consumer file with the rules for client facing obfustication Added the consumer file with the rules for client facing obfustication Jun 23, 2026
@pacific-ring pacific-ring merged commit d3dc567 into main Jun 23, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants