Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-16341] CLI: Support defining Ti dependencies in modules

GitHub Issuen/a
TypeStory
PriorityHigh
StatusClosed
ResolutionInvalid
Resolution Date2014-01-30T19:12:47.000+0000
Affected Version/sRelease 3.2.0
Fix Version/sn/a
ComponentsCLI
Labelsn/a
ReporterJon Alter
AssigneeChris Barber
Created2014-01-29T19:41:30.000+0000
Updated2014-06-19T12:43:43.000+0000

Description

During build time, the CLI excludes Ti Classes that are not found in the app's js code. This is problematic when a module uses a class that is not used in any js code. For example, the Brightcove module uses TiMediaVideoPlayerProxy class and it is necessary to have a line of code referencing Ti.Media.createVideoPlayer so that class will be included in the build (see MOD-1628). It would be very helpful if we could define the classes that are used in a module and have the build process include those classes without having to reference them in the js.

Comments

  1. Chris Barber 2014-01-30

    Hmm, isn't this what the metadata.json file is used for? Handling of the metadata.json file is not identical between iOS and Android, so we'd need to check if each are correct and if it solves your use case.
  2. Jon Alter 2014-01-30

    Sure is! How did I not know about this? Thanks [~cbarber]

JSON Source