{ "id": "162893", "key": "DAEMON-33", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "12519", "key": "DAEMON", "name": "Appcelerator Daemon" }, "fixVersions": [], "resolution": { "id": "7", "description": "", "name": "Invalid" }, "resolutiondate": "2017-10-26T03:15:41.000+0000", "created": "2016-08-30T23:47:08.000+0000", "priority": { "name": "None", "id": "6" }, "labels": [], "versions": [], "issuelinks": [], "assignee": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "updated": "2017-10-26T03:15:41.000+0000", "status": { "description": "A resolution has been taken, and it is awaiting verification by reporter. From here issues are either reopened, or are closed.", "name": "Resolved", "id": "5", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "15051", "name": "androidlib", "description": "Library for Android related functions" } ], "description": "*Details:* If you make a androidlib.detect(), then an empty array is returned for the results.\r\n\r\n*Notes:*\r\n* This does not appear on Mac.\r\n* ANDROID_SDK environment variable is set.\r\n* Android SDK tools and platform-tools are set in the PATH.\r\n\r\n*Steps to reproduce:*\r\n# Make sure you are using Node 4.X.X\r\n# Clone and run {{npm install}} on https://github.com/appcelerator/androidlib/tree/v2; make sure it's v2 branch\r\n# Symlink to the above built androidlib v2\r\n# Run this Node script:\r\n{code}\r\n'use strict';\r\n// NOTE: currently, symlinked node_modules/androidlib folder to a built local copy of https://github.com/appcelerator/androidlib/tree/v2\r\nconst androidlib = require('androidlib').androidlib;\r\n\r\nandroidlib\r\n .detect()\r\n .then(results => {\r\n console.log(JSON.stringify(results, null, 4));\r\n })\r\n .catch('error', err => {\r\n console.log(err.stack);\r\n });\r\n{code}\r\n\r\n*Actual:* An empty array appears for SDK.\r\n{code}\r\nC:\\Users\\qe\\Desktop\\libautomator>node test.js\r\n{\r\n \"home\": \"C:\\\\Users\\\\qe\\\\.android\\\\avd\",\r\n \"sdk\": [],\r\n \"ndk\": []\r\n}\r\n{code}\r\n\r\n*Expected:* There should not be an empty array for SDK.", "attachment": [], "flagged": false, "summary": "Windows: androidlib v2 - If you call androidlib.detect(), then an empty array is returned for the results", "creator": { "name": "wluu", "key": "wluu", "displayName": "Wilson Luu", "active": false, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "wluu", "key": "wluu", "displayName": "Wilson Luu", "active": false, "timeZone": "America/Los_Angeles" }, "environment": "androidlib v2: 2.0.0\r\nOS: Windows 10", "closedSprints": [ { "id": 964, "state": "closed", "name": "2017 Sprint 22 Tooling", "startDate": "2017-10-22T21:42:00.037Z", "endDate": "2017-11-05T22:42:00.000Z", "completeDate": "2017-11-06T16:36:21.766Z", "originBoardId": 219 } ], "comment": { "comments": [ { "id": "429640", "author": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "body": "This is no longer valid.", "updateAuthor": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "created": "2017-10-26T03:15:41.000+0000", "updated": "2017-10-26T03:15:41.000+0000" } ], "maxResults": 1, "total": 1, "startAt": 0 } } }