Decrease the Size of Your App
Although the SDK doesn't have a large footprint, you can decrease the size of your app by
splitting your APK or by using ProGuard.
The SOS SDK contains native libraries for a variety of architectures, so it can benefit from APK splitting. See the Android documentation on splitting your APK.
You can also use ProGuard to shrink and optimize your app. Use the following ProGuard rules as a starting point.
1################# ALL #################
2
3# ------------------ OkHttp --------------------------
4-dontwarn okio.**
5-dontwarn okhttp3.**
6-dontwarn javax.annotation.**
7-dontwarn org.conscrypt.**
8-keepnames class okhttp3.internal.publicsuffix.PublicSuffixDatabase
9
10# ------------------ SQLCipher ------------------------
11# If you're only using Chat, you can remove the sqlcipher rules
12-keep class net.sqlcipher.** { *; }
13-dontwarn net.sqlcipher.**
14
15# ------------------ Gson ----------------------------
16-keepclassmembers,allowobfuscation class * {
17 @com.google.gson.annotations.SerializedName <fields>;
18}