---
schema_version: "1"
id: 3bf5392e0c0bf5bf71cf9f9ec6cd8c10c4e20073893a41dc6790f39220d76318
title: Decrease the Size of Your App
collection: developer
version: current
locale: en-us
portal_url: https://docs.salesforce.com/developer/current/en-us/service-cloud/service-sdk-android/guides/android-apk.md
canonical_url: https://developer.salesforce.com/docs/service/service-sdk-android/guide/android-apk.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: 11ba94d18ea9fcb9c7387ccf253c2178384084b9fd0d7fe6d9055e78a8d86a42
products:
  - Embedded Service Chat SDK for Android Developer Guide
  - Service Cloud Developer Content
---

# 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:** 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) before that date. Messaging offers many of the [chat features](https://help.salesforce.com/s/articleView?id=service.miaw_chat_vs_messaging.htm&type=5) that you 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).

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.

```xml
################# 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>;
}
```
