{ "id": "159344", "key": "TIMOB-23158", "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": "17706", "name": "Release 5.4.0", "archived": false, "released": true, "releaseDate": "2016-08-11" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2016-04-11T20:37:34.000+0000", "created": "2016-04-06T09:32:33.000+0000", "priority": { "name": "Critical", "id": "1" }, "labels": [], "versions": [ { "id": "17707", "name": "Release 5.3.0", "archived": false, "released": true, "releaseDate": "2016-06-04" } ], "issuelinks": [ { "id": "51243", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "159343", "key": "TIMOB-23157", "fields": { "summary": "Windows: Building native module using \"appc ti\" fails", "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": "51242", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "138521", "key": "TIMOB-17911", "fields": { "summary": "Windows: Implement Native module support", "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": "6", "description": "gh.issue.epic.desc", "name": "Epic", "subtask": false } } } }, { "id": "51244", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "159311", "key": "TIMOB-23148", "fields": { "summary": "Windows: Native module How-To documentation", "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": "Medium", "id": "3" }, "issuetype": { "id": "7", "description": "gh.issue.story.desc", "name": "Story", "subtask": false } } } } ], "assignee": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2016-06-30T17:21:25.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": "12642", "name": "Windows", "description": "Windows authoring support" } ], "description": "Enabling native module for Windows 10 app ({{--wp-sdk 10.0}}) causes build error. It is because Titanium CLI tries to link {{win10\\x86|arm\\XXX.lib}} but we don't build native module for {{win10}} target.\r\n\r\nLet say you have created and installed your custom module named {{com.appcelerator.TIMOB23148}}.\r\n\r\n{code:javascript}\r\nvar TIMOB23148 = require('com.appcelerator.TIMOB23148');\r\n\r\nvar win = Ti.UI.createWindow({backgroundColor:'green'});\r\n\r\nwin.addEventListener('open', function() {\r\n\tTi.API.info(typeof TIMOB23148);\r\n\tTi.API.info(Object.keys(TIMOB23148));\r\n\tTi.API.info(typeof TIMOB23148.myproperty);\r\n\tTi.API.info(typeof TIMOB23148.myfunction);\r\n});\r\nwin.open();\r\n{code}\r\n\r\nThis causes error when you build against {{--wp-sdk 10.0}}\r\n\r\n{code}\r\nti build --platform windows --target ws-local --wp-sdk 10.0\r\n\r\n[ERROR] LINK : fatal error LNK1181: cannot open input file 'C:\\ProgramData\\Application Data\\Titanium\\modules\\windows\\com.appcelerator.TIMOB23148\\1.0.0\\win10\\x86\\ComAppceleratorTIMOB23148.lib' [TitaniumWindows_Native.vcxproj]\r\n{code}\r\n", "attachment": [], "flagged": false, "summary": "Windows: Use of native module for UWP 10.0 fails", "creator": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "environment": null, "closedSprints": [ { "id": 618, "state": "closed", "name": "2016 Sprint 08 SDK", "startDate": "2016-04-09T00:30:18.262Z", "endDate": "2016-04-23T00:30:00.000Z", "completeDate": "2016-04-25T02:38:28.511Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "382067", "author": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "body": "https://github.com/appcelerator/titanium_mobile_windows/pull/610", "updateAuthor": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2016-04-07T11:53:39.000+0000", "updated": "2016-04-07T11:54:50.000+0000" }, { "id": "389599", "author": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "body": "Verified using:\r\n\r\nWindows 10 Pro\r\nTi SDK: 5.4.0.v20160630074247\r\nAppc NPM: 4.2.7-2 \r\nAppc CLI: 5.4.0-23\r\nAppc Studio: 4.7.0.201606220541\r\n\r\nUsing a native module on Windows 10 and Windows 10 Mobile now works\r\n\r\nClosing ticket", "updateAuthor": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "created": "2016-06-30T17:21:20.000+0000", "updated": "2016-06-30T17:21:20.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }