Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add ability for testsuite to determine ios8 sim udid
and add support for pull/pushFile in ios8
- Loading branch information
Showing
8 changed files
with
146 additions
and
61 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
"use strict"; | ||
|
||
var IOS = require("../../lib/devices/ios/ios") | ||
, Instruments = require('../../lib/devices/ios/instruments'); | ||
|
||
exports.getSimUdid = function (xcodeVer, sdkVer, desired, cb) { | ||
var opts = { | ||
forceIphone: false, | ||
forceIpad: false, | ||
xcodeVersion: xcodeVer, | ||
deviceName: desired.deviceName, | ||
platformVersion: desired.platformVersion, | ||
iOSSDKVersion: sdkVer | ||
}; | ||
Instruments.getAvailableDevices(function (err, availDevices) { | ||
if (err) return cb(err); | ||
var dString = IOS.getDeviceStringFromOpts(opts); | ||
var sim = IOS.getSimForDeviceString(dString, availDevices); | ||
if (sim[1] === null) { | ||
return cb(new Error("Could not get UDID")); | ||
} | ||
cb(null, sim[1]); | ||
}); | ||
}; |