---
schema_version: "1"
id: 50753402537a383c705592a677ea2067d28de59eea878ea8402154dd4ca85158
title: Decrease the Size of Your App
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/service_sdk_android/android_apk.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.service_sdk_android.meta/service_sdk_android/android_apk.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: 60511c74d19777d046b7c327a6f8263e0f966f771cc3e27f4f47b7d9f47dc880
description: 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.
---
# 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.

![Important](https://developer.salesforce.com/docs/atlas.en-us.service_sdk_android.meta/service_sdk_android/images/icon_note_important.png)

#### Important

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](https://help.salesforce.com/s/articleView?id=service.miaw_intro_landing.htm&type=5&language=en_US) before that date. Messaging offers many of the [chat features that you](https://help.salesforce.com/s/articleView?id=service.miaw_chat_vs_messaging.htm&type=5&language=en_US) love plus asynchronous conversations that can be picked back up at any time. Learn about chat retirement in [Help](https://help.salesforce.com/s/articleView?id=001790618&type=1&language=en_US).

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](https://developer.android.com/studio/build/configure-apk-splits.html).

You can also use [ProGuard](https://sourceforge.net/projects/proguard/) to shrink and optimize your app. Use the following ProGuard rules as a starting point.

################# ALL #################

# ------------------ OkHttp --------------------------
-dontwarn okio.\*\*
-dontwarn okhttp3.\*\*
-dontwarn javax.annotation.\*\*
-dontwarn org.conscrypt.\*\*
-keepnames class okhttp3.internal.publicsuffix.PublicSuffixDatabase

# ------------------ SQLCipher ------------------------
# If you're only using Chat, you can remove the sqlcipher rules
-keep class net.sqlcipher.\*\* { \*; }
-dontwarn net.sqlcipher.\*\*

# ------------------ Gson ----------------------------
-keepclassmembers,allowobfuscation class \* { 
    @com.google.gson.annotations.SerializedName <fields\>;
}