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 legacy chat product is scheduled for retirement on February 14, 2026, and is in maintenance mode until then. During this phase, you can continue to use chat, but we no longer recommend that you implement new chat channels. To avoid service interruptions to your customers, migrate to Messaging for In-App and Web before that date. Messaging offers many of the chat features that you love plus asynchronous conversations that can be picked back up at any time. Learn about chat retirement in Help.

Important

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}