Play Store app localization

前端 未结 3 488
难免孤独
难免孤独 2020-12-16 13:00

I\'m about to upload my first app to the Google Play store and when I uploaded the APK to the Developer Console, it says under Localizations: default + 55 languages

3条回答
  •  暗喜
    暗喜 (楼主)
    2020-12-16 13:18

    At the time of apk build,aapt used to merge required folder(like res) specified into library that you required for your Application.

    Like below code adds google play service usage in your app.

    dependencies{
    compile 'com.google.android.gms:play-services-base:8.3.0'
    compile 'com.google.android.gms:play-services-gcm:8.3.0'
    }
    

    We can verify this by decompiling apk(using apktool),It shows values folders for supported languages by Your APP + added library.

    In case you only want to show specific languages for your app,You can set it in argument as shown below in build.gradle file.

     defaultConfig { 
    resConfigs "en", "en_US", "en_UK"          
    }
    

    This significantly shrink apk size.

提交回复
热议问题