Skip to content

ProGuard / R8 & App Size

The Pulsate SDK ships consumer ProGuard rules inside the AAR. When you enable minification, Gradle applies the SDK’s rules automatically:

buildTypes {
release {
minifyEnabled true
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}

No Pulsate-specific -keep rules are needed in your app.

Publish an App Bundle (.aab) — Google Play generates optimized APKs per device configuration, so users only download the code and resources they need. This is also a Play Store requirement for new apps.

splits {
abi {
enable true
reset()
include 'arm64-v8a', 'armeabi-v7a'
universalApk false
}
}
buildTypes {
release {
ndk {
abiFilters "arm64-v8a", "armeabi-v7a"
}
}
}

x86/x86_64 devices are practically nonexistent among real Android users; excluding those ABIs saves the most space with one line.