SQLCipher and CWAC-SafeRoom doubling the size of my APK

烈酒焚心 提交于 2020-01-06 07:31:53

问题


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

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