This message was deleted.
# ask-questions
w
This message was deleted.
b
what is the value type of the feature you're trying to return? my immediate thought is potentially something to do with proguard. are you able to test a production release without proguard enabled to see if the issue still occurs?
p
I tested this thought out on our Debug app. Turned progaurd on but it still worked correctly. I'll test out disabling proguard on the Production app when I am back from lunch shortly and let you know
Aha, it does work when I disable R8 on Product release. Is there any documentation on ProGuard rules that need to be added?
b
awesome, well i'm glad we got closer to figuring it out. we don't have any docs on which specific classes to keep right now, but i'd go with keeping all the classes just to be safe. also, if your value types are serialized and deserialized via the SDK, those classes should be kept as well. can you let me know if that works and what your proguard file looks like? i can add it to the docs in the future. also you're welcome to contribute that to the docs as well if you'd like.
can you confirm the class type of the feature value type? is it a gson serializable/deserializable class? these are the publicly-facing classes: https://growthbook.github.io/growthbook-sdk-java/growthbook/sdk/java/package-summary.html
p
Will do, I'll try adding a rule to cover growthbook and get back to you with results
🙌 1
Value type of the features I had been testing were just Boolean so far.
👍 1
b
thanks for confirming the value type.
p
thanks for the help!
Adding this rule to proguard-rules.pro fixes this issue.
Copy code
# Growthbook Java SDK classes
-keep class growthbook.sdk.java.** { *; }
Thanks for the direction! I was thinking this was the issue, but I kept thinking I already ruled it out. Really appreciate it!
b
🙌 awesome! thanks for confirming. i will add this to our docs
1
133 Views