ios-sim-portable
Advanced tools
Comparing version 1.0.22 to 1.0.23
@@ -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 @@ }, |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
75680
1317
8
+ Addedplist@1.1.0
+ Addedbase64-js@0.0.6(transitive)
+ Addedlodash-node@2.4.1(transitive)
+ Addedplist@1.1.0(transitive)
+ Addedutil-deprecate@1.0.0(transitive)
+ Addedxmlbuilder@2.2.1(transitive)
+ Addedxmldom@0.1.31(transitive)