{ "id": "164536", "key": "TIMOB-24151", "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": "18429", "description": "", "name": "Hyperloop 2.2.0", "archived": false, "released": true, "releaseDate": "2017-10-16" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2017-08-08T07:19:03.000+0000", "created": "2016-11-15T08:11:51.000+0000", "priority": { "name": "Critical", "id": "1" }, "labels": [ "android" ], "versions": [], "issuelinks": [], "assignee": { "name": "jvennemann", "key": "jvennemann", "displayName": "Jan Vennemann", "active": true, "timeZone": "Europe/Berlin" }, "updated": "2017-09-29T18:28:33.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": "13715", "name": "Hyperloop", "description": "Hyperloop project" } ], "description": "There is an error trying to require e.g. GoogleApiClient from Google Play Services\r\n\r\n[TRACE] [Hyperloop] JS Wrapper for class com.google.android.gms.common.api.Api$zzh created...\r\n[TRACE] [Hyperloop] JS Wrapper for class com.google.android.gms.common.api.Batch created...\r\n\r\nC:\\ProgramData\\Titanium\\plugins\\hyperloop\\1.2.8\\node_modules\\async\\lib\\async.js:319\r\n iterator(obj[key], key, only_once(function (err) {\r\n ^\r\nTypeError: packageArray.push is not a function\r\n at C:\\ProgramData\\Titanium\\plugins\\hyperloop\\1.2.8\\hooks\\android\\metabase\\generate.js:202:16\r\n at C:\\ProgramData\\Titanium\\plugins\\hyperloop\\1.2.8\\node_modules\\async\\lib\\async.js:181:20\r\n at replenish (C:\\ProgramData\\Titanium\\plugins\\hyperloop\\1.2.8\\node_modules\\async\\lib\\async.js:319:21)\r\n at C:\\ProgramData\\Titanium\\plugins\\hyperloop\\1.2.8\\node_modules\\async\\lib\\async.js:326:29\r\n at C:\\ProgramData\\Titanium\\plugins\\hyperloop\\1.2.8\\node_modules\\async\\lib\\async.js:44:16\r\n at C:\\ProgramData\\Titanium\\plugins\\hyperloop\\1.2.8\\hooks\\android\\metabase\\generate.js:219:5\r\n at C:\\ProgramData\\Titanium\\mobilesdk\\win32\\5.5.1.GA\\node_modules\\graceful-fs\\graceful-fs.js:43:10\r\n at FSReqWrap.oncomplete (fs.js:82:15)\r\n\r\nReproduce: \r\nCreate a sample alloy project with hyperloop enabled for android\r\nInsert play-services-base-9.8.0.aar and play-services-basement-9.8.0.aar from android sdk repository in app/platform/android\r\n\r\nInsert \"var Api = require(\"com.google.android.gms.common.api.GoogleApiClient\");\" in index.js\r\n\r\nBuild\r\n\r\n\r\nAdditional info: \"var ConnectionResult = require(\"com.google.android.gms.common.ConnectionResult\");\" for example throws no error", "attachment": [ { "id": "60706", "filename": "cmd_log.txt", "author": { "name": "pstueven", "key": "pstueven", "displayName": "pstueven", "active": true, "timeZone": "Europe/Berlin" }, "created": "2016-11-16T08:13:48.000+0000", "size": 48926, "mimeType": "text/plain" }, { "id": "60707", "filename": "NT.zip", "author": { "name": "pstueven", "key": "pstueven", "displayName": "pstueven", "active": true, "timeZone": "Europe/Berlin" }, "created": "2016-11-16T08:13:44.000+0000", "size": 1247233, "mimeType": "application/zip" } ], "flagged": false, "summary": "Hyperloop: Android - requiring certain classes throws an error", "creator": { "name": "pstueven", "key": "pstueven", "displayName": "pstueven", "active": true, "timeZone": "Europe/Berlin" }, "subtasks": [], "reporter": { "name": "pstueven", "key": "pstueven", "displayName": "pstueven", "active": true, "timeZone": "Europe/Berlin" }, "environment": "Titanium CLI version 5.0.10\r\nHyperloop 1.2.8", "comment": { "comments": [ { "id": "400997", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "Can you please attach the used library and a complete test-case here? Thx!", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2016-11-15T19:46:54.000+0000", "updated": "2016-11-15T19:46:54.000+0000" }, { "id": "401111", "author": { "name": "pstueven", "key": "pstueven", "displayName": "pstueven", "active": true, "timeZone": "Europe/Berlin" }, "body": "NT.zip contains the changed app/controllers/index.js\r\nand the libraries in platform/android\r\n\r\ncmd_log.txt contains the complete output during the build process", "updateAuthor": { "name": "pstueven", "key": "pstueven", "displayName": "pstueven", "active": true, "timeZone": "Europe/Berlin" }, "created": "2016-11-16T08:15:18.000+0000", "updated": "2016-11-16T08:15:18.000+0000" }, { "id": "401199", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "Same occurring for {{android.provider.MediaStore.Images.Media}}, reported on Slack. /cc [~cwilliams] ", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2016-11-16T15:28:10.000+0000", "updated": "2016-11-16T15:28:27.000+0000" }, { "id": "423138", "author": { "name": "jvennemann", "key": "jvennemann", "displayName": "Jan Vennemann", "active": true, "timeZone": "Europe/Berlin" }, "body": "PR: https://github.com/appcelerator/hyperloop.next/pull/190", "updateAuthor": { "name": "jvennemann", "key": "jvennemann", "displayName": "Jan Vennemann", "active": true, "timeZone": "Europe/Berlin" }, "created": "2017-06-29T13:09:08.000+0000", "updated": "2017-06-29T13:09:08.000+0000" }, { "id": "428609", "author": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Verified the fix.\r\n\r\nRequiring classes from the attached test app does not throw errors.\r\nClosing.\r\n\r\nStudio Ver: 4.10.0.201709271713\r\nSDK Ver: 6.2.2.GA\r\nOS Ver: 10.12.3\r\nXcode Ver: Xcode 8.3.3\r\nAppc NPM: 4.2.9\r\nAppc CLI: 6.2.4\r\nTi CLI Ver: 5.0.14\r\nAlloy Ver: 1.9.14\r\nNode Ver: 7.10.1\r\nJava Ver: 1.8.0_101\r\nDevices: ⇨ google Pixel --- Android 7.1.1\r\nHyperloop: 2.2.0 RC2\r\n", "updateAuthor": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-09-29T18:28:16.000+0000", "updated": "2017-09-29T18:28:16.000+0000" } ], "maxResults": 5, "total": 5, "startAt": 0 } } }