[TIMOB-10336] Tooling: Only include certain modules from tiapp.xml in build depending on deployment type
GitHub Issue | n/a |
---|---|
Type | New Feature |
Priority | High |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2012-10-05T22:30:51.000+0000 |
Affected Version/s | Release 3.0.0 |
Fix Version/s | Release 3.0.0, Sprint 2012-20 Core, 2012 Sprint 20 |
Components | Tooling |
Labels | core |
Reporter | Ingo Muschenetz |
Assignee | Opie Cyrus |
Created | 2012-08-07T15:36:07.000+0000 |
Updated | 2017-03-14T04:20:25.000+0000 |
Description
Some modules are only available or allowed in development or test environments, and should not be included in production builds.
Suggest adding an attribute to the node in tiapp.xml with the deployment type for this module.
* A non-existent deploy-type attribute indicates the module is available for all deployment types
* If a module is available in multiple deployment types (i.e. development and production), the entry will appear twice
<modules>
<module platform="iphone">ti.barcode</module>
<module platform="iphone" deploy-type="test">ti.crittercism</module>
<module platform="iphone" deploy-type="production">ti.crittercism</module>
</modules>
Fix in python, clone ticket for improvement against new CLI.
PR submitted: https://github.com/appcelerator/titanium_mobile/pull/3101 Spoke with Chris for Mobile Web and he said that this functionality is already supported for Mobile Web within the existing CLI implementation so no new ticket is required. Based on that, the associated fix for this ticket is limited to Android and iOS only. To test this change create both a iOS and Android Module called "mod1" and install that as needed. Create a test app within TiStudio and add the following to the tiapp.xml: ** this example is for iOS module inclusion but can be modified for Android module "
Closing ticket as fixed.