{ "id": "172837", "key": "TIMOB-26710", "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": "19882", "name": "Release 8.0.0", "archived": false, "released": true, "releaseDate": "2019-03-14" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2019-02-14T17:47:19.000+0000", "created": "2019-01-10T14:17:24.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [], "versions": [ { "id": "19882", "name": "Release 8.0.0", "archived": false, "released": true, "releaseDate": "2019-03-14" } ], "issuelinks": [], "assignee": { "name": "vijaysingh", "key": "vijaysingh", "displayName": "Vijay Singh", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2019-02-15T14:50:19.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": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "When creating a iOS test module using Swift the example app.js is incorrect and throws errors. \r\n\r\n*Test Steps:*\r\n# Create a new test module using {{ti create -t module --name test --id com.example.tese --code-base swift}}\r\n# Package the module using {{appc run -p ios --build-only}} (iOS folder within the module)\r\n# Create a new Titanium project\r\n# Copy the example found in {{TEST_Module -> example -> app.js}} in to Titaniums {{app.js}}\r\n# Add the packaged module in to the application \r\n# Run the program\r\n\r\n*Actual results*\r\nApplication shows errors as the correct methods/properties can not be found at\r\n\r\n*Expected result*\r\nApplication should run fine with the {{app.js}} from the example folder in the module \r\n\r\n*Note* The following example should work \r\n{code:java}\r\nvar test = require('com.example.tese');\r\nTi.API.info('module is => ' + test);\r\nTi.API.info('module tryThis method returns => ' + test.tryThis());\r\nTi.API.info('module exampleProp is => ' + test.testProperty);\r\ntest.testProperty = 'Should equal Hello World';\r\n{code}\r\n", "attachment": [], "flagged": false, "summary": "[iOS] Example app.js is incorrect when creating a iOS Swift module", "creator": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "SDK Version 8.0.0.v20190109125941\r\niPhone 6S (12.1) Sim\r\nAPPC CLI: 7.0.9\r\nOperating System Name: Mac OS Mojave\r\nOperating System Version: 10.14.2\r\nNode.js Version: 8.9.1\r\nXcode 10.1", "comment": { "comments": [ { "id": "446052", "author": { "name": "vijaysingh", "key": "vijaysingh", "displayName": "Vijay Singh", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Updated the template similar to objective c example. \r\n\r\nPR (master) - https://github.com/appcelerator/titanium_mobile/pull/10698\r\nPR (8_0_X) - https://github.com/appcelerator/titanium_mobile/pull/10699", "updateAuthor": { "name": "vijaysingh", "key": "vijaysingh", "displayName": "Vijay Singh", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2019-02-13T18:05:48.000+0000", "updated": "2019-02-13T18:05:48.000+0000" }, { "id": "446071", "author": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "body": "FR Passed for master and 8_0_X. Awaiting CR and confirmation that this is being included in 8_0_X. ", "updateAuthor": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2019-02-14T12:01:10.000+0000", "updated": "2019-02-14T12:01:10.000+0000" }, { "id": "446099", "author": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "body": "*Closing ticket*. Fix verified in SDK Version {{8.0.0.v20190214095044}} and SDK Version {{8.1.0.v20190214095127}}\r\n\r\nTest and other information can found at:\r\nPR (master) - https://github.com/appcelerator/titanium_mobile/pull/10698\r\nPR (8_0_X) - https://github.com/appcelerator/titanium_mobile/pull/10699", "updateAuthor": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2019-02-15T14:50:12.000+0000", "updated": "2019-02-15T14:50:12.000+0000" } ], "maxResults": 4, "total": 4, "startAt": 0 } } }