appcelerator-archive / windowslib

This is a library of utilities for dealing programmatically with Windows Phone applications, used namely for tools like Titanium.
http://www.appcelerator.com
Other
4 stars 10 forks source link

[TIMOB-23768] Detect installed Win10 SDK versions #52

Closed infosia closed 8 years ago

infosia commented 8 years ago

TIMOB-23768

windowslib.winstore.detect(function (err, results) {
    should(results).be.an.Object;
    should(results).have.keys('windows');
    should(results.windows).have.keys('10.0');
    should(results.windows['10.0']).have.property('sdks');
    should(results.windows['10.0'].sdks).be.an.Array(); // ['10.0.10240.0", "10.0.10586.0'];
});
windowslib.windowsphone.detect(function (err, results) {
    should(results).be.an.Object;
    should(results).have.keys('windows');
    should(results.windows).have.keys('10.0');
    should(results.windows['10.0']).have.property('sdks');
    should(results.windows['10.0'].sdks).be.an.Array(); // ['10.0.10240.0", "10.0.10586.0'];
});
garymathews commented 8 years ago

FR: PASS CR: PASS

...
"windows": {
        "10.0": {
                ...
                "sdks": [
                        "10.0.10240.0",
                        "10.0.10586.0",
                        "10.0.14393.0"
                ]
        },
"windowsphone": {
        "10.0": {
                ...
                "sdks": [
                        "10.0.10240.0",
                        "10.0.10586.0",
                        "10.0.14393.0"
                ]
        }
}
...

:+1: