Skip to content

Conversation

@ghsdh3409
Copy link
Member

@ghsdh3409 ghsdh3409 commented Sep 11, 2025

Problem

  • Customer apps using Monetai SDK with ProGuard/R8 obfuscation enabled were experiencing HTTP 400 errors during API calls.
  • The issue occurred because field names in JSON requests were being obfuscated from proper names (e.g., sdkKey, userId) to single letters (e.g., a, b, c), causing the server to reject requests.

Solution

  • Added consumer-rules.pro - Automatically protects Monetai SDK from obfuscation in customer apps
  • Zero customer configuration - No ProGuard rules needed in customer apps

Benefits

  • Automatic protection - Works out of the box
  • No breaking changes - Backward compatible

@ghsdh3409 ghsdh3409 changed the title [WIP] Fix proguard field obfuscation Fix proguard field obfuscation Sep 11, 2025
@ghsdh3409 ghsdh3409 changed the title Fix proguard field obfuscation Fix ProGuard Obfuscation Issues Sep 11, 2025
@ghsdh3409 ghsdh3409 self-assigned this Sep 11, 2025
@ghsdh3409 ghsdh3409 merged commit 18c9c9f into main Sep 11, 2025
2 checks passed
@ghsdh3409 ghsdh3409 deleted the feature/fix-proguard-field-obfuscation branch September 11, 2025 02:05
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.

1 participant