before using EncryptedSharedPreferences my app works fine in release mode with (minifyEnabled = true), After adding the security library (version 1.0.0-rc01) to my application the app crash while opening and if i use (minifyEnabled = false) the app works fine, i think i missing something to add it in proguard-rules.pro but i have searched a lot did not found anything.
Is there any proguard rules should use while using EncryptedSharedPreferences?
2.7k views Asked by Ahmed Mousa At
3
There are 3 answers
0
On
This issue has been answered with a more targeted proguard rule here
-keepclassmembers class * extends com.google.crypto.tink.shaded.protobuf.GeneratedMessageLite {
<fields>;
}
This saves my app ~0.2MB compared to the currently accepted answer
Looks like something wrong with Tink obfuscation. My current workaround is add this rule to proguard:
But also keep track of updates of issue here.
UPDATE - 06.01.2020
There is more effective solution (thanks
@jtsalvato pointing out):UPDATE - 08.19.2020
This issue should now fixed in Version 1.0.0-rc03