Why corona copies unwanted images to build files

I have a app its folder size is 4.5mb. but after android build it became 9.3mb. I extracted the apk and i found there some unwanted( form me!) images(like facebook icons and other images) in the web resource folder…why it happens? how can i reduce the size of my app… any solution? [import]uid: 92740 topic_id: 20804 reply_id: 320804[/import]

anything that is part of the folder you ask to be built, it will add to the apk regardless of wether the asset is used or not.

unlike traditional ide’s we don’t have a “resource” file. but even like traditional ide’s if the asset is on the resource file and it is not used, it still takes disk space.

c [import]uid: 24 topic_id: 20804 reply_id: 81976[/import]

I dint get your point. my question is if i build a simple project with no extra images ,just a main.lua it is up to 4.2mb!. why? Is that fair? can we reduce that size? [import]uid: 92740 topic_id: 20804 reply_id: 82092[/import]

hmm -

if just a main.lua with display.newText(“hello world”) is 4.2 mb because we include a bunch of stuff on the android side of things. this is a known issue and we are looking to solve.

but we don’t have an eta on it as we are working on other high priorities such as IAP on android.

c [import]uid: 24 topic_id: 20804 reply_id: 82403[/import]

I think this is big “bug” - just “Hello World” apps is almost 5MB. In pure Java it is about some kb and in another engine it’s about 200 - 400 Kb.

I understand there must be some corona libs, but no other files.

This is very bad. [import]uid: 127034 topic_id: 20804 reply_id: 89980[/import]

hmmmm… let me see… :wink:

_this is a known issue and we are looking to solve.

but we don’t have an eta on it as we are working on other high priorities such as IAP on android_

c [import]uid: 24 topic_id: 20804 reply_id: 89990[/import]