ios-sim-portable
Advanced tools
Comparing version 1.0.12-gamma to 1.0.13-beta
#!/usr/bin/env node | ||
require("../lib/ios-sim.js"); |
//grunt-start | ||
/// <reference path="child-process.ts" /> | ||
/// <reference path="command-executor.ts" /> | ||
@@ -15,7 +16,11 @@ /// <reference path="commands/device-types.ts" /> | ||
/// <reference path="ios-sim.ts" /> | ||
/// <reference path="iphone-interop-simulator-base.ts" /> | ||
/// <reference path="iphone-simulator-xcode-5.ts" /> | ||
/// <reference path="iphone-simulator-xcode-6.ts" /> | ||
/// <reference path="iphone-simulator-xcode-7.ts" /> | ||
/// <reference path="iphone-simulator.ts" /> | ||
/// <reference path="options.ts" /> | ||
/// <reference path="simctl.ts" /> | ||
/// <reference path="utils.ts" /> | ||
/// <reference path="xcode.ts" /> | ||
//grunt-end |
@@ -0,0 +0,0 @@ ///<reference path="./.d.ts"/> |
@@ -0,0 +0,0 @@ ///<reference path="./.d.ts"/> |
@@ -0,0 +0,0 @@ ///<reference path="./.d.ts"/> |
@@ -0,0 +0,0 @@ ///<reference path=".././.d.ts"/> |
@@ -0,0 +0,0 @@ ///<reference path=".././.d.ts"/> |
@@ -0,0 +0,0 @@ ///<reference path=".././.d.ts"/> |
@@ -0,0 +0,0 @@ ///<reference path=".././.d.ts"/> |
@@ -0,0 +0,0 @@ ///<reference path=".././.d.ts"/> |
@@ -0,0 +0,0 @@ ///<reference path=".././.d.ts"/> |
@@ -0,0 +0,0 @@ ///<reference path=".././.d.ts"/> |
@@ -0,0 +0,0 @@ ///<reference path=".././.d.ts"/> |
@@ -0,0 +0,0 @@ ///<reference path=".././.d.ts"/> |
///<reference path="./.d.ts"/> | ||
"use strict"; | ||
//# sourceMappingURL=declarations.js.map |
@@ -0,0 +0,0 @@ ///<reference path="./.d.ts"/> |
@@ -0,0 +0,0 @@ // Type definitions for node-fibers |
@@ -0,0 +0,0 @@ /************************************************ |
@@ -0,0 +0,0 @@ declare module "nodobjc" { |
@@ -0,0 +0,0 @@ ///<reference path="./.d.ts"/> |
@@ -0,0 +0,0 @@ ///<reference path="./.d.ts"/> |
@@ -13,2 +13,43 @@ ///<reference path="./.d.ts"/> | ||
fiber.run(); | ||
global.publicApi = {}; | ||
Object.defineProperty(global.publicApi, "getRunningSimulator", { | ||
get: function () { | ||
return function () { | ||
var args = []; | ||
for (var _i = 0; _i < arguments.length; _i++) { | ||
args[_i - 0] = arguments[_i]; | ||
} | ||
var future = new Future(); | ||
var libraryPath = require("./iphone-simulator-xcode-7"); | ||
var simulator = new libraryPath.XCode7Simulator(); | ||
var repeatCount = 30; | ||
var timer = setInterval(function () { | ||
Fiber(function () { | ||
var result = simulator.getBootedDevice.apply(simulator, args).wait(); | ||
if ((result || !repeatCount) && !future.isResolved()) { | ||
clearInterval(timer); | ||
future.return(result); | ||
} | ||
repeatCount--; | ||
}).run(); | ||
}, 500); | ||
return future.wait(); | ||
}; | ||
} | ||
}); | ||
Object.defineProperty(global.publicApi, "getApplicationPath", { | ||
get: function () { | ||
return function () { | ||
var args = []; | ||
for (var _i = 0; _i < arguments.length; _i++) { | ||
args[_i - 0] = arguments[_i]; | ||
} | ||
var libraryPath = require("./simctl"); | ||
var obj = new libraryPath.Simctl(); | ||
var result = obj.getAppContainer.apply(obj, args).wait(); | ||
return result; | ||
}; | ||
} | ||
}); | ||
module.exports = global.publicApi; | ||
//# sourceMappingURL=ios-sim.js.map |
@@ -17,1 +17,39 @@ ///<reference path="./.d.ts"/> | ||
fiber.run(); | ||
global.publicApi = {}; | ||
Object.defineProperty(global.publicApi, "getRunningSimulator", { | ||
get: () => { | ||
return (...args: any[]) => { | ||
let future = new Future<any>(); | ||
let libraryPath = require("./iphone-simulator-xcode-7"); | ||
let simulator = new libraryPath.XCode7Simulator(); | ||
let repeatCount = 30; | ||
let timer = setInterval(() => { | ||
Fiber(() => { | ||
let result = simulator.getBootedDevice.apply(simulator, args).wait(); | ||
if( (result || !repeatCount) && !future.isResolved()) { | ||
clearInterval(timer); | ||
future.return(result); | ||
} | ||
repeatCount--; | ||
}).run(); | ||
}, 500); | ||
return future.wait(); | ||
} | ||
} | ||
}); | ||
Object.defineProperty(global.publicApi, "getApplicationPath", { | ||
get: () => { | ||
return (...args: any[]) => { | ||
let libraryPath = require("./simctl"); | ||
let obj = new libraryPath.Simctl() | ||
let result = obj.getAppContainer.apply(obj, args).wait(); | ||
return result; | ||
} | ||
} | ||
}); | ||
module.exports = global.publicApi; |
@@ -0,0 +0,0 @@ ///<reference path="./.d.ts"/> |
@@ -0,0 +0,0 @@ ///<reference path="./.d.ts"/> |
@@ -0,0 +0,0 @@ ///<reference path="./.d.ts"/> |
@@ -0,0 +0,0 @@ ///<reference path="./.d.ts"/> |
@@ -0,0 +0,0 @@ ///<reference path="./.d.ts"/> |
@@ -0,0 +0,0 @@ ///<reference path=".d.ts"/> |
@@ -0,0 +0,0 @@ ///<reference path=".d.ts"/> |
@@ -40,2 +40,6 @@ ///<reference path="./.d.ts"/> | ||
public getAppContainer(deviceId: string, applicationIdentifier: string): IFuture<string> { | ||
return this.simctlExec("get_app_container", [deviceId, applicationIdentifier]); | ||
} | ||
public getDevices(): IFuture<IDevice[]> { | ||
@@ -42,0 +46,0 @@ return (() => { |
@@ -0,0 +0,0 @@ ///<reference path="./.d.ts"/> |
@@ -0,0 +0,0 @@ ///<reference path="./.d.ts"/> |
{ | ||
"name": "ios-sim-portable", | ||
"version": "1.0.12-gamma", | ||
"version": "1.0.13-beta", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "./lib/ios-sim.js", |
@@ -0,0 +0,0 @@ var fs = require("fs"); |
@@ -0,0 +0,0 @@ ios-sim-portable |
@@ -0,0 +0,0 @@ --[]-- |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
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
Shell access
Supply chain riskThis module accesses the system shell. Accessing the system shell increases the risk of executing arbitrary code.
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
300786
50
8864
5
2