Skip to content

With R8 on the config JSON cant be parsed #63

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
DexterBishop opened this issue Apr 17, 2025 · 3 comments
Closed

With R8 on the config JSON cant be parsed #63

DexterBishop opened this issue Apr 17, 2025 · 3 comments
Labels
bug Something isn't working

Comments

@DexterBishop
Copy link

Describe the bug

Fetching the Config in release builds results in the following error:
Fetching config JSON was successful but the HTTP response content was invalid.

Debug builds work normally.

The issue is likely related to R8.
If i disable R8 or adding the following line to the ProGuard rules file every thing works fine:
-keep class com.configcat.PercentageOption { *; }

To reproduce

Build a release app and fetch a feature flag with percentage option.

Expected behavior

Should return the feature flag.

Screenshots

Image

@DexterBishop DexterBishop added the bug Something isn't working label Apr 17, 2025
@z4kn4fein
Copy link
Member

Hi @DexterBishop, thank you for reporting this issue! We are working on the fix and will let you know when it's released.

@z4kn4fein
Copy link
Member

Hi @DexterBishop, we've released a new version (v10.4.1) that contains the fix, could you please try it? Thanks!

@DexterBishop
Copy link
Author

Hi, the new Version fixed the problem. Thanks for the quick response.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants