Software Archive
Read-only legacy content
17061 Discussions

built apk has unneeded resources that increase the size

Roi_D_
New Contributor I
217 Views

Hi,

I'm using the android build option and I see the resulting apk has resources that are not needed and just adding size to the final apk.

1. assets/www/res folder holding the icons should not be included in apk. those icons are duplicated to res/drawable* folders and are used from there.

though the cordova builds requires the icons linked from the xml be in the www folder but not requires for final apk.
the phonegap build server for example has a feature that if I add .pgbomit in the www/res folder then this folder won't be includes. this avoids the duplication of the launcher icons in res/ and assets/www/res which is not needed.

2. the resulting apk has assets/www/img/logo.png being added which is the default cordova logo.

this is not being used anywhere and was automatically includes. this is ~21.8K image file which is not being used. is there a reason why this file being added?

Thanks,
Roi

 

0 Kudos
1 Reply
Anusha_M_Intel1
Employee
217 Views

Hi Roi,

I replied to your other post. I have passed this on to the engineering team. 

0 Kudos
Reply