Search code examples
androidproguardandroid-app-bundle

Does android app bundle and proguard rules do the same optimization?


Is there any difference between proguard rules optimization and app bundle optimization or is it same thing? Can any one explain how they are different?


Solution

  • When you upload app bundle to play store ,the play store will generate a new apk based on the user device , suppose user device is xhdpi , the generated apk by play store will only have xhdpi resources . This will not remove unused code .

    Where as the proguard will remove all the unused code while generating the apk . It will not remove alternative resolution resources .