{ "id": "174743", "key": "ALOY-1720", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "11113", "key": "ALOY", "name": "Alloy", "projectCategory": { "id": "10400", "description": "Tools for developing applications", "name": "Tooling" } }, "fixVersions": [ { "id": "21028", "description": "", "name": "CLI Release 8.1.0", "archived": false, "released": true, "releaseDate": "2020-08-25" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2020-08-13T15:36:10.000+0000", "created": "2020-02-15T02:52:02.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "alloy", "sdk", "version" ], "versions": [], "issuelinks": [], "assignee": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "updated": "2020-08-13T15:36:10.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": "*Summary:*\r\nThere are places in Alloy's code which compares Titanium SDK versions by string. While this works for now, this will eventually break when the Titanium version has been update to 10.0.0.\r\n\r\n*Example:*\r\n{code:javascript}\r\nif (Ti.version >= '8.0.0') {\r\n // Will NOT land here if version is 10.0.0 or higher. (This is the bug.)\r\n}\r\n{code}\r\n\r\n*Areas To Be Fixed:*\r\nhttps://github.com/appcelerator/alloy/blob/master/Alloy/template/lib/alloy.js\r\n{code:javascript}\r\nvar MW320_CHECK = OS_MOBILEWEB && TI_VERSION >= '3.2.0';\r\nvar IDENTITY_TRANSFORM = OS_ANDROID ? (Ti.version >= '8.0.0' ? Ti.UI.createMatrix2D() : Ti.UI.create2DMatrix()) : undefined;\r\n{code}\r\n\r\nhttps://github.com/appcelerator/alloy/blob/master/Alloy/builtins/animation.js\r\n{code:javascript}\r\nconst create3DMatrix = Ti.version >= '8.0.0' ? Ti.UI.createMatrix3D : Ti.UI.create3DMatrix;\r\nconst create2DMatrix = Ti.version >= '8.0.0' ? Ti.UI.createMatrix2D : Ti.UI.create2DMatrix;\r\n{code}\r\n\r\n*Solution:*\r\nUse semver {{gte()}} method instead.\r\n", "attachment": [], "flagged": false, "summary": "Version string comparison will break for SDK 10.0.0", "creator": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "closedSprints": [ { "id": 1199, "state": "closed", "name": "2020 Sprint 13", "startDate": "2020-06-19T16:41:04.099Z", "endDate": "2020-07-02T16:41:00.000Z", "completeDate": "2020-07-02T15:37:12.455Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "455969", "author": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "body": "PR: https://github.com/appcelerator/alloy/pull/960", "updateAuthor": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "created": "2020-06-30T13:38:46.000+0000", "updated": "2020-06-30T13:38:46.000+0000" }, { "id": "456162", "author": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "body": "Test steps:\r\n\r\nUse the [builtins sample|https://github.com/appcelerator/alloy/tree/master/samples/apps/basics/builtins] and make sure the functionality still works, if you're feeling adventurous bump the SDK version to 10.0.0 and create a build via the build scripts, it should still work on that SDK", "updateAuthor": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "created": "2020-07-20T11:02:20.000+0000", "updated": "2020-08-12T15:42:32.000+0000" }, { "id": "456463", "author": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket, using CLI version 8.1.0-master.11, Tested using the instructions above.\r\n\r\nNOTE* once a SDK Branch exists this can be retested. ", "updateAuthor": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2020-08-13T15:35:56.000+0000", "updated": "2020-08-13T15:35:56.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }