Skip to content

Commit b02fa81

Browse files
Merge pull request #26 from getyoti/YD-2640
[YD-2640] Update README.md: advices about how to reduce APK size
2 parents 677eabb + 8d8c156 commit b02fa81

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -232,6 +232,11 @@ In order to change the colours of the different elements of the screens you just
232232
<color name="yoti_sdk_colorAccentPressed">#AA164A</color>
233233
<color name="yoti_sdk_colorAccentDisabled">#F8B3CB</color>
234234
```
235+
## Reducing the size of your APK
236+
We recommend that you distribute your app using [App Bundle](https://developer.android.com/platform/technology/app-bundle). This new Google Play feature allows you to use [Play Feature delivery](https://developer.android.com/guide/app-bundle/play-feature-delivery#customize_delivery) which uses advanced capabilities of app bundles, allowing certain features of your app to be delivered conditionally or downloaded on demand.
237+
App Bundle also defer apk generation to Google Play, allowing it to generate minimal APK for each specific device that downloads your app, including only required processor architecture support.
238+
239+
Also, don't forget to [shrink, obfuscate and optimize](https://developer.android.com/studio/build/shrink-code) your app.
235240

236241
## Support
237242
If you have any other questions please do not hesitate to contact [email protected].

app/build.gradle

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ android {
2626
buildTypes {
2727
release {
2828
minifyEnabled true
29+
shrinkResources true
2930
proguardFiles getDefaultProguardFile('proguard-android.txt'),
3031
'proguard-rules.pro',
3132
'proguard-rules-retrofit.pro'

0 commit comments

Comments
 (0)