{ "id": "98809", "key": "TIMOB-10336", "fields": { "issuetype": { "id": "2", "description": "A new feature of the product, which has yet to be developed.", "name": "New Feature", "subtask": false }, "project": { "id": "10153", "key": "TIMOB", "name": "Titanium SDK/CLI", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [ { "id": "13505", "description": "Release 3.0.0", "name": "Release 3.0.0", "archived": true, "released": true, "releaseDate": "2012-12-14" }, { "id": "14158", "description": "Sprint 2012-20 Core", "name": "Sprint 2012-20 Core", "archived": true, "released": true, "releaseDate": "2012-10-08" }, { "id": "14272", "description": "2012 Sprint 20", "name": "2012 Sprint 20", "archived": true, "released": true, "releaseDate": "2012-10-08" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2012-10-05T22:30:51.000+0000", "created": "2012-08-07T15:36:07.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "core" ], "versions": [ { "id": "13505", "description": "Release 3.0.0", "name": "Release 3.0.0", "archived": true, "released": true, "releaseDate": "2012-12-14" } ], "issuelinks": [ { "id": "19737", "type": { "id": "10000", "name": "Blocks", "inward": "is blocked by", "outward": "blocks" }, "outwardIssue": { "id": "98811", "key": "TISTUD-2062", "fields": { "summary": "Allow specifying deployment type for modules", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "priority": { "name": "High", "id": "2" }, "issuetype": { "id": "4", "description": "An improvement or enhancement to an existing feature or task.", "name": "Improvement", "subtask": false } } } } ], "assignee": { "name": "opiecyrus", "key": "opiecyrus", "displayName": "Opie Cyrus", "active": true, "timeZone": "America/Chicago" }, "updated": "2017-03-14T04:20:25.000+0000", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "10207", "name": "Tooling" } ], "description": "Some modules are only available or allowed in development or test environments, and should not be included in production builds.\r\n\r\nSuggest adding an attribute to the node in tiapp.xml with the deployment type for this module.\r\n\r\n* A non-existent deploy-type attribute indicates the module is available for all deployment types\r\n* If a module is available in multiple deployment types (i.e. development and production), the entry will appear twice\r\n\r\n{code}\r\n\r\n ti.barcode\r\n ti.crittercism\r\n ti.crittercism\r\n\r\n{code}\r\n", "attachment": [], "flagged": false, "summary": "Tooling: Only include certain modules from tiapp.xml in build depending on deployment type", "creator": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "closedSprints": [ { "id": 3, "state": "closed", "name": "Release 3.0.0", "startDate": "2012-09-27T05:26:46.636Z", "endDate": "2012-10-08T20:05:00.000Z", "completeDate": "2012-12-20T17:03:19.403Z" } ], "comment": { "comments": [ { "id": "220624", "author": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Fix in python, clone ticket for improvement against new CLI.", "updateAuthor": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-09-25T14:40:10.000+0000", "updated": "2012-09-25T14:40:10.000+0000" }, { "id": "221957", "author": { "name": "opiecyrus", "key": "opiecyrus", "displayName": "Opie Cyrus", "active": true, "timeZone": "America/Chicago" }, "body": "PR submitted: https://github.com/appcelerator/titanium_mobile/pull/3101\r\n\r\nSpoke 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.\r\n\r\nTo 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:\r\n\r\n** this example is for iOS module inclusion but can be modified for Android module\r\n\"\r\n \r\n mod1\r\n mod1\r\n mod1\r\n \r\n\"\r\n\r\nOnce the tiapp.xml is updated, update the app.js with the example JS provided when the module was created and run the app.\r\n\r\n\r\nIn regards to the expected behavior, in the above use case only a single instance of the module should be included in the app. The rules are as follows:\r\n\r\n1) If a module entry does not specify a deploy-type flag then the default behavior is to be valid for all app deploy modes (legacy support)\r\n2) If any of the matching module entries (module tag with the same id and platform) have a deploy-type set then legacy support for that id/platform combination is turned off (thus negating the rule in #1). Modules that fell under #1 are treated as having a deploy-type of !production in this case.\r\n3) modules that have a deploy-type of 'production' will only be included if the app is being distributed\r\n4) modules that have a deploy-type of anything other than 'production' will only be included if the app is being built for not distribution\r\n\r\n\r\nThis mechanism should be tested out for both iOS and Android apps.\r\n", "updateAuthor": { "name": "opiecyrus", "key": "opiecyrus", "displayName": "Opie Cyrus", "active": true, "timeZone": "America/Chicago" }, "created": "2012-10-03T20:27:31.000+0000", "updated": "2012-10-03T20:30:12.000+0000" }, { "id": "411867", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as fixed.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-14T04:20:25.000+0000", "updated": "2017-03-14T04:20:25.000+0000" } ], "maxResults": 4, "total": 4, "startAt": 0 } } }