Skip to content

Commit d41826b

Browse files
committed
Merge pull request #24 from appcelerator/timob-19518
v0.7.0. Made uninstalling the app a flag that defaults to false. You …
2 parents e0d1ab6 + cf17454 commit d41826b

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

lib/simulator.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -714,6 +714,7 @@ function findSimulators(options, callback) {
714714
* @param {String} [options.simType=iphone] - The type of simulator to launch. Must be either "iphone" or "ipad". Only applicable when udid is not specified.
715715
* @param {String} [options.simVersion] - The iOS version to boot. Defaults to the most recent version.
716716
* @param {String} [options.supportedVersions] - A string with a version number or range to check if an Xcode install is supported.
717+
* @param {Boolean} [options.uninstallApp=false] - When true and `appPath` is specified, uninstalls the app before installing the new app. If app is not installed already, it continues.
717718
* @param {String} [options.watchAppName] - The name of the watch app to install. If omitted, automatically picks the watch app.
718719
* @param {String} [options.watchHandleOrUDID] - A watch sim handle or the UDID of the Watch Simulator to launch or null if your app has a watch app and you want ioslib to pick one.
719720
* @param {Function} [callback(err, simHandle)] - A function to call when the simulator has launched.
@@ -1255,7 +1256,7 @@ function launch(simHandleOrUDID, options, callback) {
12551256
},
12561257

12571258
function uninstallApp(next) {
1258-
if (!options.appPath || !appId) {
1259+
if (!options.appPath || !appId || options.uninstallApp !== true) {
12591260
return next();
12601261
}
12611262

@@ -1518,4 +1519,4 @@ function stop(simHandle, callback) {
15181519
});
15191520
}, simHandle.startTime && Date.now() - simHandle.startTime < 250 ? 250 : 0);
15201521
});
1521-
};
1522+
};

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "ioslib",
3-
"version": "0.6.9",
3+
"version": "0.7.0",
44
"description": "iOS Utility Library",
55
"keywords": [
66
"appcelerator",

0 commit comments

Comments
 (0)