{ "id": "155322", "key": "TIMOB-20570", "fields": { "issuetype": { "id": "4", "description": "An improvement or enhancement to an existing feature or task.", "name": "Improvement", "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": [], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2016-03-16T18:29:18.000+0000", "created": "2016-03-03T17:30:09.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [], "versions": [], "issuelinks": [ { "id": "50781", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "155236", "key": "TIMOB-20489", "fields": { "summary": "iOS modules unable to write to product", "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": "Critical", "id": "1" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } }, { "id": "50782", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "155323", "key": "TISTUD-8012", "fields": { "summary": "Studio needs to call \"appc run\" / \"ti build\" to build iOS/Android 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": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "updated": "2017-03-31T22:03:39.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": [], "description": "In SDK 5.2.0, we changed the behavior of the {{platform/ios}} directory where files are copied to the build directory instead of the output app directory. This broke several modules, so we added support for a \"Resources\" directory in the module's platform-specific subdirectory (TIMOB-20489).\r\n\r\nThis ticket is to add parity and support the \"Resources\" directory including:\r\n* All files in the \"Resources\" directory will be copied to the Android output app directory: {{build/android/bin/assets/Resources}}.\r\n* Add a \"Resources\" folder to the {{android/templates/module/default/template/android}} directory in the titanium_mobile repo. Copy the iOS readme into this \"Resources\" directory: {{iphone/templates/module/default/template/iphone/Resources/README.md}}.\r\n* Remove {{android/templates/module/default/template/android/platform/README}} and replace with {{iphone/templates/module/default/template/iphone/platform/README.md}}.\r\n\r\nAlso, we need to add support for the {{\\-\\-build\\-only}} flag. Should be similar to what was needed for the iOS module build:\r\n* https://github.com/appcelerator/titanium_mobile/blob/master/iphone/cli/commands/_buildModule.js#L61\r\n* https://github.com/appcelerator/titanium_mobile/blob/master/iphone/cli/commands/_buildModule.js#L597-L599", "attachment": [], "flagged": false, "summary": "Add support for \"Resources\" dir and --build-only to Android module build", "creator": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "subtasks": [], "reporter": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "environment": null, "closedSprints": [ { "id": 598, "state": "closed", "name": "2016 Sprint 06 Tooling", "startDate": "2016-03-12T01:30:46.475Z", "endDate": "2016-03-26T00:30:00.000Z", "completeDate": "2016-03-28T03:31:22.652Z", "originBoardId": 121 } ], "comment": { "comments": [ { "id": "379796", "author": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "body": "Master PR: https://github.com/appcelerator/titanium_mobile/pull/7848\r\n5_3_X PR: https://github.com/appcelerator/titanium_mobile/pull/7849\r\n5_2_X PR: https://github.com/appcelerator/titanium_mobile/pull/7850\r\n\r\nTo test:\r\n# Create a new module\r\n# Add some files to the {{android/Resources}} directory\r\n# Run \"ti build -p android --build-only\" or \"appc run -p android --build-only\" from the module's {{android}} directory\r\n# Observe that the it just builds the module... it doesn't create a Titanium app, build, and run it\r\n# Open the generated {{dist/.zip}} and verify the {{Resources}} directory with the files exist", "updateAuthor": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "created": "2016-03-15T23:14:49.000+0000", "updated": "2016-03-15T23:14:49.000+0000" }, { "id": "379899", "author": { "name": "fmiao", "key": "fmiao", "displayName": "Feon Sua Xin Miao", "active": true, "timeZone": "America/Vancouver" }, "body": "PRs merged.", "updateAuthor": { "name": "fmiao", "key": "fmiao", "displayName": "Feon Sua Xin Miao", "active": true, "timeZone": "America/Vancouver" }, "created": "2016-03-16T18:29:18.000+0000", "updated": "2016-03-16T18:29:18.000+0000" }, { "id": "416558", "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-31T22:03:39.000+0000", "updated": "2017-03-31T22:03:39.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }