[TIMOB-6845] Android: Ti should include only the used features/libs into a new app
GitHub Issue | n/a |
Type | New Feature |
Priority | High |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2013-10-19T01:18:35.000+0000 |
Affected Version/s | Release 1.8.0.1 |
Fix Version/s | 2013 Sprint 21, 2013 Sprint 21 Core, Release 3.2.0 |
Components | Android, Tooling |
Labels | androidbuild, ay-verified, cb-verified, module_android |
Reporter | Mauro Parra-Miranda |
Assignee | Chris Barber |
Created | 2011-12-22T10:40:21.000+0000 |
Updated | 2013-12-06T18:55:14.000+0000 |
Description
PROBLEM DESCRIPTION
For iOS, when you create a new mobile project in Titanium Studio and run it on device, the ipa file it generates is well over 4MB.
STEPS TO REPRODUCE
1. Create new mobile project
2. Compile it to device
3. Check the size of the app.
ACTUAL RESULTS
App bigger than 4MB, even if it's an almost empty app.
EXPECTED RESULTS
Ti only adding the needed functionality, according to the namespaces used in the app.
Comments
JSON Source
Mauro, that should say compile it to device.
Changed to device.
PR: https://github.com/appcelerator/titanium_mobile/pull/4781
To test: Do a distribution build and a device build, with the "build only" flag. Check the project/build/android/bin/assets/app.json Open the file and verify that the list only contains the modules you expect to see. For almost all apps, the following are included, so try to add some functionality to change the list. network analytics android app ui locale Recommendation is to add media to the app so you get "media" added to app.json Verify the trace log for the build under "adding library" and you should only see the libraries you see in the app.json
Verified by following the steps given by Eric. Environment: Appcel Studio : 3.2.0.201312042306 Ti SDK : 3.2.0.v20131204220843 Mac OSX : 10.8.5 Alloy : 1.3.0-beta CLI - 3.2.0-beta Samsung Galaxy S4 running android 4.2.2 Nexus 5 - android 4.4