SQLCipher and CWAC-SafeRoom doubling the size of my APK

618 Views Asked by At

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?

enter image description here

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

There are 1 best solutions below

0
Geek Guy On

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.