Closed alenjularic closed 1 year ago
Hi, @alenjularic! Thank you for the issue! I will check on the problem and let you know if we fixed the problem.
Hi, @alenjularic!
The new 8.2.2 release contains the fix. Let us know how it works for you.
@novalisdenahi on 8.2.2 all working ok, thanks for the quick fix!
Describe the bug
Calling methods
getAllValueDetailsAsync()
orgetAllValueDetails()
in release builds results in the following error:An error occurred while getting the detailed values. Returning an empty map.
Debug builds work normally.The issue is likely related to R8 full mode, which is on by default in Android Studio Flamingo 2022.2.1.
Adding the following line to ProGuard rules fixes the issue for me, but it isn't optimal:
-keep class com.configcat.** { *; }
Or disabling the R8 full mode in
gradle.properties
also fixes the problem:android.enableR8.fullMode=false
To reproduce
Build a release app and call
getAllValueDetailsAsync()
orgetAllValueDetails()
, number of flags returned should be 0.Expected behavior
Should return the actual number of flags available in ConfigCat dashboard.
Screenshots
SDK version
Using SDK 33
Language/Framework version
Kotlin 1.8.21 Gradle plugin 8.0.2