Is there any proguard rules should use while using EncryptedSharedPreferences?

三世轮回 提交于 2020-05-16 22:02:16

问题


before using EncryptedSharedPreferences my app works fine in release mode with (minifyEnabled = true), After adding the security library 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.


回答1:


Looks like something wrong with Tink obfuscation. My current workaround is add this rule to proguard:

-keep class com.google.crypto.tink.** { *; }

But also keep track of updates of issue here.



来源:https://stackoverflow.com/questions/61369378/is-there-any-proguard-rules-should-use-while-using-encryptedsharedpreferences

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!