{ "id": "173835", "key": "TIMOB-27204", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "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": "20412", "name": "Release 8.1.0", "archived": false, "released": true, "releaseDate": "2019-08-13" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2019-07-05T14:00:54.000+0000", "created": "2019-07-02T14:22:58.000+0000", "priority": { "name": "None", "id": "6" }, "labels": [], "versions": [ { "id": "20412", "name": "Release 8.1.0", "archived": false, "released": true, "releaseDate": "2019-08-13" }, { "id": "20827", "name": "Release 8.2.0", "archived": false, "released": true, "releaseDate": "2019-09-19" } ], "issuelinks": [ { "id": "57726", "type": { "id": "10122", "name": "Gantt: start-finish", "inward": "is triggered by", "outward": "is triggering" }, "inwardIssue": { "id": "154836", "key": "TIMOB-20379", "fields": { "summary": "Support module distribution via NPM", "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": "None", "id": "6" }, "issuetype": { "id": "7", "description": "gh.issue.story.desc", "name": "Story", "subtask": false } } } } ], "assignee": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "updated": "2019-07-05T14:00:54.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": "10202", "name": "Android", "description": "Android Platform" }, { "id": "13103", "name": "CLI", "description": "Node-based command line interface" }, { "id": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "h5.Description\r\n\r\nWhen installing a module from npm and building, the apiversion fails even if the apiversion is correct. This is because the apiversion passed in from the SDK is a string, whereas the version from the version we get from the module is a number. We should parseInt both of these before using them.\r\n\r\nh5.Steps to reproduce\r\n\r\n1. In the root of your titanium project {{alongside tiapp.xml}}, run {{npm init -y}} and then {{npm i @titanium/imagefactory}}\r\n2. Add {{ti.imagefactory}} to your modules section in the tiapp\r\n3. Build for Android or iOS (iOS will require TIMOB-27203 to be fixed first)\r\n\r\nh5.Actual\r\n\r\nBuild errors with {{\\[ERROR\\] Found incompatible Titanium Modules:}}\r\n\r\nh5.Expected\r\n\r\nNo error as everything is valid", "attachment": [], "flagged": false, "summary": "CLI: apiversion validation always fails for native modules installed via npm", "creator": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "subtasks": [], "reporter": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "environment": "SDK: 8.1.0.v20190701132634, 8.2.0.v20190628101943", "closedSprints": [ { "id": 1149, "state": "closed", "name": "2019 Sprint 14", "startDate": "2019-07-01T16:55:04.813Z", "endDate": "2019-07-14T16:55:00.000Z", "completeDate": "2019-07-15T15:41:02.311Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "449546", "author": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "body": "This is a bug in the implementation of the linked ticket that makes it unusable so it should go into 8.1.0 imo", "updateAuthor": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "created": "2019-07-02T14:25:10.000+0000", "updated": "2019-07-02T14:25:10.000+0000" }, { "id": "449548", "author": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "body": "node-appc PR: https://github.com/appcelerator/node-appc/pull/171", "updateAuthor": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "created": "2019-07-02T15:18:59.000+0000", "updated": "2019-07-02T15:18:59.000+0000" }, { "id": "449586", "author": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "body": "master: https://github.com/appcelerator/titanium_mobile/pull/11025\r\n8_1_X: https://github.com/appcelerator/titanium_mobile/pull/11026", "updateAuthor": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "created": "2019-07-03T10:02:16.000+0000", "updated": "2019-07-03T10:02:16.000+0000" }, { "id": "449611", "author": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "body": "FR Passed.", "updateAuthor": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2019-07-04T16:30:30.000+0000", "updated": "2019-07-04T16:30:30.000+0000" }, { "id": "449620", "author": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "body": "*Closing ticket* Fix verified in SDK Version {{8.2.0.v20190704101620}} and {{8.1.0.v20190704101545}}.\r\n\r\nTest and other information can be found at:\r\nmaster: https://github.com/appcelerator/titanium_mobile/pull/11025\r\n8_1_X: https://github.com/appcelerator/titanium_mobile/pull/11026", "updateAuthor": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2019-07-05T14:00:49.000+0000", "updated": "2019-07-05T14:00:49.000+0000" } ], "maxResults": 5, "total": 5, "startAt": 0 } } }