{ "id": "163908", "key": "TIMOB-24021", "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": "16980", "description": "New V8", "name": "Release 6.0.0", "archived": false, "released": true, "releaseDate": "2016-11-15" }, { "id": "18247", "name": "Hyperloop 2.0.0", "archived": false, "released": true, "releaseDate": "2016-10-18" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2016-10-12T21:12:30.000+0000", "created": "2016-10-12T19:57:55.000+0000", "priority": { "name": "Critical", "id": "1" }, "labels": [], "versions": [], "issuelinks": [ { "id": "53061", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "163857", "key": "TIMOB-24012", "fields": { "summary": "Android: crashing trying to load non-existing JS resources inside native modules", "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": "53060", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "163587", "key": "TIMOB-23971", "fields": { "summary": "Hyperloop: iOS not working in 2.0.0 (regression)", "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": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "updated": "2016-10-20T22:28:15.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": "13715", "name": "Hyperloop", "description": "Hyperloop project" } ], "description": "Because we're still using legacy style require paths for hyperloop wrappers, we're running into issues with Hyperloop 2.0.0 and SDK 6+, just as we did on iOS in TIMOB-23971", "attachment": [], "flagged": false, "summary": "Hyperloop: Android: require of native class android.content.Intent fails on SDK 6+", "creator": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "subtasks": [], "reporter": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "environment": null, "closedSprints": [ { "id": 733, "state": "closed", "name": "2016 Sprint 21 SDK", "startDate": "2016-10-08T00:53:00.000Z", "endDate": "2016-10-22T00:53:00.000Z", "completeDate": "2016-10-24T03:58:08.547Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "398775", "author": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "body": "To test, try this as your app.js in a hyperloop project:\r\n{code:javascript}\r\nvar Intent = require('android.content.Intent');\r\nvar Activity = require('android.app.Activity');\r\nvar Uri = require(\"android.net.Uri\");\r\n\r\nvar win = Ti.UI.createWindow({\r\n backgroundColor: \"#fff\"\r\n});\r\n\r\nvar btn = Ti.UI.createButton({\r\n title: \"Trigger\"\r\n});\r\n\r\nbtn.addEventListener(\"click\", openIntent);\r\n\r\nwin.add(btn);\r\nwin.open();\r\n\r\nfunction openIntent() {\r\n var activity = new Activity(Ti.Android.currentActivity);\r\n\r\n var intent = Ti.Android.createIntent({\r\n action: Ti.Android.ACTION_VIEW\r\n });\r\n\r\n var nativeIntent = new Intent(intent);\r\n nativeIntent.setData(Uri.parse(\"sms://\"));\r\n nativeIntent.putExtra(\"sms_body\", \"Hello world!\");\r\n\r\n activity.startActivity(nativeIntent);\r\n}\r\n\r\n{code}", "updateAuthor": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "created": "2016-10-12T20:14:15.000+0000", "updated": "2016-10-12T20:14:15.000+0000" }, { "id": "398776", "author": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "body": "PR (master): https://github.com/appcelerator/hyperloop.next/pull/86\r\nPR (2_0_X): https://github.com/appcelerator/hyperloop.next/pull/85", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2016-10-12T20:14:42.000+0000", "updated": "2016-10-12T20:47:03.000+0000" }, { "id": "399536", "author": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Verified the fix.\r\n\r\nRequire of native class android.content.Intent works as expected.\r\nClosing.\r\n\r\nAppc Studio : 4.8.0.201610171310\r\nMac OS Version : 10.11.6\r\nXcode Version : Xcode 8.0 Build version 8A218a\r\nAppc CLI AND Appc NPM : {\"NPM\":\"4.2.8-9\",\"CLI\":\"6.0.0-62\"}\r\nTi CLI : 5.0.10\r\nAlloy : 1.9.3\r\nNode : v4.6.0\r\nSDK Version : 6.0.0.v20161019091022\r\nEnvironment: preprod", "updateAuthor": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2016-10-20T22:28:07.000+0000", "updated": "2016-10-20T22:28:07.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }