node-simctl 8.0.9 → 8.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +12 -0
- package/build/index.d.ts +2 -1
- package/build/index.d.ts.map +1 -1
- package/build/index.js.map +1 -1
- package/build/lib/helpers.d.ts +17 -9
- package/build/lib/helpers.d.ts.map +1 -1
- package/build/lib/helpers.js +50 -4
- package/build/lib/helpers.js.map +1 -1
- package/build/lib/logger.d.ts +2 -3
- package/build/lib/logger.d.ts.map +1 -1
- package/build/lib/logger.js +3 -5
- package/build/lib/logger.js.map +1 -1
- package/build/lib/simctl.d.ts +82 -188
- package/build/lib/simctl.d.ts.map +1 -1
- package/build/lib/simctl.js +98 -150
- package/build/lib/simctl.js.map +1 -1
- package/build/lib/subcommands/addmedia.d.ts +14 -16
- package/build/lib/subcommands/addmedia.d.ts.map +1 -1
- package/build/lib/subcommands/addmedia.js +5 -7
- package/build/lib/subcommands/addmedia.js.map +1 -1
- package/build/lib/subcommands/appinfo.d.ts +13 -45
- package/build/lib/subcommands/appinfo.d.ts.map +1 -1
- package/build/lib/subcommands/appinfo.js +31 -42
- package/build/lib/subcommands/appinfo.js.map +1 -1
- package/build/lib/subcommands/boot.d.ts +9 -12
- package/build/lib/subcommands/boot.d.ts.map +1 -1
- package/build/lib/subcommands/boot.js +5 -40
- package/build/lib/subcommands/boot.js.map +1 -1
- package/build/lib/subcommands/bootstatus.d.ts +16 -56
- package/build/lib/subcommands/bootstatus.d.ts.map +1 -1
- package/build/lib/subcommands/bootstatus.js +8 -22
- package/build/lib/subcommands/bootstatus.js.map +1 -1
- package/build/lib/subcommands/create.d.ts +15 -34
- package/build/lib/subcommands/create.d.ts.map +1 -1
- package/build/lib/subcommands/create.js +23 -66
- package/build/lib/subcommands/create.js.map +1 -1
- package/build/lib/subcommands/delete.d.ts +9 -12
- package/build/lib/subcommands/delete.d.ts.map +1 -1
- package/build/lib/subcommands/delete.js +3 -5
- package/build/lib/subcommands/delete.js.map +1 -1
- package/build/lib/subcommands/erase.d.ts +12 -15
- package/build/lib/subcommands/erase.d.ts.map +1 -1
- package/build/lib/subcommands/erase.js +4 -6
- package/build/lib/subcommands/erase.js.map +1 -1
- package/build/lib/subcommands/get_app_container.d.ts +19 -22
- package/build/lib/subcommands/get_app_container.d.ts.map +1 -1
- package/build/lib/subcommands/get_app_container.js +6 -8
- package/build/lib/subcommands/get_app_container.js.map +1 -1
- package/build/lib/subcommands/getenv.d.ts +11 -14
- package/build/lib/subcommands/getenv.d.ts.map +1 -1
- package/build/lib/subcommands/getenv.js +5 -7
- package/build/lib/subcommands/getenv.js.map +1 -1
- package/build/lib/subcommands/install.d.ts +12 -15
- package/build/lib/subcommands/install.d.ts.map +1 -1
- package/build/lib/subcommands/install.js +4 -6
- package/build/lib/subcommands/install.js.map +1 -1
- package/build/lib/subcommands/io.d.ts +12 -15
- package/build/lib/subcommands/io.d.ts.map +1 -1
- package/build/lib/subcommands/io.js +4 -6
- package/build/lib/subcommands/io.js.map +1 -1
- package/build/lib/subcommands/keychain.d.ts +37 -55
- package/build/lib/subcommands/keychain.d.ts.map +1 -1
- package/build/lib/subcommands/keychain.js +16 -25
- package/build/lib/subcommands/keychain.js.map +1 -1
- package/build/lib/subcommands/launch.d.ts +16 -19
- package/build/lib/subcommands/launch.d.ts.map +1 -1
- package/build/lib/subcommands/launch.js +9 -11
- package/build/lib/subcommands/launch.js.map +1 -1
- package/build/lib/subcommands/list.d.ts +94 -125
- package/build/lib/subcommands/list.d.ts.map +1 -1
- package/build/lib/subcommands/list.js +34 -92
- package/build/lib/subcommands/list.js.map +1 -1
- package/build/lib/subcommands/location.d.ts +18 -22
- package/build/lib/subcommands/location.d.ts.map +1 -1
- package/build/lib/subcommands/location.js +11 -13
- package/build/lib/subcommands/location.js.map +1 -1
- package/build/lib/subcommands/openurl.d.ts +15 -17
- package/build/lib/subcommands/openurl.d.ts.map +1 -1
- package/build/lib/subcommands/openurl.js +5 -7
- package/build/lib/subcommands/openurl.js.map +1 -1
- package/build/lib/subcommands/pbcopy.d.ts +14 -17
- package/build/lib/subcommands/pbcopy.d.ts.map +1 -1
- package/build/lib/subcommands/pbcopy.js +5 -7
- package/build/lib/subcommands/pbcopy.js.map +1 -1
- package/build/lib/subcommands/pbpaste.d.ts +14 -17
- package/build/lib/subcommands/pbpaste.d.ts.map +1 -1
- package/build/lib/subcommands/pbpaste.js +5 -7
- package/build/lib/subcommands/pbpaste.js.map +1 -1
- package/build/lib/subcommands/privacy.d.ts +52 -57
- package/build/lib/subcommands/privacy.d.ts.map +1 -1
- package/build/lib/subcommands/privacy.js +15 -17
- package/build/lib/subcommands/privacy.js.map +1 -1
- package/build/lib/subcommands/push.d.ts +22 -25
- package/build/lib/subcommands/push.d.ts.map +1 -1
- package/build/lib/subcommands/push.js +5 -7
- package/build/lib/subcommands/push.js.map +1 -1
- package/build/lib/subcommands/shutdown.d.ts +9 -12
- package/build/lib/subcommands/shutdown.d.ts.map +1 -1
- package/build/lib/subcommands/shutdown.js +5 -40
- package/build/lib/subcommands/shutdown.js.map +1 -1
- package/build/lib/subcommands/spawn.d.ts +24 -27
- package/build/lib/subcommands/spawn.d.ts.map +1 -1
- package/build/lib/subcommands/spawn.js +12 -14
- package/build/lib/subcommands/spawn.js.map +1 -1
- package/build/lib/subcommands/terminate.d.ts +12 -15
- package/build/lib/subcommands/terminate.d.ts.map +1 -1
- package/build/lib/subcommands/terminate.js +4 -6
- package/build/lib/subcommands/terminate.js.map +1 -1
- package/build/lib/subcommands/ui.d.ts +97 -105
- package/build/lib/subcommands/ui.d.ts.map +1 -1
- package/build/lib/subcommands/ui.js +24 -26
- package/build/lib/subcommands/ui.js.map +1 -1
- package/build/lib/subcommands/uninstall.d.ts +13 -16
- package/build/lib/subcommands/uninstall.d.ts.map +1 -1
- package/build/lib/subcommands/uninstall.js +4 -6
- package/build/lib/subcommands/uninstall.js.map +1 -1
- package/build/lib/types.d.ts +231 -0
- package/build/lib/types.d.ts.map +1 -0
- package/build/lib/types.js +3 -0
- package/build/lib/types.js.map +1 -0
- package/index.ts +13 -0
- package/lib/helpers.ts +81 -0
- package/lib/{logger.js → logger.ts} +2 -5
- package/lib/simctl.ts +221 -0
- package/lib/subcommands/{addmedia.js → addmedia.ts} +6 -8
- package/lib/subcommands/appinfo.ts +39 -0
- package/lib/subcommands/{boot.js → boot.ts} +5 -10
- package/lib/subcommands/bootstatus.ts +108 -0
- package/lib/subcommands/{create.js → create.ts} +29 -35
- package/lib/subcommands/{delete.js → delete.ts} +3 -5
- package/lib/subcommands/{erase.js → erase.ts} +4 -7
- package/lib/subcommands/{get_app_container.js → get_app_container.ts} +10 -8
- package/lib/subcommands/{getenv.js → getenv.ts} +5 -7
- package/lib/subcommands/{install.js → install.ts} +4 -6
- package/lib/subcommands/{io.js → io.ts} +4 -7
- package/lib/subcommands/{keychain.js → keychain.ts} +30 -32
- package/lib/subcommands/{launch.js → launch.ts} +9 -12
- package/lib/subcommands/{list.js → list.ts} +67 -60
- package/lib/subcommands/{location.js → location.ts} +15 -14
- package/lib/subcommands/{openurl.js → openurl.ts} +6 -7
- package/lib/subcommands/{pbcopy.js → pbcopy.ts} +11 -8
- package/lib/subcommands/{pbpaste.js → pbpaste.ts} +5 -7
- package/lib/subcommands/{privacy.js → privacy.ts} +13 -17
- package/lib/subcommands/{push.js → push.ts} +5 -8
- package/lib/subcommands/{shutdown.js → shutdown.ts} +5 -8
- package/lib/subcommands/{spawn.js → spawn.ts} +21 -17
- package/lib/subcommands/{terminate.js → terminate.ts} +4 -6
- package/lib/subcommands/{ui.js → ui.ts} +19 -28
- package/lib/subcommands/{uninstall.js → uninstall.ts} +4 -6
- package/lib/types.ts +243 -0
- package/package.json +2 -3
- package/index.js +0 -4
- package/lib/helpers.js +0 -37
- package/lib/simctl.js +0 -299
- package/lib/subcommands/appinfo.js +0 -51
- package/lib/subcommands/bootstatus.js +0 -119
|
@@ -1,13 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
*/
|
|
11
|
-
function shutdownDevice(this: import("../simctl").default): Promise<void>;
|
|
12
|
-
}
|
|
1
|
+
import type { Simctl } from '../simctl';
|
|
2
|
+
/**
|
|
3
|
+
* Shutdown the given Simulator if it is running.
|
|
4
|
+
*
|
|
5
|
+
* @throws {Error} If the corresponding simctl subcommand command
|
|
6
|
+
* returns non-zero return code.
|
|
7
|
+
* @throws {Error} If the `udid` instance property is unset
|
|
8
|
+
*/
|
|
9
|
+
export declare function shutdownDevice(this: Simctl): Promise<void>;
|
|
13
10
|
//# sourceMappingURL=shutdown.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"shutdown.d.ts","sourceRoot":"","sources":["../../../lib/subcommands/shutdown.
|
|
1
|
+
{"version":3,"file":"shutdown.d.ts","sourceRoot":"","sources":["../../../lib/subcommands/shutdown.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AAExC;;;;;;GAMG;AACH,wBAAsB,cAAc,CAAE,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAWjE"}
|
|
@@ -1,53 +1,19 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
-
}) : function(o, v) {
|
|
16
|
-
o["default"] = v;
|
|
17
|
-
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
-
var ownKeys = function(o) {
|
|
20
|
-
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
-
var ar = [];
|
|
22
|
-
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
-
return ar;
|
|
24
|
-
};
|
|
25
|
-
return ownKeys(o);
|
|
26
|
-
};
|
|
27
|
-
return function (mod) {
|
|
28
|
-
if (mod && mod.__esModule) return mod;
|
|
29
|
-
var result = {};
|
|
30
|
-
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
-
__setModuleDefault(result, mod);
|
|
32
|
-
return result;
|
|
33
|
-
};
|
|
34
|
-
})();
|
|
35
2
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
36
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
37
4
|
};
|
|
38
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.shutdownDevice = shutdownDevice;
|
|
39
7
|
const lodash_1 = __importDefault(require("lodash"));
|
|
40
|
-
const logger_1 =
|
|
41
|
-
const commands = {};
|
|
8
|
+
const logger_1 = require("../logger");
|
|
42
9
|
/**
|
|
43
10
|
* Shutdown the given Simulator if it is running.
|
|
44
11
|
*
|
|
45
|
-
* @this {import('../simctl').Simctl}
|
|
46
12
|
* @throws {Error} If the corresponding simctl subcommand command
|
|
47
13
|
* returns non-zero return code.
|
|
48
14
|
* @throws {Error} If the `udid` instance property is unset
|
|
49
15
|
*/
|
|
50
|
-
|
|
16
|
+
async function shutdownDevice() {
|
|
51
17
|
try {
|
|
52
18
|
await this.exec('shutdown', {
|
|
53
19
|
args: [this.requireUdid('shutdown')],
|
|
@@ -57,8 +23,7 @@ commands.shutdownDevice = async function shutdownDevice() {
|
|
|
57
23
|
if (!lodash_1.default.includes(e.message, 'current state: Shutdown')) {
|
|
58
24
|
throw e;
|
|
59
25
|
}
|
|
60
|
-
logger_1.
|
|
26
|
+
logger_1.log.debug(logger_1.LOG_PREFIX, `Simulator already in 'Shutdown' state. Continuing`);
|
|
61
27
|
}
|
|
62
|
-
}
|
|
63
|
-
exports.default = commands;
|
|
28
|
+
}
|
|
64
29
|
//# sourceMappingURL=shutdown.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"shutdown.js","sourceRoot":"","sources":["../../../lib/subcommands/shutdown.
|
|
1
|
+
{"version":3,"file":"shutdown.js","sourceRoot":"","sources":["../../../lib/subcommands/shutdown.ts"],"names":[],"mappings":";;;;;AAWA,wCAWC;AAtBD,oDAAuB;AACvB,sCAA4C;AAG5C;;;;;;GAMG;AACI,KAAK,UAAU,cAAc;IAClC,IAAI,CAAC;QACH,MAAM,IAAI,CAAC,IAAI,CAAC,UAAU,EAAE;YAC1B,IAAI,EAAE,CAAC,IAAI,CAAC,WAAW,CAAC,UAAU,CAAC,CAAC;SACrC,CAAC,CAAC;IACL,CAAC;IAAC,OAAO,CAAM,EAAE,CAAC;QAChB,IAAI,CAAC,gBAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,OAAO,EAAE,yBAAyB,CAAC,EAAE,CAAC;YACtD,MAAM,CAAC,CAAC;QACV,CAAC;QACD,YAAG,CAAC,KAAK,CAAC,mBAAU,EAAE,mDAAmD,CAAC,CAAC;IAC7E,CAAC;AACH,CAAC"}
|
|
@@ -1,28 +1,25 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
*/
|
|
26
|
-
function spawnSubProcess(this: import("../simctl").default, args: string | string[], env?: object): Promise<import("teen_process").SubProcess>;
|
|
27
|
-
}
|
|
1
|
+
import type { Simctl } from '../simctl';
|
|
2
|
+
import type { TeenProcessExecResult, SubProcess } from 'teen_process';
|
|
3
|
+
/**
|
|
4
|
+
* Spawn the particular process on Simulator.
|
|
5
|
+
* It is required that Simulator is in _booted_ state.
|
|
6
|
+
*
|
|
7
|
+
* @param args - Spawn arguments
|
|
8
|
+
* @param env - Additional environment variables mapping.
|
|
9
|
+
* @return Command execution result.
|
|
10
|
+
* @throws {Error} If the corresponding simctl subcommand command
|
|
11
|
+
* returns non-zero return code.
|
|
12
|
+
* @throws {Error} If the `udid` instance property is unset
|
|
13
|
+
*/
|
|
14
|
+
export declare function spawnProcess(this: Simctl, args: string | string[], env?: Record<string, any>): Promise<TeenProcessExecResult<string>>;
|
|
15
|
+
/**
|
|
16
|
+
* Prepare SubProcess instance for a new process, which is going to be spawned
|
|
17
|
+
* on Simulator.
|
|
18
|
+
*
|
|
19
|
+
* @param args - Spawn arguments
|
|
20
|
+
* @param env - Additional environment variables mapping.
|
|
21
|
+
* @return The instance of the process to be spawned.
|
|
22
|
+
* @throws {Error} If the `udid` instance property is unset
|
|
23
|
+
*/
|
|
24
|
+
export declare function spawnSubProcess(this: Simctl, args: string | string[], env?: Record<string, any>): Promise<SubProcess>;
|
|
28
25
|
//# sourceMappingURL=spawn.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"spawn.d.ts","sourceRoot":"","sources":["../../../lib/subcommands/spawn.
|
|
1
|
+
{"version":3,"file":"spawn.d.ts","sourceRoot":"","sources":["../../../lib/subcommands/spawn.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AACxC,OAAO,KAAK,EAAE,qBAAqB,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAEtE;;;;;;;;;;GAUG;AACH,wBAAsB,YAAY,CAChC,IAAI,EAAE,MAAM,EACZ,IAAI,EAAE,MAAM,GAAG,MAAM,EAAE,EACvB,GAAG,GAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAM,GAC5B,OAAO,CAAC,qBAAqB,CAAC,MAAM,CAAC,CAAC,CASxC;AAED;;;;;;;;GAQG;AACH,wBAAsB,eAAe,CACnC,IAAI,EAAE,MAAM,EACZ,IAAI,EAAE,MAAM,GAAG,MAAM,EAAE,EACvB,GAAG,GAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAM,GAC5B,OAAO,CAAC,UAAU,CAAC,CAUrB"}
|
|
@@ -3,21 +3,21 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.spawnProcess = spawnProcess;
|
|
7
|
+
exports.spawnSubProcess = spawnSubProcess;
|
|
6
8
|
const lodash_1 = __importDefault(require("lodash"));
|
|
7
|
-
const commands = {};
|
|
8
9
|
/**
|
|
9
10
|
* Spawn the particular process on Simulator.
|
|
10
11
|
* It is required that Simulator is in _booted_ state.
|
|
11
12
|
*
|
|
12
|
-
* @
|
|
13
|
-
* @param
|
|
14
|
-
* @
|
|
15
|
-
* @return {Promise<import('teen_process').TeenProcessExecResult>} Command execution result.
|
|
13
|
+
* @param args - Spawn arguments
|
|
14
|
+
* @param env - Additional environment variables mapping.
|
|
15
|
+
* @return Command execution result.
|
|
16
16
|
* @throws {Error} If the corresponding simctl subcommand command
|
|
17
17
|
* returns non-zero return code.
|
|
18
18
|
* @throws {Error} If the `udid` instance property is unset
|
|
19
19
|
*/
|
|
20
|
-
|
|
20
|
+
async function spawnProcess(args, env = {}) {
|
|
21
21
|
if (lodash_1.default.isEmpty(args)) {
|
|
22
22
|
throw new Error('Spawn arguments are required');
|
|
23
23
|
}
|
|
@@ -25,18 +25,17 @@ commands.spawnProcess = async function spawnProcess(args, env = {}) {
|
|
|
25
25
|
args: [this.requireUdid('spawn'), ...(lodash_1.default.isArray(args) ? args : [args])],
|
|
26
26
|
env,
|
|
27
27
|
});
|
|
28
|
-
}
|
|
28
|
+
}
|
|
29
29
|
/**
|
|
30
30
|
* Prepare SubProcess instance for a new process, which is going to be spawned
|
|
31
31
|
* on Simulator.
|
|
32
32
|
*
|
|
33
|
-
* @
|
|
34
|
-
* @param
|
|
35
|
-
* @
|
|
36
|
-
* @return {Promise<import('teen_process').SubProcess>} The instance of the process to be spawned.
|
|
33
|
+
* @param args - Spawn arguments
|
|
34
|
+
* @param env - Additional environment variables mapping.
|
|
35
|
+
* @return The instance of the process to be spawned.
|
|
37
36
|
* @throws {Error} If the `udid` instance property is unset
|
|
38
37
|
*/
|
|
39
|
-
|
|
38
|
+
async function spawnSubProcess(args, env = {}) {
|
|
40
39
|
if (lodash_1.default.isEmpty(args)) {
|
|
41
40
|
throw new Error('Spawn arguments are required');
|
|
42
41
|
}
|
|
@@ -45,6 +44,5 @@ commands.spawnSubProcess = async function spawnSubProcess(args, env = {}) {
|
|
|
45
44
|
env,
|
|
46
45
|
asynchronous: true,
|
|
47
46
|
});
|
|
48
|
-
}
|
|
49
|
-
exports.default = commands;
|
|
47
|
+
}
|
|
50
48
|
//# sourceMappingURL=spawn.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"spawn.js","sourceRoot":"","sources":["../../../lib/subcommands/spawn.
|
|
1
|
+
{"version":3,"file":"spawn.js","sourceRoot":"","sources":["../../../lib/subcommands/spawn.ts"],"names":[],"mappings":";;;;;AAeA,oCAaC;AAWD,0CAcC;AArDD,oDAAuB;AAIvB;;;;;;;;;;GAUG;AACI,KAAK,UAAU,YAAY,CAEhC,IAAuB,EACvB,MAA2B,EAAE;IAE7B,IAAI,gBAAC,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE,CAAC;QACpB,MAAM,IAAI,KAAK,CAAC,8BAA8B,CAAC,CAAC;IAClD,CAAC;IAED,OAAO,MAAM,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE;QAC9B,IAAI,EAAE,CAAC,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC,EAAE,GAAG,CAAC,gBAAC,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC;QACvE,GAAG;KACJ,CAAC,CAAC;AACL,CAAC;AAED;;;;;;;;GAQG;AACI,KAAK,UAAU,eAAe,CAEnC,IAAuB,EACvB,MAA2B,EAAE;IAE7B,IAAI,gBAAC,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE,CAAC;QACpB,MAAM,IAAI,KAAK,CAAC,8BAA8B,CAAC,CAAC;IAClD,CAAC;IAED,OAAO,MAAM,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE;QAC9B,IAAI,EAAE,CAAC,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC,EAAE,GAAG,CAAC,gBAAC,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC;QACvE,GAAG;QACH,YAAY,EAAE,IAAI;KACnB,CAAe,CAAC;AACnB,CAAC"}
|
|
@@ -1,16 +1,13 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
*/
|
|
14
|
-
function terminateApp(this: import("../simctl").default, bundleId: string): Promise<void>;
|
|
15
|
-
}
|
|
1
|
+
import type { Simctl } from '../simctl';
|
|
2
|
+
/**
|
|
3
|
+
* Terminate the given running application on Simulator.
|
|
4
|
+
* It is required that Simulator is in _booted_ state.
|
|
5
|
+
*
|
|
6
|
+
* @param bundleId - Bundle identifier of the application,
|
|
7
|
+
* which is going to be terminated.
|
|
8
|
+
* @throws {Error} If the corresponding simctl subcommand command
|
|
9
|
+
* returns non-zero return code.
|
|
10
|
+
* @throws {Error} If the `udid` instance property is unset
|
|
11
|
+
*/
|
|
12
|
+
export declare function terminateApp(this: Simctl, bundleId: string): Promise<void>;
|
|
16
13
|
//# sourceMappingURL=terminate.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"terminate.d.ts","sourceRoot":"","sources":["../../../lib/subcommands/terminate.
|
|
1
|
+
{"version":3,"file":"terminate.d.ts","sourceRoot":"","sources":["../../../lib/subcommands/terminate.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AAExC;;;;;;;;;GASG;AACH,wBAAsB,YAAY,CAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAIjF"}
|
|
@@ -1,21 +1,19 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
|
|
3
|
+
exports.terminateApp = terminateApp;
|
|
4
4
|
/**
|
|
5
5
|
* Terminate the given running application on Simulator.
|
|
6
6
|
* It is required that Simulator is in _booted_ state.
|
|
7
7
|
*
|
|
8
|
-
* @
|
|
9
|
-
* @param {string} bundleId - Bundle identifier of the application,
|
|
8
|
+
* @param bundleId - Bundle identifier of the application,
|
|
10
9
|
* which is going to be terminated.
|
|
11
10
|
* @throws {Error} If the corresponding simctl subcommand command
|
|
12
11
|
* returns non-zero return code.
|
|
13
12
|
* @throws {Error} If the `udid` instance property is unset
|
|
14
13
|
*/
|
|
15
|
-
|
|
14
|
+
async function terminateApp(bundleId) {
|
|
16
15
|
await this.exec('terminate', {
|
|
17
16
|
args: [this.requireUdid('terminate'), bundleId],
|
|
18
17
|
});
|
|
19
|
-
}
|
|
20
|
-
exports.default = commands;
|
|
18
|
+
}
|
|
21
19
|
//# sourceMappingURL=terminate.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"terminate.js","sourceRoot":"","sources":["../../../lib/subcommands/terminate.
|
|
1
|
+
{"version":3,"file":"terminate.js","sourceRoot":"","sources":["../../../lib/subcommands/terminate.ts"],"names":[],"mappings":";;AAYA,oCAIC;AAdD;;;;;;;;;GASG;AACI,KAAK,UAAU,YAAY,CAAgB,QAAgB;IAChE,MAAM,IAAI,CAAC,IAAI,CAAC,WAAW,EAAE;QAC3B,IAAI,EAAE,CAAC,IAAI,CAAC,WAAW,CAAC,WAAW,CAAC,EAAE,QAAQ,CAAC;KAChD,CAAC,CAAC;AACL,CAAC"}
|
|
@@ -1,106 +1,98 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
* accessibility-extra-large, accessibility-extra-extra-large,
|
|
99
|
-
* accessibility-extra-extra-extra-large with Xcode 16.2.
|
|
100
|
-
* @throws {Error} if the current SDK version does not support the command
|
|
101
|
-
* or the given value was invalid for the command.
|
|
102
|
-
* @throws {Error} If the `udid` instance property is unset
|
|
103
|
-
*/
|
|
104
|
-
function setContentSize(this: import("../simctl").default, contentSizeAction: string): Promise<void>;
|
|
105
|
-
}
|
|
1
|
+
import type { Simctl } from '../simctl';
|
|
2
|
+
/**
|
|
3
|
+
* Retrieves the current UI appearance value from the given simulator
|
|
4
|
+
*
|
|
5
|
+
* @since Xcode 11.4 SDK
|
|
6
|
+
* @return the appearance value, for example 'light' or 'dark'
|
|
7
|
+
* @throws {Error} if the current SDK version does not support the command
|
|
8
|
+
* or there was an error while getting the value
|
|
9
|
+
* @throws {Error} If the `udid` instance property is unset
|
|
10
|
+
*/
|
|
11
|
+
export declare function getAppearance(this: Simctl): Promise<string>;
|
|
12
|
+
/**
|
|
13
|
+
* Sets the UI appearance to the given style
|
|
14
|
+
*
|
|
15
|
+
* @since Xcode 11.4 SDK
|
|
16
|
+
* @param appearance valid appearance value, for example 'light' or 'dark'
|
|
17
|
+
* @throws {Error} if the current SDK version does not support the command
|
|
18
|
+
* or there was an error while getting the value
|
|
19
|
+
* @throws {Error} If the `udid` instance property is unset
|
|
20
|
+
*/
|
|
21
|
+
export declare function setAppearance(this: Simctl, appearance: string): Promise<void>;
|
|
22
|
+
/**
|
|
23
|
+
* Retrieves the current increase contrast configuration value from the given simulator.
|
|
24
|
+
* The value could be:
|
|
25
|
+
* - enabled: Increase Contrast is enabled.
|
|
26
|
+
* - disabled: Increase Contrast is disabled.
|
|
27
|
+
* - unsupported: The platform or runtime version do not support the Increase Contrast setting.
|
|
28
|
+
* - unknown: The current setting is unknown or there was an error detecting it.
|
|
29
|
+
*
|
|
30
|
+
* @since Xcode 15 (but lower xcode could have this command)
|
|
31
|
+
* @return the contrast configuration value.
|
|
32
|
+
* Possible return value is 'enabled', 'disabled',
|
|
33
|
+
* 'unsupported' or 'unknown' with Xcode 16.2.
|
|
34
|
+
* @throws {Error} if the current SDK version does not support the command
|
|
35
|
+
* or there was an error while getting the value.
|
|
36
|
+
* @throws {Error} If the `udid` instance property is unset
|
|
37
|
+
*/
|
|
38
|
+
export declare function getIncreaseContrast(this: Simctl): Promise<string>;
|
|
39
|
+
/**
|
|
40
|
+
* Sets the increase constrast configuration for the given simulator.
|
|
41
|
+
* Acceptable values (with Xcode 16.2, iOS 18.1) are 'enabled' or 'disabled'
|
|
42
|
+
* They would change in the future version, so please validate the given value
|
|
43
|
+
* in the caller side.
|
|
44
|
+
*
|
|
45
|
+
* @since Xcode 15 (but lower xcode could have this command)
|
|
46
|
+
* @param increaseContrast valid increase constrast configuration value.
|
|
47
|
+
* Acceptable value is 'enabled' or 'disabled' with Xcode 16.2.
|
|
48
|
+
* @throws {Error} if the current SDK version does not support the command
|
|
49
|
+
* or the given value was invalid for the command.
|
|
50
|
+
* @throws {Error} If the `udid` instance property is unset
|
|
51
|
+
*/
|
|
52
|
+
export declare function setIncreaseContrast(this: Simctl, increaseContrast: string): Promise<void>;
|
|
53
|
+
/**
|
|
54
|
+
* Retrieves the current content size value from the given simulator.
|
|
55
|
+
* The value could be:
|
|
56
|
+
* Standard sizes: extra-small, small, medium, large, extra-large,
|
|
57
|
+
* extra-extra-large, extra-extra-extra-large
|
|
58
|
+
* Extended range sizes: accessibility-medium, accessibility-large,
|
|
59
|
+
* accessibility-extra-large, accessibility-extra-extra-large,
|
|
60
|
+
* accessibility-extra-extra-extra-large
|
|
61
|
+
* Other values: unknown, unsupported.
|
|
62
|
+
*
|
|
63
|
+
* @since Xcode 15 (but lower xcode could have this command)
|
|
64
|
+
* @return the content size value. Possible return value is
|
|
65
|
+
* extra-small, small, medium, large, extra-large, extra-extra-large,
|
|
66
|
+
* extra-extra-extra-large, accessibility-medium, accessibility-large,
|
|
67
|
+
* accessibility-extra-large, accessibility-extra-extra-large,
|
|
68
|
+
* accessibility-extra-extra-extra-large,
|
|
69
|
+
* unknown or unsupported with Xcode 16.2.
|
|
70
|
+
* @throws {Error} if the current SDK version does not support the command
|
|
71
|
+
* or there was an error while getting the value.
|
|
72
|
+
* @throws {Error} If the `udid` instance property is unset
|
|
73
|
+
*/
|
|
74
|
+
export declare function getContentSize(this: Simctl): Promise<string>;
|
|
75
|
+
/**
|
|
76
|
+
* Sets content size for the given simulator.
|
|
77
|
+
* Acceptable values (with Xcode 16.2, iOS 18.1) are below:
|
|
78
|
+
* Standard sizes: extra-small, small, medium, large, extra-large,
|
|
79
|
+
* extra-extra-large, extra-extra-extra-large
|
|
80
|
+
* Extended range sizes: accessibility-medium, accessibility-large,
|
|
81
|
+
* accessibility-extra-large, accessibility-extra-extra-large,
|
|
82
|
+
* accessibility-extra-extra-extra-large
|
|
83
|
+
* Or 'increment' or 'decrement'
|
|
84
|
+
* They would change in the future version, so please validate the given value
|
|
85
|
+
* in the caller side.
|
|
86
|
+
*
|
|
87
|
+
* @since Xcode 15 (but lower xcode could have this command)
|
|
88
|
+
* @param contentSizeAction valid content size or action value. Acceptable value is
|
|
89
|
+
* extra-small, small, medium, large, extra-large, extra-extra-large,
|
|
90
|
+
* extra-extra-extra-large, accessibility-medium, accessibility-large,
|
|
91
|
+
* accessibility-extra-large, accessibility-extra-extra-large,
|
|
92
|
+
* accessibility-extra-extra-extra-large with Xcode 16.2.
|
|
93
|
+
* @throws {Error} if the current SDK version does not support the command
|
|
94
|
+
* or the given value was invalid for the command.
|
|
95
|
+
* @throws {Error} If the `udid` instance property is unset
|
|
96
|
+
*/
|
|
97
|
+
export declare function setContentSize(this: Simctl, contentSizeAction: string): Promise<void>;
|
|
106
98
|
//# sourceMappingURL=ui.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ui.d.ts","sourceRoot":"","sources":["../../../lib/subcommands/ui.
|
|
1
|
+
{"version":3,"file":"ui.d.ts","sourceRoot":"","sources":["../../../lib/subcommands/ui.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AAExC;;;;;;;;GAQG;AACH,wBAAsB,aAAa,CAAE,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAKlE;AAED;;;;;;;;GAQG;AACH,wBAAsB,aAAa,CAAE,IAAI,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAIpF;AAED;;;;;;;;;;;;;;;GAeG;AACH,wBAAsB,mBAAmB,CAAE,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAKxE;AAED;;;;;;;;;;;;GAYG;AACH,wBAAsB,mBAAmB,CAAE,IAAI,EAAE,MAAM,EAAE,gBAAgB,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAIhG;AAED;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,wBAAsB,cAAc,CAAE,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAKnE;AAED;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,wBAAsB,cAAc,CAAE,IAAI,EAAE,MAAM,EAAE,iBAAiB,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAI5F"}
|