• smaller APK sizes correlate with higher install conversion rates Lower conversion rate Slower downloads Higher uninstall Lower update rates https://medium.com/googleplaydev/shrinking-apks-growing-installs • For every 6 MB increase to an APK’s size, we see a decrease in the install conversion rate of 1%. 4
assemble[Debug/Release] Contains files for all device configurations 2. Dynamic delivery with App Bundle • Of fi cial android app publishing format • Allows to build an apk for speci fi c device Decreases the apk size by ~35% https://developer.android.com/guide/app-bundle/app-bundle-format 7
(feature1-master.apk) Dynamic feature 3 APK (feature1-master.apk) Feature 1 con fi guration Split APKs: feature2-xxhdpi.apk feature2-xhdpi.apk feature2-hdpi.apk ... ABI con fi guration Split APKs: feature2-x86.apk feature2-x86_64.apk feature2-armeabi.apk ... Language con fi guration Split APKs: feature2-en.apk feature2-fr.apk feature2-de.apk ... Feature 2 con fi
current and previous apks Run every 3 hours Build release apk Store size metrics Compare current and previous apks Run every 3 hours ~3h Collect involved commits 12
./gradlew bundleRelease Generate device speci fi c apk Using bundletool java -jar bundletool.jar build-apks --device-spec=device-spec.json --bundle=current.aab --output=current-release.apks --mode=system 15
release Generate device speci fi c apk Download development build git merge-base development feature/task1 Compare dev and pr apks Using diffuse tool 17
release Generate device speci fi c apk Download development build git merge-base development feature/task1 Compare dev and pr apks Using diffuse tool Report on PR Detailed diffuse report/Block PR 17
release Generate device speci fi c apk Download development build Compare dev and pr apks Report on PR Check git changed fi les Compile release code ./gradlew app:compileReleaseJavaWithJavac 17
Generate device speci fi c apk Checkout development Compare PR and development apks Using diffuse tool Report on PR Diffuse report/Block PR Build bundle release Generate device speci fi c apk 19
Generate device speci fi c apk Checkout development Compare PR and development apks Report on PR Check git changed fi les Build bundle release Generate device speci fi c apk 19