Zipalign - Is it built into Titanium?
I've read that you should zipalign your apk-file before releasing it. Do we have to do this ourselves or will Titanium take care of it for you?
Since I didn't know I did it myself, when I saw that a lot of other files are included in my apk, images that I don't need. Example:
3609754 org/appcelerator/titanium/res/drawable/btn_picker_pressed.9.png (OK - compressed)
3614329 org/appcelerator/titanium/res/drawable/btn_picker_selected.9.png (OK - compressed)
3618923 org/appcelerator/titanium/res/drawable/default_icon.png (OK - compressed)
3622702 org/appcelerator/titanium/res/drawable/photoDefault.png (OK - compressed)
3626816 ti/modules/titanium/facebook/LICENSE (OK - compressed)
3627659 ti/modules/titanium/facebook/resources/close.png (OK - compressed)
3627914 ti/modules/titanium/facebook/resources/fbicon.png (OK - compressed)
Are these really necessary? For most apps they only make the file size bigger, which is a shame.
2 Answers
-
You don't say which SDK you're using, but the upcoming 1.5.0 release has zipalign and it also generates a smaller apk.
-
I'm using SDK 1.4.2.