Titanium Community Questions & Answer Archive

We felt that 6+ years of knowledge should not die so this is the Titanium Community Questions & Answer Archive

Minimizing Application Size

I was wondering if there is any way to minimize the size of an application. I've noticed when packaged up for the App Store Apps are around 5 MB. When looking at the xCode project

I notice many of the .h files included are for items not used in my project. Is there any way to fix this or are there plans down the road to optimize file size?

— asked November 5th 2010 by John Welch
  • appstore
  • optimization

3 Answers

  • There is actually already a ticket that addresses this issue, here. The team are hoping to include it with the release of 1.5, although obviously this is not guaranteed.
    Hope this helps

    — answered November 5th 2010 by Paul Dowsett
  • Thanks!

    This looks like it is categorized as an Android bug only.

    — answered November 5th 2010 by John Welch
  • You can also clear out anything you're not using in your resources folder. When I first started I would copy images and icons and other files in there, then maybe change my mind and use something else without removing these. Titanium adds everything in this folder, if I'm not mistaken.

    — answered November 5th 2010 by Josh Lewis
    1 Comment
    • Yes, I know this and I keep my resources folder to a minimum.

      Another item to consider related to this, if you create a backup file of a .js file it will copy the source directly to the package application. So, if you are trying to keep your source code secret don't keep any backup files with a .bak file or anything other than js.

      — commented November 5th 2010 by John Welch
The ownership of individual contributions to this community generated content is retained by the authors of their contributions.
All trademarks remain the property of the respective owner.