{ "id": "174141", "key": "TIMOB-27408", "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": [], "resolution": null, "resolutiondate": null, "created": "2019-09-17T13:51:39.000+0000", "priority": { "name": "None", "id": "6" }, "labels": [ "cb-tooling", "engSchedule" ], "versions": [ { "id": "20827", "name": "Release 8.2.0", "archived": false, "released": true, "releaseDate": "2019-09-19" } ], "issuelinks": [], "assignee": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "updated": "2020-01-31T16:47:37.000+0000", "status": { "description": "The issue is open and ready for the assignee to start work on it.", "name": "Open", "id": "1", "statusCategory": { "id": 2, "key": "new", "colorName": "blue-gray", "name": "To Do" } }, "components": [], "description": "It looks like the hexToRgb code in {{/iphone/cli/commands/_build.js}} is incorrectly parsing the alpha value of the hex color and thus breaking the build for iOS apps on 8.2.0\r\n\r\n\r\n{noformat}\r\n(node:25015) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'r' of null\r\n at iOSBuilder.generateSemanticColors (/Users/brentonhouse/Library/Application Support/Titanium/mobilesdk/osx/8.2.0.RC/iphone/cli/commands/_build.js:5862:29)\r\n{noformat}\r\n\r\n", "attachment": [], "flagged": false, "summary": "Titanium CLI is improperly parsing hex color codes for dark mode", "creator": { "name": "bhouse", "key": "bhouse", "displayName": "Brenton House", "active": true, "timeZone": "America/Chicago" }, "subtasks": [], "reporter": { "name": "bhouse", "key": "bhouse", "displayName": "Brenton House", "active": true, "timeZone": "America/Chicago" }, "environment": null, "comment": { "comments": [ { "id": "451458", "author": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "body": "[~bhouse], to make it easier could you attach the value you're supplying in the file. For now I guess you could workaround this by setting the alpha in the file directly", "updateAuthor": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "created": "2019-09-17T19:27:16.000+0000", "updated": "2019-09-17T19:27:16.000+0000" }, { "id": "451473", "author": { "name": "topener", "key": "topener", "displayName": "Rene Pot", "active": true, "timeZone": "Europe/Berlin" }, "body": "[~eharris] that would be {{#55000000}} or something similar to that. {{#argb}} mode", "updateAuthor": { "name": "topener", "key": "topener", "displayName": "Rene Pot", "active": true, "timeZone": "Europe/Berlin" }, "created": "2019-09-18T08:03:41.000+0000", "updated": "2019-09-18T08:03:41.000+0000" }, { "id": "453983", "author": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "body": "I believe this issue to be valid. {{hexToRgb()}} can return {{null}}, but the code doesn't handle the scenario where the value is null.\r\n\r\nCommit: https://github.com/appcelerator/titanium_mobile/commit/1a8ae85c90c8a3a9be08744bae0b154bc125fd25#diff-f430483233aa01af5b10df8390f9635dR5826\r\n\r\nThis could be fixed in 3 if statements.", "updateAuthor": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "created": "2020-01-31T16:47:29.000+0000", "updated": "2020-01-31T16:47:29.000+0000" } ], "maxResults": 5, "total": 5, "startAt": 0 } } }