Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-2950] Tooling: Add support for platform and default "version" for modules in tiapp.xml

GitHub Issuen/a
TypeNew Feature
PriorityMedium
StatusClosed
ResolutionDuplicate
Resolution Date2011-04-15T03:33:36.000+0000
Affected Version/sn/a
Fix Version/sRelease 1.6.0 M07
ComponentsAndroid
Labelsandroid, feature, ios, module, release-1.6.0, tooling
ReporterMarshall Culpepper
AssigneeMarshall Culpepper
Created2011-04-15T03:33:36.000+0000
Updated2017-03-03T05:33:23.000+0000

Description

Currently there isn't a way for an app to specify what platform(s) a module should be enabled for, and the version number is also a hard requirement. We should allow any of the following methods for defining a module dependency in tiapp.xml:


<!-- the way it works today, use version 0.1 of com.company.module for all platforms-->
<module version="0.1">com.company.module</module>

<!-- use version 0.1 of com.company.module only for Android -->
<module version="0.1" platform="android">com.company.module</module>

<!-- use the most recently installed version of com.company.module for all platforms -->
<module>com.company.module</module>

We should also allow users to combine the rules above in multiple <module> tags, i.e:


<!-- use com.company.module 1.0 for android, 1.1 for iphone -->
<module platform="android" version="1.0">com.company.module</module>
<module platform="iphone" version="1.1">com.company.module</module>

Comments

  1. Don Thorp 2011-04-15

    Mostly a duplicate of #2847. Differences merged down to that ticket.

  2. Lee Morris 2017-03-03

    Closing issue due to time passed and irrelevance of the ticket.

JSON Source