[DAEMON-33] Windows: androidlib v2 - If you call androidlib.detect(), then an empty array is returned for the results
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | None |
Status | Resolved |
Resolution | Invalid |
Resolution Date | 2017-10-26T03:15:41.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | androidlib |
Labels | n/a |
Reporter | Wilson Luu |
Assignee | Chris Barber |
Created | 2016-08-30T23:47:08.000+0000 |
Updated | 2017-10-26T03:15:41.000+0000 |
Description
*Details:* If you make a androidlib.detect(), then an empty array is returned for the results.
*Notes:*
* This does not appear on Mac.
* ANDROID_SDK environment variable is set.
* Android SDK tools and platform-tools are set in the PATH.
*Steps to reproduce:*
Clone and run
Make sure you are using Node 4.X.X
Clone and run npm install
on https://github.com/appcelerator/androidlib/tree/v2; make sure it's v2 branch
Symlink to the above built androidlib v2
Run this Node script:
'use strict';
// NOTE: currently, symlinked node_modules/androidlib folder to a built local copy of https://github.com/appcelerator/androidlib/tree/v2
const androidlib = require('androidlib').androidlib;
androidlib
.detect()
.then(results => {
console.log(JSON.stringify(results, null, 4));
})
.catch('error', err => {
console.log(err.stack);
});
*Actual:* An empty array appears for SDK.
C:\Users\qe\Desktop\libautomator>node test.js
{
"home": "C:\\Users\\qe\\.android\\avd",
"sdk": [],
"ndk": []
}
*Expected:* There should not be an empty array for SDK.
This is no longer valid.