问题
The size of these libraries really increase the APK size. It’s almost 50% my App size, taking it to 16.3 MBs and when I analyze the APK, sqlcipher-lib alone is 48.9% of my apk size i.e 7.3MBs!!!
Is there any workaround?
Edit: Since this is a DB related issue and I believe it's good if the specified tags remain referenced for specificity during search by other developers. I think the answer below addresses it better in order to keep the conversation along specific topics
回答1:
This section of the thread that has seen the realization of SafeRoom better explains the solution. Which is precisely; Stay with the problem in order to support different architectures. So I had to continue with this proguard rule;
-keep class net.sqlcipher.** {
*;
}
which keeps the sizable classes.
来源:https://stackoverflow.com/questions/54289061/sqlcipher-and-cwac-saferoom-doubling-the-size-of-my-apk