ios-sim-portable
Advanced tools
Comparing version
@@ -9,2 +9,3 @@ ///<reference path="./.d.ts"/> | ||
var bplistParser = require("bplist-parser"); | ||
var plist = require("plist"); | ||
var osenv = require("osenv"); | ||
@@ -27,6 +28,5 @@ var isDeviceLogOperationStarted = false; | ||
var plistFilePath = path.join(fullApplicationPath, applicationName, "Info.plist"); | ||
var applicationData = parseFile(plistFilePath).wait(); | ||
result.push({ | ||
guid: applicationGuid, | ||
appIdentifier: applicationData[0].CFBundleIdentifier, | ||
appIdentifier: getBundleIdentifier(plistFilePath).wait(), | ||
path: path.join(fullApplicationPath, applicationName) | ||
@@ -98,2 +98,15 @@ }); | ||
} | ||
function getBundleIdentifier(plistFilePath) { | ||
return (function () { | ||
var plistData; | ||
try { | ||
plistData = parseFile(plistFilePath).wait()[0]; | ||
} | ||
catch (err) { | ||
var content = fs.readFileSync(plistFilePath).toString(); | ||
plistData = plist.parse(content); | ||
} | ||
return plistData && plistData.CFBundleIdentifier; | ||
}).future()(); | ||
} | ||
//# sourceMappingURL=iphone-simulator-common.js.map |
{ | ||
"name": "ios-sim-portable", | ||
"version": "1.0.22", | ||
"version": "1.0.23", | ||
"description": "", | ||
@@ -35,2 +35,3 @@ "main": "./lib/ios-sim.js", | ||
"osenv": "0.1.3", | ||
"plist": "1.1.0", | ||
"yargs": "3.15.0" | ||
@@ -37,0 +38,0 @@ }, |
75680
0.54%1317
1%8
14.29%+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added