SQLCipher and CWAC-SafeRoom doubling the size of my APK
Asked Answered
O

1

0

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

Ohara answered 21/1, 2019 at 11:30 Comment(1)
Possible duplicate of Android: vlc-android-sdk increase 60MB to my apk file sizeAbercrombie
O
0

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.

Ohara answered 21/1, 2019 at 15:39 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.