Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-6845] Android: Ti should include only the used features/libs into a new app

GitHub Issuen/a
TypeNew Feature
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2013-10-19T01:18:35.000+0000
Affected Version/sRelease 1.8.0.1
Fix Version/s2013 Sprint 21, 2013 Sprint 21 Core, Release 3.2.0
ComponentsAndroid, Tooling
Labelsandroidbuild, ay-verified, cb-verified, module_android
ReporterMauro Parra-Miranda
AssigneeChris Barber
Created2011-12-22T10:40:21.000+0000
Updated2013-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

  1. David Rodriguez 2012-01-09

    Mauro, that should say compile it to device.
  2. Mauro Parra-Miranda 2012-01-09

    Changed to device.
  3. Allen Yeung 2013-10-19

    PR: https://github.com/appcelerator/titanium_mobile/pull/4781
  4. Eric Merriman 2013-12-05

    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
  5. Lokesh Choudhary 2013-12-06

    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

JSON Source