statsig-io / statsig-feedback

Issue Tracker for Statsig. Leave your feedback on anything we do!
5 stars 0 forks source link

GetConfig for Android fails #19

Closed Rolstenhouse closed 2 years ago

Rolstenhouse commented 2 years ago

Statsig getConfig on Android fails when minification is enabled .

Solution is to add -keep class com.statsig.**{*;} to the proguard-rules.pro file

vijaye-statsig commented 2 years ago

That's strange. @tore-statsig to investigate progaurd side effects

tore-statsig commented 2 years ago

This is a great catch - and actually not so strange. DynamicConfig is our helper class for developers to integrate with DynamicConfigs and Experiments set up in the Statsig console, but it is actually an unused class in the SDK itself. So proguard took the liberty of stripping it out.

Thanks for the report, we will publish a fixed version shortly

tore-statsig commented 2 years ago

Fix published in v4.2.4

https://github.com/statsig-io/android-sdk/releases/tag/v4.2.4