node-simctl 7.3.5 → 7.3.7
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 +14 -0
- package/build/lib/simctl.d.ts +56 -4
- package/build/lib/simctl.d.ts.map +1 -1
- package/build/lib/simctl.js +77 -9
- package/build/lib/simctl.js.map +1 -1
- package/build/lib/subcommands/addmedia.d.ts +2 -1
- package/build/lib/subcommands/addmedia.d.ts.map +1 -1
- package/build/lib/subcommands/addmedia.js +1 -0
- package/build/lib/subcommands/addmedia.js.map +1 -1
- package/build/lib/subcommands/appinfo.d.ts +2 -1
- package/build/lib/subcommands/appinfo.d.ts.map +1 -1
- package/build/lib/subcommands/appinfo.js +1 -0
- package/build/lib/subcommands/appinfo.js.map +1 -1
- package/build/lib/subcommands/boot.d.ts +2 -1
- package/build/lib/subcommands/boot.d.ts.map +1 -1
- package/build/lib/subcommands/boot.js +1 -0
- package/build/lib/subcommands/boot.js.map +1 -1
- package/build/lib/subcommands/bootstatus.d.ts +2 -1
- package/build/lib/subcommands/bootstatus.d.ts.map +1 -1
- package/build/lib/subcommands/bootstatus.js +1 -0
- package/build/lib/subcommands/bootstatus.js.map +1 -1
- package/build/lib/subcommands/create.d.ts +2 -1
- package/build/lib/subcommands/create.d.ts.map +1 -1
- package/build/lib/subcommands/create.js +1 -0
- package/build/lib/subcommands/create.js.map +1 -1
- package/build/lib/subcommands/delete.d.ts +2 -1
- package/build/lib/subcommands/delete.d.ts.map +1 -1
- package/build/lib/subcommands/delete.js +1 -0
- package/build/lib/subcommands/delete.js.map +1 -1
- package/build/lib/subcommands/erase.d.ts +2 -1
- package/build/lib/subcommands/erase.d.ts.map +1 -1
- package/build/lib/subcommands/erase.js +1 -0
- package/build/lib/subcommands/erase.js.map +1 -1
- package/build/lib/subcommands/get_app_container.d.ts +2 -1
- package/build/lib/subcommands/get_app_container.d.ts.map +1 -1
- package/build/lib/subcommands/get_app_container.js +1 -0
- package/build/lib/subcommands/get_app_container.js.map +1 -1
- package/build/lib/subcommands/getenv.d.ts +2 -1
- package/build/lib/subcommands/getenv.d.ts.map +1 -1
- package/build/lib/subcommands/getenv.js +1 -0
- package/build/lib/subcommands/getenv.js.map +1 -1
- package/build/lib/subcommands/install.d.ts +2 -1
- package/build/lib/subcommands/install.d.ts.map +1 -1
- package/build/lib/subcommands/install.js +1 -0
- package/build/lib/subcommands/install.js.map +1 -1
- package/build/lib/subcommands/io.d.ts +2 -1
- package/build/lib/subcommands/io.d.ts.map +1 -1
- package/build/lib/subcommands/io.js +1 -0
- package/build/lib/subcommands/io.js.map +1 -1
- package/build/lib/subcommands/keychain.d.ts +6 -3
- package/build/lib/subcommands/keychain.d.ts.map +1 -1
- package/build/lib/subcommands/keychain.js +9 -1
- package/build/lib/subcommands/keychain.js.map +1 -1
- package/build/lib/subcommands/launch.d.ts +2 -1
- package/build/lib/subcommands/launch.d.ts.map +1 -1
- package/build/lib/subcommands/launch.js +1 -0
- package/build/lib/subcommands/launch.js.map +1 -1
- package/build/lib/subcommands/list.d.ts +12 -6
- package/build/lib/subcommands/list.d.ts.map +1 -1
- package/build/lib/subcommands/list.js +6 -1
- package/build/lib/subcommands/list.js.map +1 -1
- package/build/lib/subcommands/location.d.ts +6 -3
- package/build/lib/subcommands/location.d.ts.map +1 -1
- package/build/lib/subcommands/location.js +4 -1
- package/build/lib/subcommands/location.js.map +1 -1
- package/build/lib/subcommands/openurl.d.ts +2 -1
- package/build/lib/subcommands/openurl.d.ts.map +1 -1
- package/build/lib/subcommands/openurl.js +1 -0
- package/build/lib/subcommands/openurl.js.map +1 -1
- package/build/lib/subcommands/pbcopy.d.ts +4 -3
- package/build/lib/subcommands/pbcopy.d.ts.map +1 -1
- package/build/lib/subcommands/pbcopy.js +9 -6
- package/build/lib/subcommands/pbcopy.js.map +1 -1
- package/build/lib/subcommands/pbpaste.d.ts +2 -1
- package/build/lib/subcommands/pbpaste.d.ts.map +1 -1
- package/build/lib/subcommands/pbpaste.js +1 -0
- package/build/lib/subcommands/pbpaste.js.map +1 -1
- package/build/lib/subcommands/privacy.d.ts +6 -3
- package/build/lib/subcommands/privacy.d.ts.map +1 -1
- package/build/lib/subcommands/privacy.js +3 -0
- package/build/lib/subcommands/privacy.js.map +1 -1
- package/build/lib/subcommands/push.d.ts +2 -1
- package/build/lib/subcommands/push.d.ts.map +1 -1
- package/build/lib/subcommands/push.js +1 -0
- package/build/lib/subcommands/push.js.map +1 -1
- package/build/lib/subcommands/shutdown.d.ts +2 -1
- package/build/lib/subcommands/shutdown.d.ts.map +1 -1
- package/build/lib/subcommands/shutdown.js +1 -0
- package/build/lib/subcommands/shutdown.js.map +1 -1
- package/build/lib/subcommands/spawn.d.ts +4 -2
- package/build/lib/subcommands/spawn.d.ts.map +1 -1
- package/build/lib/subcommands/spawn.js +2 -0
- package/build/lib/subcommands/spawn.js.map +1 -1
- package/build/lib/subcommands/terminate.d.ts +2 -1
- package/build/lib/subcommands/terminate.d.ts.map +1 -1
- package/build/lib/subcommands/terminate.js +1 -0
- package/build/lib/subcommands/terminate.js.map +1 -1
- package/build/lib/subcommands/ui.d.ts +4 -2
- package/build/lib/subcommands/ui.d.ts.map +1 -1
- package/build/lib/subcommands/ui.js +2 -0
- package/build/lib/subcommands/ui.js.map +1 -1
- package/build/lib/subcommands/uninstall.d.ts +2 -1
- package/build/lib/subcommands/uninstall.d.ts.map +1 -1
- package/build/lib/subcommands/uninstall.js +1 -0
- package/build/lib/subcommands/uninstall.js.map +1 -1
- package/lib/simctl.js +101 -10
- package/lib/subcommands/addmedia.js +1 -0
- package/lib/subcommands/appinfo.js +1 -0
- package/lib/subcommands/boot.js +1 -0
- package/lib/subcommands/bootstatus.js +1 -0
- package/lib/subcommands/create.js +1 -0
- package/lib/subcommands/delete.js +1 -0
- package/lib/subcommands/erase.js +1 -0
- package/lib/subcommands/get_app_container.js +1 -0
- package/lib/subcommands/getenv.js +1 -0
- package/lib/subcommands/install.js +1 -0
- package/lib/subcommands/io.js +1 -0
- package/lib/subcommands/keychain.js +9 -1
- package/lib/subcommands/launch.js +1 -0
- package/lib/subcommands/list.js +6 -1
- package/lib/subcommands/location.js +4 -1
- package/lib/subcommands/openurl.js +1 -0
- package/lib/subcommands/pbcopy.js +9 -6
- package/lib/subcommands/pbpaste.js +1 -0
- package/lib/subcommands/privacy.js +3 -0
- package/lib/subcommands/push.js +1 -0
- package/lib/subcommands/shutdown.js +1 -0
- package/lib/subcommands/spawn.js +2 -0
- package/lib/subcommands/terminate.js +1 -0
- package/lib/subcommands/ui.js +2 -0
- package/lib/subcommands/uninstall.js +1 -0
- package/package.json +1 -1
- package/build/lib/subcommands/index.d.ts +0 -3
- package/build/lib/subcommands/index.d.ts.map +0 -1
- package/build/lib/subcommands/index.js +0 -34
- package/build/lib/subcommands/index.js.map +0 -1
- package/lib/subcommands/index.js +0 -56
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,17 @@
|
|
|
1
|
+
## [7.3.7](https://github.com/appium/node-simctl/compare/v7.3.6...v7.3.7) (2023-09-21)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* Tune conditional type declarations ([#206](https://github.com/appium/node-simctl/issues/206)) ([a44b0d2](https://github.com/appium/node-simctl/commit/a44b0d2a57c6532c9feff3a65c46bd3a067d2bfb))
|
|
7
|
+
|
|
8
|
+
## [7.3.6](https://github.com/appium/node-simctl/compare/v7.3.5...v7.3.6) (2023-09-21)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Miscellaneous Chores
|
|
12
|
+
|
|
13
|
+
* Import all mixin methods explicitly ([#205](https://github.com/appium/node-simctl/issues/205)) ([c691f20](https://github.com/appium/node-simctl/commit/c691f20ef4d843349b3c8ae0847b0a0d896482a0))
|
|
14
|
+
|
|
1
15
|
## [7.3.5](https://github.com/appium/node-simctl/compare/v7.3.4...v7.3.5) (2023-09-14)
|
|
2
16
|
|
|
3
17
|
|
package/build/lib/simctl.d.ts
CHANGED
|
@@ -5,6 +5,9 @@ export type XCRun = {
|
|
|
5
5
|
*/
|
|
6
6
|
path: string | null;
|
|
7
7
|
};
|
|
8
|
+
export type TAsyncOpts = {
|
|
9
|
+
asynchronous: true;
|
|
10
|
+
};
|
|
8
11
|
export type ExecOpts = {
|
|
9
12
|
/**
|
|
10
13
|
* - The list of additional subcommand arguments.
|
|
@@ -73,6 +76,9 @@ export type SimctlOpts = {
|
|
|
73
76
|
* @typedef {Object} XCRun
|
|
74
77
|
* @property {string?} path Full path to the xcrun script
|
|
75
78
|
*/
|
|
79
|
+
/**
|
|
80
|
+
* @typedef {{asynchronous: true}} TAsyncOpts
|
|
81
|
+
*/
|
|
76
82
|
/**
|
|
77
83
|
* @typedef {Object} ExecOpts
|
|
78
84
|
* @property {string[]} [args=[]] - The list of additional subcommand arguments.
|
|
@@ -125,19 +131,65 @@ export class Simctl {
|
|
|
125
131
|
get udid(): string | null;
|
|
126
132
|
set devicesSetPath(arg: string | null);
|
|
127
133
|
get devicesSetPath(): string | null;
|
|
128
|
-
|
|
134
|
+
/**
|
|
135
|
+
* @param {string?} [commandName=null]
|
|
136
|
+
* @returns {string}
|
|
137
|
+
*/
|
|
138
|
+
requireUdid(commandName?: string | null | undefined): string;
|
|
139
|
+
/**
|
|
140
|
+
* @returns {Promise<string>}
|
|
141
|
+
*/
|
|
129
142
|
requireXcrun(): Promise<string>;
|
|
130
143
|
/**
|
|
131
144
|
* Execute the particular simctl command.
|
|
132
145
|
*
|
|
146
|
+
* @template {ExecOpts} TExecOpts
|
|
133
147
|
* @param {string} subcommand - One of available simctl subcommands.
|
|
134
148
|
* Execute `xcrun simctl` in Terminal to see the full list of available subcommands.
|
|
135
|
-
* @param {
|
|
136
|
-
* @return {Promise<import('teen_process').
|
|
149
|
+
* @param {TExecOpts} [opts]
|
|
150
|
+
* @return {Promise<TExecOpts extends TAsyncOpts ? import('teen_process').SubProcess : import('teen_process').TeenProcessExecResult>}
|
|
137
151
|
* Either the result of teen process's `exec` or
|
|
138
152
|
* `SubProcess` instance depending of `opts.asynchronous` value.
|
|
139
153
|
* @throws {Error} If the simctl subcommand command returns non-zero return code.
|
|
140
154
|
*/
|
|
141
|
-
exec(subcommand: string, opts?:
|
|
155
|
+
exec<TExecOpts extends ExecOpts>(subcommand: string, opts?: TExecOpts | undefined): Promise<TExecOpts extends TAsyncOpts ? SubProcess : import("teen_process").TeenProcessExecResult<any>>;
|
|
156
|
+
addMedia: (this: Simctl, filePath: string) => Promise<import("teen_process").TeenProcessExecResult<any>>;
|
|
157
|
+
appInfo: (this: Simctl, bundleId: string) => Promise<string>;
|
|
158
|
+
bootDevice: (this: Simctl) => Promise<void>;
|
|
159
|
+
startBootMonitor: (this: Simctl, opts?: import("./subcommands/bootstatus").BootMonitorOptions | undefined) => Promise<SubProcess>;
|
|
160
|
+
createDevice: (this: Simctl, name: string, deviceTypeId: string, platformVersion: string, opts?: import("./subcommands/create").SimCreationOpts | undefined) => Promise<string>;
|
|
161
|
+
deleteDevice: (this: Simctl) => Promise<void>;
|
|
162
|
+
eraseDevice: (this: Simctl, timeout?: number | undefined) => Promise<void>;
|
|
163
|
+
getAppContainer: (this: Simctl, bundleId: string, containerType?: string | null | undefined) => Promise<string>;
|
|
164
|
+
getEnv: (this: Simctl, varName: string) => Promise<string | null>;
|
|
165
|
+
installApp: (this: Simctl, appPath: string) => Promise<void>;
|
|
166
|
+
getScreenshot: (this: Simctl) => Promise<string>;
|
|
167
|
+
addRootCertificate: (this: Simctl, cert: string, opts?: import("./subcommands/keychain").CertOptions | undefined) => Promise<void>;
|
|
168
|
+
addCertificate: (this: Simctl, cert: string, opts?: import("./subcommands/keychain").CertOptions | undefined) => Promise<void>;
|
|
169
|
+
resetKeychain: (this: Simctl) => Promise<void>;
|
|
170
|
+
launchApp: (this: Simctl, bundleId: string, tries?: number | undefined) => Promise<string>;
|
|
171
|
+
getDevicesByParsing: (this: Simctl, platform?: string | null | undefined) => Promise<Record<string, any>>;
|
|
172
|
+
getDevices: (this: Simctl, forSdk?: string | null | undefined, platform?: string | null | undefined) => Promise<any>;
|
|
173
|
+
getRuntimeForPlatformVersionViaJson: (this: Simctl, platformVersion: string, platform?: string | undefined) => Promise<string>;
|
|
174
|
+
getRuntimeForPlatformVersion: (this: Simctl, platformVersion: string, platform?: string | undefined) => Promise<string>;
|
|
175
|
+
getDeviceTypes: (this: Simctl) => Promise<string[]>;
|
|
176
|
+
list: (this: Simctl) => Promise<any>;
|
|
177
|
+
setLocation: (this: Simctl, latitude: string | number, longitude: string | number) => Promise<void>;
|
|
178
|
+
clearLocation: (this: Simctl) => Promise<void>;
|
|
179
|
+
openUrl: (this: Simctl, url: string) => Promise<import("teen_process").TeenProcessExecResult<any>>;
|
|
180
|
+
setPasteboard: (this: Simctl, content: string, encoding?: BufferEncoding | undefined) => Promise<void>;
|
|
181
|
+
getPasteboard: (this: Simctl, encoding?: string | undefined) => Promise<string>;
|
|
182
|
+
grantPermission: (this: Simctl, bundleId: string, perm: string) => Promise<void>;
|
|
183
|
+
revokePermission: (this: Simctl, bundleId: string, perm: string) => Promise<void>;
|
|
184
|
+
resetPermission: (this: Simctl, bundleId: string, perm: string) => Promise<void>;
|
|
185
|
+
pushNotification: (this: Simctl, payload: any) => Promise<void>;
|
|
186
|
+
shutdownDevice: (this: Simctl) => Promise<void>;
|
|
187
|
+
spawnProcess: (this: Simctl, args: string | string[], env?: any) => Promise<import("teen_process").TeenProcessExecResult<any>>;
|
|
188
|
+
spawnSubProcess: (this: Simctl, args: string | string[], env?: any) => Promise<SubProcess>;
|
|
189
|
+
terminateApp: (this: Simctl, bundleId: string) => Promise<void>;
|
|
190
|
+
getAppearance: (this: Simctl) => Promise<string>;
|
|
191
|
+
setAppearance: (this: Simctl, appearance: string) => Promise<void>;
|
|
192
|
+
removeApp: (this: Simctl, bundleId: string) => Promise<void>;
|
|
142
193
|
}
|
|
194
|
+
import { SubProcess } from 'teen_process';
|
|
143
195
|
//# sourceMappingURL=simctl.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"simctl.d.ts","sourceRoot":"","sources":["../../lib/simctl.js"],"names":[],"mappings":";;;;;
|
|
1
|
+
{"version":3,"file":"simctl.d.ts","sourceRoot":"","sources":["../../lib/simctl.js"],"names":[],"mappings":";;;;;UA4Cc,MAAM;;yBAIP;IAAC,YAAY,EAAE,IAAI,CAAA;CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AANjC;;;GAGG;AAEH;;GAEG;AAEH;;;;;;;;;;;;;;GAcG;AAEH;;;;;;;;;;;;;;;;;GAiBG;AAGH;IAUE;;OAEG;IACH,2CAUC;IAtBD,oBAAoB;IACpB,OADW,KAAK,CACV;IAEN,qBAAqB;IACrB,aADW,MAAM,CACL;IAEZ,sBAAsB;IACtB,WADW,OAAO,CACR;IAWR,sBAAsB;IACtB,OADW,MAAM,QACiC;IAClD,sBAAsB;IACtB,iBADW,MAAM,QAC+D;IAGlF,6BAEC;IAED,0BAEC;IAED,uCAEC;IAED,oCAEC;IAED;;;OAGG;IACH,sDAFa,MAAM,CAQlB;IAED;;OAEG;IACH,gBAFa,QAAQ,MAAM,CAAC,CAc3B;IAED;;;;;;;;;;;OAWG;IACH,6CARW,MAAM,wIA+DhB;IAED,yGAAqC;IAErC,6DAAkC;IAElC,4CAAqC;IAErC,kIAAuD;IAEvD,gLAA2C;IAE3C,8CAA2C;IAE3C,2EAAwC;IAExC,gHAA0D;IAE1D,kEAA4B;IAE5B,6DAAwC;IAExC,iDAAyC;IAEzC,mIAAyD;IACzD,+HAAiD;IACjD,+CAA+C;IAE/C,2FAAqC;IAErC,0GAAuD;IACvD,qHAAqC;IACrC,+HAAuF;IACvF,wHAAyE;IACzE,oDAA6C;IAC7C,qCAAyB;IAEzB,oGAA2C;IAC3C,+CAA+C;IAE/C,mGAAkC;IAElC,uGAA6C;IAE7C,gFAA8C;IAE9C,iFAAkD;IAClD,kFAAoD;IACpD,iFAAkD;IAElD,gEAAiD;IAEjD,gDAAiD;IAEjD,+HAA0C;IAC1C,2FAAgD;IAEhD,gEAA8C;IAE9C,iDAAyC;IACzC,mEAAyC;IAEzC,6DAAwC;CACzC;2BAzR0C,cAAc"}
|
package/build/lib/simctl.js
CHANGED
|
@@ -28,11 +28,35 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
29
|
exports.Simctl = void 0;
|
|
30
30
|
const lodash_1 = __importDefault(require("lodash"));
|
|
31
|
-
const index_js_1 = __importDefault(require("./subcommands/index.js"));
|
|
32
31
|
const which_1 = __importDefault(require("which"));
|
|
33
32
|
const logger_1 = __importStar(require("./logger"));
|
|
34
33
|
const helpers_1 = require("./helpers");
|
|
35
34
|
const teen_process_1 = require("teen_process");
|
|
35
|
+
const addmedia_1 = __importDefault(require("./subcommands/addmedia"));
|
|
36
|
+
const appinfo_1 = __importDefault(require("./subcommands/appinfo"));
|
|
37
|
+
const boot_1 = __importDefault(require("./subcommands/boot"));
|
|
38
|
+
const bootstatus_1 = __importDefault(require("./subcommands/bootstatus"));
|
|
39
|
+
const create_1 = __importDefault(require("./subcommands/create"));
|
|
40
|
+
const delete_1 = __importDefault(require("./subcommands/delete"));
|
|
41
|
+
const erase_1 = __importDefault(require("./subcommands/erase"));
|
|
42
|
+
const get_app_container_1 = __importDefault(require("./subcommands/get_app_container"));
|
|
43
|
+
const install_1 = __importDefault(require("./subcommands/install"));
|
|
44
|
+
const io_1 = __importDefault(require("./subcommands/io"));
|
|
45
|
+
const keychain_1 = __importDefault(require("./subcommands/keychain"));
|
|
46
|
+
const launch_1 = __importDefault(require("./subcommands/launch"));
|
|
47
|
+
const list_1 = __importDefault(require("./subcommands/list"));
|
|
48
|
+
const openurl_1 = __importDefault(require("./subcommands/openurl"));
|
|
49
|
+
const pbcopy_1 = __importDefault(require("./subcommands/pbcopy"));
|
|
50
|
+
const pbpaste_1 = __importDefault(require("./subcommands/pbpaste"));
|
|
51
|
+
const privacy_1 = __importDefault(require("./subcommands/privacy"));
|
|
52
|
+
const push_1 = __importDefault(require("./subcommands/push"));
|
|
53
|
+
const getenv_1 = __importDefault(require("./subcommands/getenv"));
|
|
54
|
+
const shutdown_1 = __importDefault(require("./subcommands/shutdown"));
|
|
55
|
+
const spawn_1 = __importDefault(require("./subcommands/spawn"));
|
|
56
|
+
const terminate_1 = __importDefault(require("./subcommands/terminate"));
|
|
57
|
+
const ui_1 = __importDefault(require("./subcommands/ui"));
|
|
58
|
+
const uninstall_1 = __importDefault(require("./subcommands/uninstall"));
|
|
59
|
+
const location_1 = __importDefault(require("./subcommands/location"));
|
|
36
60
|
const SIMCTL_ENV_PREFIX = 'SIMCTL_CHILD_';
|
|
37
61
|
const DEFAULT_OPTS = {
|
|
38
62
|
xcrun: {
|
|
@@ -45,6 +69,9 @@ const DEFAULT_OPTS = {
|
|
|
45
69
|
* @typedef {Object} XCRun
|
|
46
70
|
* @property {string?} path Full path to the xcrun script
|
|
47
71
|
*/
|
|
72
|
+
/**
|
|
73
|
+
* @typedef {{asynchronous: true}} TAsyncOpts
|
|
74
|
+
*/
|
|
48
75
|
/**
|
|
49
76
|
* @typedef {Object} ExecOpts
|
|
50
77
|
* @property {string[]} [args=[]] - The list of additional subcommand arguments.
|
|
@@ -83,6 +110,43 @@ class Simctl {
|
|
|
83
110
|
* @param {SimctlOpts} [opts={}]
|
|
84
111
|
*/
|
|
85
112
|
constructor(opts = {}) {
|
|
113
|
+
this.addMedia = addmedia_1.default.addMedia;
|
|
114
|
+
this.appInfo = appinfo_1.default.appInfo;
|
|
115
|
+
this.bootDevice = boot_1.default.bootDevice;
|
|
116
|
+
this.startBootMonitor = bootstatus_1.default.startBootMonitor;
|
|
117
|
+
this.createDevice = create_1.default.createDevice;
|
|
118
|
+
this.deleteDevice = delete_1.default.deleteDevice;
|
|
119
|
+
this.eraseDevice = erase_1.default.eraseDevice;
|
|
120
|
+
this.getAppContainer = get_app_container_1.default.getAppContainer;
|
|
121
|
+
this.getEnv = getenv_1.default.getEnv;
|
|
122
|
+
this.installApp = install_1.default.installApp;
|
|
123
|
+
this.getScreenshot = io_1.default.getScreenshot;
|
|
124
|
+
this.addRootCertificate = keychain_1.default.addRootCertificate;
|
|
125
|
+
this.addCertificate = keychain_1.default.addCertificate;
|
|
126
|
+
this.resetKeychain = keychain_1.default.resetKeychain;
|
|
127
|
+
this.launchApp = launch_1.default.launchApp;
|
|
128
|
+
this.getDevicesByParsing = list_1.default.getDevicesByParsing;
|
|
129
|
+
this.getDevices = list_1.default.getDevices;
|
|
130
|
+
this.getRuntimeForPlatformVersionViaJson = list_1.default.getRuntimeForPlatformVersionViaJson;
|
|
131
|
+
this.getRuntimeForPlatformVersion = list_1.default.getRuntimeForPlatformVersion;
|
|
132
|
+
this.getDeviceTypes = list_1.default.getDeviceTypes;
|
|
133
|
+
this.list = list_1.default.list;
|
|
134
|
+
this.setLocation = location_1.default.setLocation;
|
|
135
|
+
this.clearLocation = location_1.default.clearLocation;
|
|
136
|
+
this.openUrl = openurl_1.default.openUrl;
|
|
137
|
+
this.setPasteboard = pbcopy_1.default.setPasteboard;
|
|
138
|
+
this.getPasteboard = pbpaste_1.default.getPasteboard;
|
|
139
|
+
this.grantPermission = privacy_1.default.grantPermission;
|
|
140
|
+
this.revokePermission = privacy_1.default.revokePermission;
|
|
141
|
+
this.resetPermission = privacy_1.default.resetPermission;
|
|
142
|
+
this.pushNotification = push_1.default.pushNotification;
|
|
143
|
+
this.shutdownDevice = shutdown_1.default.shutdownDevice;
|
|
144
|
+
this.spawnProcess = spawn_1.default.spawnProcess;
|
|
145
|
+
this.spawnSubProcess = spawn_1.default.spawnSubProcess;
|
|
146
|
+
this.terminateApp = terminate_1.default.terminateApp;
|
|
147
|
+
this.getAppearance = ui_1.default.getAppearance;
|
|
148
|
+
this.setAppearance = ui_1.default.setAppearance;
|
|
149
|
+
this.removeApp = uninstall_1.default.removeApp;
|
|
86
150
|
opts = lodash_1.default.cloneDeep(opts);
|
|
87
151
|
lodash_1.default.defaultsDeep(opts, DEFAULT_OPTS);
|
|
88
152
|
for (const key of lodash_1.default.keys(DEFAULT_OPTS)) {
|
|
@@ -105,6 +169,10 @@ class Simctl {
|
|
|
105
169
|
get devicesSetPath() {
|
|
106
170
|
return this._devicesSetPath;
|
|
107
171
|
}
|
|
172
|
+
/**
|
|
173
|
+
* @param {string?} [commandName=null]
|
|
174
|
+
* @returns {string}
|
|
175
|
+
*/
|
|
108
176
|
requireUdid(commandName = null) {
|
|
109
177
|
if (!this.udid) {
|
|
110
178
|
throw new Error(`udid is required to be set for ` +
|
|
@@ -112,6 +180,9 @@ class Simctl {
|
|
|
112
180
|
}
|
|
113
181
|
return this.udid;
|
|
114
182
|
}
|
|
183
|
+
/**
|
|
184
|
+
* @returns {Promise<string>}
|
|
185
|
+
*/
|
|
115
186
|
async requireXcrun() {
|
|
116
187
|
const xcrunBinary = (0, helpers_1.getXcrunBinary)();
|
|
117
188
|
if (!this.xcrun.path) {
|
|
@@ -128,16 +199,17 @@ class Simctl {
|
|
|
128
199
|
/**
|
|
129
200
|
* Execute the particular simctl command.
|
|
130
201
|
*
|
|
202
|
+
* @template {ExecOpts} TExecOpts
|
|
131
203
|
* @param {string} subcommand - One of available simctl subcommands.
|
|
132
204
|
* Execute `xcrun simctl` in Terminal to see the full list of available subcommands.
|
|
133
|
-
* @param {
|
|
134
|
-
* @return {Promise<import('teen_process').
|
|
205
|
+
* @param {TExecOpts} [opts]
|
|
206
|
+
* @return {Promise<TExecOpts extends TAsyncOpts ? import('teen_process').SubProcess : import('teen_process').TeenProcessExecResult>}
|
|
135
207
|
* Either the result of teen process's `exec` or
|
|
136
208
|
* `SubProcess` instance depending of `opts.asynchronous` value.
|
|
137
209
|
* @throws {Error} If the simctl subcommand command returns non-zero return code.
|
|
138
210
|
*/
|
|
139
|
-
async exec(subcommand, opts
|
|
140
|
-
let { args = [], env = {}, asynchronous = false, encoding, logErrors = true, architectures, } = opts;
|
|
211
|
+
async exec(subcommand, opts) {
|
|
212
|
+
let { args = [], env = {}, asynchronous = false, encoding, logErrors = true, architectures, } = opts ?? {};
|
|
141
213
|
// run a particular simctl command
|
|
142
214
|
args = [
|
|
143
215
|
'simctl',
|
|
@@ -183,9 +255,5 @@ class Simctl {
|
|
|
183
255
|
}
|
|
184
256
|
}
|
|
185
257
|
exports.Simctl = Simctl;
|
|
186
|
-
// add all the subcommands to the Simctl prototype
|
|
187
|
-
for (const [fnName, fn] of lodash_1.default.toPairs(index_js_1.default)) {
|
|
188
|
-
Simctl.prototype[fnName] = fn;
|
|
189
|
-
}
|
|
190
258
|
exports.default = Simctl;
|
|
191
259
|
//# sourceMappingURL=simctl.js.map
|
package/build/lib/simctl.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"simctl.js","sourceRoot":"","sources":["../../lib/simctl.js"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,oDAAuB;AACvB,
|
|
1
|
+
{"version":3,"file":"simctl.js","sourceRoot":"","sources":["../../lib/simctl.js"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,oDAAuB;AACvB,kDAA0B;AAC1B,mDAA2C;AAC3C,uCAEmB;AACnB,+CAA0D;AAC1D,sEAAsD;AACtD,oEAAoD;AACpD,8DAA8C;AAC9C,0EAA0D;AAC1D,kEAAkD;AAClD,kEAAkD;AAClD,gEAAgD;AAChD,wFAAsE;AACtE,oEAAoD;AACpD,0DAA0C;AAC1C,sEAAsD;AACtD,kEAAkD;AAClD,8DAA8C;AAC9C,oEAAoD;AACpD,kEAAkD;AAClD,oEAAoD;AACpD,oEAAoD;AACpD,8DAA8C;AAC9C,kEAA+C;AAC/C,sEAAsD;AACtD,gEAAgD;AAChD,wEAAwD;AACxD,0DAA0C;AAC1C,wEAAwD;AACxD,sEAAsD;AAEtD,MAAM,iBAAiB,GAAG,eAAe,CAAC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,GAAG,CAAC,MAAM,EAAE,CAAC,GAAG,QAAQ,EAAE,KAAK,EAAE,GAAG,IAAI,CAAC,EAAE,QAAQ,CAAC,CAAC;aAC9D;YACD,4CAA4C;YAC5C,OAAO,YAAY,CAAC,CAAC,CAAC,IAAI,yBAAU,CAAC,GAAG,QAAQ,CAAC,CAAC,CAAC,CAAC,MAAM,IAAA,mBAAM,EAAC,GAAG,QAAQ,CAAC,CAAC;SAC/E;QAAC,OAAO,CAAC,EAAE;YACV,IAAI,CAAC,IAAI,CAAC,SAAS,IAAI,CAAC,SAAS,EAAE;gBACjC,uEAAuE;gBACvE,wBAAwB;aACzB;iBAAM,IAAI,CAAC,CAAC,MAAM,EAAE;gBACnB,MAAM,GAAG,GAAG,kBAAkB,UAAU,MAAM,CAAC,CAAC,MAAM,CAAC,IAAI,EAAE,EAAE,CAAC;gBAChE,gBAAG,CAAC,KAAK,CAAC,mBAAU,EAAE,GAAG,CAAC,CAAC;gBAC3B,CAAC,CAAC,OAAO,GAAG,GAAG,CAAC;aACjB;iBAAM;gBACL,gBAAG,CAAC,KAAK,CAAC,mBAAU,EAAE,CAAC,CAAC,OAAO,CAAC,CAAC;aAClC;YACD,MAAM,CAAC,CAAC;SACT;IACH,CAAC;CA+DF;AAGQ,wBAAM;AADf,kBAAe,MAAM,CAAC"}
|
|
@@ -4,6 +4,7 @@ declare namespace commands {
|
|
|
4
4
|
* Add the particular media file to Simulator's library.
|
|
5
5
|
* It is required that Simulator is in _booted_ state.
|
|
6
6
|
*
|
|
7
|
+
* @this {import('../simctl').Simctl}
|
|
7
8
|
* @param {string} filePath - Full path to a media file on the local
|
|
8
9
|
* file system.
|
|
9
10
|
* @return {Promise<import('teen_process').TeenProcessExecResult>} Command execution result.
|
|
@@ -11,6 +12,6 @@ declare namespace commands {
|
|
|
11
12
|
* returns non-zero return code.
|
|
12
13
|
* @throws {Error} If the `udid` instance property is unset
|
|
13
14
|
*/
|
|
14
|
-
function addMedia(filePath: string): Promise<import("teen_process").TeenProcessExecResult<any>>;
|
|
15
|
+
function addMedia(this: import("../simctl").default, filePath: string): Promise<import("teen_process").TeenProcessExecResult<any>>;
|
|
15
16
|
}
|
|
16
17
|
//# sourceMappingURL=addmedia.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"addmedia.d.ts","sourceRoot":"","sources":["../../../lib/subcommands/addmedia.js"],"names":[],"mappings":";;IAEA
|
|
1
|
+
{"version":3,"file":"addmedia.d.ts","sourceRoot":"","sources":["../../../lib/subcommands/addmedia.js"],"names":[],"mappings":";;IAEA;;;;;;;;;;;OAWG;IACH,mIAIC"}
|
|
@@ -5,6 +5,7 @@ const commands = {};
|
|
|
5
5
|
* Add the particular media file to Simulator's library.
|
|
6
6
|
* It is required that Simulator is in _booted_ state.
|
|
7
7
|
*
|
|
8
|
+
* @this {import('../simctl').Simctl}
|
|
8
9
|
* @param {string} filePath - Full path to a media file on the local
|
|
9
10
|
* file system.
|
|
10
11
|
* @return {Promise<import('teen_process').TeenProcessExecResult>} Command execution result.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"addmedia.js","sourceRoot":"","sources":["../../../lib/subcommands/addmedia.js"],"names":[],"mappings":";;AAAA,MAAM,QAAQ,GAAG,EAAE,CAAC;AAEpB
|
|
1
|
+
{"version":3,"file":"addmedia.js","sourceRoot":"","sources":["../../../lib/subcommands/addmedia.js"],"names":[],"mappings":";;AAAA,MAAM,QAAQ,GAAG,EAAE,CAAC;AAEpB;;;;;;;;;;;GAWG;AACH,QAAQ,CAAC,QAAQ,GAAG,KAAK,UAAU,QAAQ,CAAE,QAAQ;IACnD,OAAO,MAAM,IAAI,CAAC,IAAI,CAAC,UAAU,EAAE;QACjC,IAAI,EAAE,CAAC,IAAI,CAAC,WAAW,CAAC,UAAU,CAAC,EAAE,QAAQ,CAAC;KAC/C,CAAC,CAAC;AACL,CAAC,CAAC;AAEF,kBAAe,QAAQ,CAAC"}
|
|
@@ -7,6 +7,7 @@ declare namespace commands {
|
|
|
7
7
|
* Simulator server should be in 'booted' state for this call to work properly.
|
|
8
8
|
* The tool is only available since Xcode SDK 8.1
|
|
9
9
|
*
|
|
10
|
+
* @this {import('../simctl').Simctl}
|
|
10
11
|
* @param {string} bundleId - The bundle identifier of the target application.
|
|
11
12
|
* @return {Promise<string>} The information about installed application.
|
|
12
13
|
*
|
|
@@ -40,6 +41,6 @@ declare namespace commands {
|
|
|
40
41
|
* </pre>
|
|
41
42
|
* @throws {Error} If the `udid` instance property is unset
|
|
42
43
|
*/
|
|
43
|
-
function appInfo(bundleId: string): Promise<string>;
|
|
44
|
+
function appInfo(this: import("../simctl").default, bundleId: string): Promise<string>;
|
|
44
45
|
}
|
|
45
46
|
//# sourceMappingURL=appinfo.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"appinfo.d.ts","sourceRoot":"","sources":["../../../lib/subcommands/appinfo.js"],"names":[],"mappings":";;IAEA
|
|
1
|
+
{"version":3,"file":"appinfo.d.ts","sourceRoot":"","sources":["../../../lib/subcommands/appinfo.js"],"names":[],"mappings":";;IAEA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAwCG;IACH,uFAKC"}
|
|
@@ -8,6 +8,7 @@ const commands = {};
|
|
|
8
8
|
* Simulator server should be in 'booted' state for this call to work properly.
|
|
9
9
|
* The tool is only available since Xcode SDK 8.1
|
|
10
10
|
*
|
|
11
|
+
* @this {import('../simctl').Simctl}
|
|
11
12
|
* @param {string} bundleId - The bundle identifier of the target application.
|
|
12
13
|
* @return {Promise<string>} The information about installed application.
|
|
13
14
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"appinfo.js","sourceRoot":"","sources":["../../../lib/subcommands/appinfo.js"],"names":[],"mappings":";;AAAA,MAAM,QAAQ,GAAG,EAAE,CAAC;AAEpB
|
|
1
|
+
{"version":3,"file":"appinfo.js","sourceRoot":"","sources":["../../../lib/subcommands/appinfo.js"],"names":[],"mappings":";;AAAA,MAAM,QAAQ,GAAG,EAAE,CAAC;AAEpB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAwCG;AACH,QAAQ,CAAC,OAAO,GAAG,KAAK,UAAU,OAAO,CAAE,QAAQ;IACjD,MAAM,EAAC,MAAM,EAAC,GAAG,MAAM,IAAI,CAAC,IAAI,CAAC,SAAS,EAAE;QAC1C,IAAI,EAAE,CAAC,IAAI,CAAC,WAAW,CAAC,SAAS,CAAC,EAAE,QAAQ,CAAC;KAC9C,CAAC,CAAC;IACH,OAAO,CAAC,MAAM,IAAI,EAAE,CAAC,CAAC,IAAI,EAAE,CAAC;AAC/B,CAAC,CAAC;AAEF,kBAAe,QAAQ,CAAC"}
|
|
@@ -3,10 +3,11 @@ declare namespace commands {
|
|
|
3
3
|
/**
|
|
4
4
|
* Boot the particular Simulator if it is not running.
|
|
5
5
|
*
|
|
6
|
+
* @this {import('../simctl').Simctl}
|
|
6
7
|
* @throws {Error} If the corresponding simctl subcommand command
|
|
7
8
|
* returns non-zero return code.
|
|
8
9
|
* @throws {Error} If the `udid` instance property is unset
|
|
9
10
|
*/
|
|
10
|
-
function bootDevice(): Promise<void>;
|
|
11
|
+
function bootDevice(this: import("../simctl").default): Promise<void>;
|
|
11
12
|
}
|
|
12
13
|
//# sourceMappingURL=boot.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"boot.d.ts","sourceRoot":"","sources":["../../../lib/subcommands/boot.js"],"names":[],"mappings":";;IAMA
|
|
1
|
+
{"version":3,"file":"boot.d.ts","sourceRoot":"","sources":["../../../lib/subcommands/boot.js"],"names":[],"mappings":";;IAMA;;;;;;;OAOG;IACH,sEAWC"}
|
|
@@ -32,6 +32,7 @@ const commands = {};
|
|
|
32
32
|
/**
|
|
33
33
|
* Boot the particular Simulator if it is not running.
|
|
34
34
|
*
|
|
35
|
+
* @this {import('../simctl').Simctl}
|
|
35
36
|
* @throws {Error} If the corresponding simctl subcommand command
|
|
36
37
|
* returns non-zero return code.
|
|
37
38
|
* @throws {Error} If the `udid` instance property is unset
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"boot.js","sourceRoot":"","sources":["../../../lib/subcommands/boot.js"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,oDAAuB;AACvB,oDAA4C;AAG5C,MAAM,QAAQ,GAAG,EAAE,CAAC;AAEpB
|
|
1
|
+
{"version":3,"file":"boot.js","sourceRoot":"","sources":["../../../lib/subcommands/boot.js"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,oDAAuB;AACvB,oDAA4C;AAG5C,MAAM,QAAQ,GAAG,EAAE,CAAC;AAEpB;;;;;;;GAOG;AACH,QAAQ,CAAC,UAAU,GAAG,KAAK,UAAU,UAAU;IAC7C,IAAI;QACF,MAAM,IAAI,CAAC,IAAI,CAAC,MAAM,EAAE;YACtB,IAAI,EAAE,CAAC,IAAI,CAAC,WAAW,CAAC,MAAM,CAAC,CAAC;SACjC,CAAC,CAAC;KACJ;IAAC,OAAO,CAAC,EAAE;QACV,IAAI,gBAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,OAAO,EAAE,gDAAgD,CAAC,EAAE;YAC3E,MAAM,CAAC,CAAC;SACT;QACD,gBAAG,CAAC,KAAK,CAAC,mBAAU,EAAE,iDAAiD,CAAC,CAAC;KAC1E;AACH,CAAC,CAAC;AAEF,kBAAe,QAAQ,CAAC"}
|
|
@@ -45,12 +45,13 @@ declare namespace commands {
|
|
|
45
45
|
* until Simulator booting is completed.
|
|
46
46
|
* The method is only available since Xcode8.
|
|
47
47
|
*
|
|
48
|
+
* @this {import('../simctl').Simctl}
|
|
48
49
|
* @param {BootMonitorOptions} [opts={}] - Monitoring options.
|
|
49
50
|
* @returns {Promise<import('teen_process').SubProcess>} The instance of the corresponding monitoring process.
|
|
50
51
|
* @throws {Error} If the Simulator fails to finish booting within the given timeout and onFinished
|
|
51
52
|
* property is not set.
|
|
52
53
|
* @throws {Error} If the `udid` instance property is unset
|
|
53
54
|
*/
|
|
54
|
-
function startBootMonitor(opts?: BootMonitorOptions | undefined): Promise<import("teen_process").SubProcess>;
|
|
55
|
+
function startBootMonitor(this: import("../simctl").default, opts?: BootMonitorOptions | undefined): Promise<import("teen_process").SubProcess>;
|
|
55
56
|
}
|
|
56
57
|
//# sourceMappingURL=bootstatus.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bootstatus.d.ts","sourceRoot":"","sources":["../../../lib/subcommands/bootstatus.js"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAMA;;;;;;;;;;OAUG;IAEH
|
|
1
|
+
{"version":3,"file":"bootstatus.d.ts","sourceRoot":"","sources":["../../../lib/subcommands/bootstatus.js"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAMA;;;;;;;;;;OAUG;IAEH;;;;;;;;;;;;OAYG;IACH,gJAgFC"}
|
|
@@ -23,6 +23,7 @@ const commands = {};
|
|
|
23
23
|
* until Simulator booting is completed.
|
|
24
24
|
* The method is only available since Xcode8.
|
|
25
25
|
*
|
|
26
|
+
* @this {import('../simctl').Simctl}
|
|
26
27
|
* @param {BootMonitorOptions} [opts={}] - Monitoring options.
|
|
27
28
|
* @returns {Promise<import('teen_process').SubProcess>} The instance of the corresponding monitoring process.
|
|
28
29
|
* @throws {Error} If the Simulator fails to finish booting within the given timeout and onFinished
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bootstatus.js","sourceRoot":"","sources":["../../../lib/subcommands/bootstatus.js"],"names":[],"mappings":";;;;;AAAA,uDAA4B;AAC5B,uCAA4C;AAG5C,MAAM,QAAQ,GAAG,EAAE,CAAC;AAEpB;;;;;;;;;;GAUG;AAEH
|
|
1
|
+
{"version":3,"file":"bootstatus.js","sourceRoot":"","sources":["../../../lib/subcommands/bootstatus.js"],"names":[],"m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C,MAAM,IAAI,KAAK,CACb,iBAAiB,IAAI,uCAAuC,OAAO,KAAK;gBACxE,oBAAoB,MAAM,EAAE,CAAC,CAAC;SACjC;KACF;IACD,OAAO,WAAW,CAAC;AACrB,CAAC,CAAC;AAEF,kBAAe,QAAQ,CAAC"}
|
|
@@ -21,6 +21,7 @@ declare namespace commands {
|
|
|
21
21
|
* Create Simulator device with given name for the particular
|
|
22
22
|
* platform type and version.
|
|
23
23
|
*
|
|
24
|
+
* @this {import('../simctl').Simctl}
|
|
24
25
|
* @param {string} name - The device name to be created.
|
|
25
26
|
* @param {string} deviceTypeId - Device type, for example 'iPhone 6'.
|
|
26
27
|
* @param {string} platformVersion - Platform version, for example '10.3'.
|
|
@@ -29,6 +30,6 @@ declare namespace commands {
|
|
|
29
30
|
* @throws {Error} If the corresponding simctl subcommand command
|
|
30
31
|
* returns non-zero return code.
|
|
31
32
|
*/
|
|
32
|
-
function createDevice(name: string, deviceTypeId: string, platformVersion: string, opts?: SimCreationOpts | undefined): Promise<string>;
|
|
33
|
+
function createDevice(this: import("../simctl").default, name: string, deviceTypeId: string, platformVersion: string, opts?: SimCreationOpts | undefined): Promise<string>;
|
|
33
34
|
}
|
|
34
35
|
//# sourceMappingURL=create.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create.d.ts","sourceRoot":"","sources":["../../../lib/subcommands/create.js"],"names":[],"mappings":";;;;;;;;;;;;;IAWA;;;;;OAKG;IAEH
|
|
1
|
+
{"version":3,"file":"create.d.ts","sourceRoot":"","sources":["../../../lib/subcommands/create.js"],"names":[],"mappings":";;;;;;;;;;;;;IAWA;;;;;OAKG;IAEH;;;;;;;;;;;;OAYG;IACH,2KAoFC"}
|
|
@@ -43,6 +43,7 @@ const commands = {};
|
|
|
43
43
|
* Create Simulator device with given name for the particular
|
|
44
44
|
* platform type and version.
|
|
45
45
|
*
|
|
46
|
+
* @this {import('../simctl').Simctl}
|
|
46
47
|
* @param {string} name - The device name to be created.
|
|
47
48
|
* @param {string} deviceTypeId - Device type, for example 'iPhone 6'.
|
|
48
49
|
* @param {string} platformVersion - Platform version, for example '10.3'.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create.js","sourceRoot":"","sources":["../../../lib/subcommands/create.js"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,oDAAuB;AACvB,oDAA4C;AAC5C,uCAAyC;AACzC,wCAAgE;AAGhE,MAAM,2BAA2B,GAAG,KAAK,CAAC;AAC1C,MAAM,gCAAgC,GAAG,KAAK,CAAC;AAE/C,MAAM,QAAQ,GAAG,EAAE,CAAC;AAEpB;;;;;GAKG;AAEH
|
|
1
|
+
{"version":3,"file":"create.js","sourceRoot":"","sources":["../../../lib/subcommands/create.js"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,oDAAuB;AACvB,oDAA4C;AAC5C,uCAAyC;AACzC,wCAAgE;AAGhE,MAAM,2BAA2B,GAAG,KAAK,CAAC;AAC1C,MAAM,gCAAgC,GAAG,KAAK,CAAC;AAE/C,MAAM,QAAQ,GAAG,EAAE,CAAC;AAEpB;;;;;GAKG;AAEH;;;;;;;;;;;;GAYG;AACH,QAAQ,CAAC,YAAY,GAAG,KAAK,UAAU,YAAY,CAAE,IAAI,EAAE,YAAY,EAAE,eAAe,EAAE,IAAI,GAAG,EAAE;IACjG,MAAM,EACJ,QAAQ,GAAG,2BAA2B,EACtC,OAAO,GAAG,gCAAgC,EAC3C,GAAG,IAAI,CAAC;IAET,IAAI,UAAU,GAAG,EAAE,CAAC;IAEpB,wCAAwC;IACxC,IAAI;QACF,UAAU,CAAC,IAAI,CAAC,MAAM,IAAI,CAAC,mCAAmC,CAAC,eAAe,EAAE,QAAQ,CAAC,CAAC,CAAC;KAC5F;IAAC,OAAO,GAAG,EAAE,GAAE;IAEhB,IAAI,gBAAC,CAAC,OAAO,CAAC,UAAU,CAAC,EAAE;QACzB,0DAA0D;QAC1D,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ACtC;KACF;IAED,IAAI,CAAC,IAAI,EAAE;QACT,MAAM,IAAI,KAAK,CAAC,yCAAyC,IAAI,YAAY;YACvE,YAAY,YAAY,sBAAsB;YAC9C,GAAG,UAAU,CAAC,GAAG,CAAC,CAAC,EAAE,EAAE,EAAE,CAAC,IAAI,EAAE,GAAG,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;KACtD;IAED,qDAAqD;IACrD,MAAM,OAAO,GAAG,QAAQ,CAAC,GAAG,OAAO,GAAG,IAAI,EAAE,EAAE,EAAE,CAAC,CAAC;IAClD,MAAM,IAAA,wBAAa,EAAC,OAAO,EAAE,IAAI,EAAE,KAAK,IAAI,EAAE;QAC5C,MAAM,OAAO,GAAG,gBAAC,CAAC,MAAM,CAAC,MAAM,IAAI,CAAC,UAAU,EAAE,CAAC,CAAC;QAClD,KAAK,MAAM,SAAS,IAAI,gBAAC,CAAC,MAAM,CAAC,OAAO,CAAC,EAAE;YACzC,KAAK,MAAM,MAAM,IAAI,SAAS,EAAE;gBAC9B,IAAI,MAAM,CAAC,IAAI,KAAK,IAAI,EAAE;oBACxB,IAAI,MAAM,CAAC,KAAK,KAAK,UAAU,EAAE;wBAC/B,gBAAgB;wBAChB,MAAM,IAAI,KAAK,CAAC,qBAAqB,IAAI,uBAAuB,CAAC,CAAC;qBACnE;yBAAM;wBACL,2BAA2B;wBAC3B,OAAO;qBACR;iBACF;aACF;SACF;QACD,MAAM,IAAI,KAAK,CAAC,qBAAqB,IAAI,mBAAmB,CAAC,CAAC;IAChE,CAAC,CAAC,CAAC;IAEH,OAAO,IAAI,CAAC;AACd,CAAC,CAAC;AAEF,kBAAe,QAAQ,CAAC"}
|
|
@@ -3,10 +3,11 @@ declare namespace commands {
|
|
|
3
3
|
/**
|
|
4
4
|
* Delete the particular Simulator from available devices list.
|
|
5
5
|
*
|
|
6
|
+
* @this {import('../simctl').Simctl}
|
|
6
7
|
* @throws {Error} If the corresponding simctl subcommand command
|
|
7
8
|
* returns non-zero return code.
|
|
8
9
|
* @throws {Error} If the `udid` instance property is unset
|
|
9
10
|
*/
|
|
10
|
-
function deleteDevice(): Promise<void>;
|
|
11
|
+
function deleteDevice(this: import("../simctl").default): Promise<void>;
|
|
11
12
|
}
|
|
12
13
|
//# sourceMappingURL=delete.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"delete.d.ts","sourceRoot":"","sources":["../../../lib/subcommands/delete.js"],"names":[],"mappings":";;IAEA
|
|
1
|
+
{"version":3,"file":"delete.d.ts","sourceRoot":"","sources":["../../../lib/subcommands/delete.js"],"names":[],"mappings":";;IAEA;;;;;;;OAOG;IACH,wEAIC"}
|
|
@@ -4,6 +4,7 @@ const commands = {};
|
|
|
4
4
|
/**
|
|
5
5
|
* Delete the particular Simulator from available devices list.
|
|
6
6
|
*
|
|
7
|
+
* @this {import('../simctl').Simctl}
|
|
7
8
|
* @throws {Error} If the corresponding simctl subcommand command
|
|
8
9
|
* returns non-zero return code.
|
|
9
10
|
* @throws {Error} If the `udid` instance property is unset
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"delete.js","sourceRoot":"","sources":["../../../lib/subcommands/delete.js"],"names":[],"mappings":";;AAAA,MAAM,QAAQ,GAAG,EAAE,CAAC;AAEpB
|
|
1
|
+
{"version":3,"file":"delete.js","sourceRoot":"","sources":["../../../lib/subcommands/delete.js"],"names":[],"mappings":";;AAAA,MAAM,QAAQ,GAAG,EAAE,CAAC;AAEpB;;;;;;;GAOG;AACH,QAAQ,CAAC,YAAY,GAAG,KAAK,UAAU,YAAY;IACjD,MAAM,IAAI,CAAC,IAAI,CAAC,QAAQ,EAAE;QACxB,IAAI,EAAE,CAAC,IAAI,CAAC,WAAW,CAAC,QAAQ,CAAC,CAAC;KACnC,CAAC,CAAC;AACL,CAAC,CAAC;AAEF,kBAAe,QAAQ,CAAC"}
|
|
@@ -4,12 +4,13 @@ declare namespace commands {
|
|
|
4
4
|
* Reset the content and settings of the particular Simulator.
|
|
5
5
|
* It is required that Simulator is in _shutdown_ state.
|
|
6
6
|
*
|
|
7
|
+
* @this {import('../simctl').Simctl}
|
|
7
8
|
* @param {number} [timeout=10000] - The maximum number of milliseconds to wait
|
|
8
9
|
* unit device reset is completed.
|
|
9
10
|
* @throws {Error} If the corresponding simctl subcommand command
|
|
10
11
|
* returns non-zero return code.
|
|
11
12
|
* @throws {Error} If the `udid` instance property is unset
|
|
12
13
|
*/
|
|
13
|
-
function eraseDevice(timeout?: number | undefined): Promise<void>;
|
|
14
|
+
function eraseDevice(this: import("../simctl").default, timeout?: number | undefined): Promise<void>;
|
|
14
15
|
}
|
|
15
16
|
//# sourceMappingURL=erase.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"erase.d.ts","sourceRoot":"","sources":["../../../lib/subcommands/erase.js"],"names":[],"mappings":";;IAIA
|
|
1
|
+
{"version":3,"file":"erase.d.ts","sourceRoot":"","sources":["../../../lib/subcommands/erase.js"],"names":[],"mappings":";;IAIA;;;;;;;;;;OAUG;IACH,qGAQC"}
|
|
@@ -6,6 +6,7 @@ const commands = {};
|
|
|
6
6
|
* Reset the content and settings of the particular Simulator.
|
|
7
7
|
* It is required that Simulator is in _shutdown_ state.
|
|
8
8
|
*
|
|
9
|
+
* @this {import('../simctl').Simctl}
|
|
9
10
|
* @param {number} [timeout=10000] - The maximum number of milliseconds to wait
|
|
10
11
|
* unit device reset is completed.
|
|
11
12
|
* @throws {Error} If the corresponding simctl subcommand command
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"erase.js","sourceRoot":"","sources":["../../../lib/subcommands/erase.js"],"names":[],"mappings":";;AAAA,uCAAyC;AAEzC,MAAM,QAAQ,GAAG,EAAE,CAAC;AAEpB
|
|
1
|
+
{"version":3,"file":"erase.js","sourceRoot":"","sources":["../../../lib/subcommands/erase.js"],"names":[],"mappings":";;AAAA,uCAAyC;AAEzC,MAAM,QAAQ,GAAG,EAAE,CAAC;AAEpB;;;;;;;;;;GAUG;AACH,QAAQ,CAAC,WAAW,GAAG,KAAK,UAAU,WAAW,CAAE,OAAO,GAAG,IAAI;IAC/D,0DAA0D;IAC1D,MAAM,OAAO,GAAG,QAAQ,CAAC,GAAG,OAAO,GAAG,GAAG,EAAE,EAAE,EAAE,CAAC,CAAC;IACjD,MAAM,IAAA,wBAAa,EAAC,OAAO,EAAE,GAAG,EAC9B,KAAK,IAAI,EAAE,CAAC,MAAM,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE;QACnC,IAAI,EAAE,CAAC,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC,CAAC;KAClC,CAAC,CACH,CAAC;AACJ,CAAC,CAAC;AAEF,kBAAe,QAAQ,CAAC"}
|
|
@@ -7,6 +7,7 @@ declare namespace commands {
|
|
|
7
7
|
* like 'com.apple.springboard'.
|
|
8
8
|
* It is required that Simulator is in _booted_ state.
|
|
9
9
|
*
|
|
10
|
+
* @this {import('../simctl').Simctl}
|
|
10
11
|
* @param {string} bundleId - Bundle identifier of an application.
|
|
11
12
|
* @param {string?} [containerType=null] - Which container type to return. Possible values
|
|
12
13
|
* are 'app', 'data', 'groups', '<A specific App Group container>'.
|
|
@@ -17,6 +18,6 @@ declare namespace commands {
|
|
|
17
18
|
* returns non-zero return code.
|
|
18
19
|
* @throws {Error} If the `udid` instance property is unset
|
|
19
20
|
*/
|
|
20
|
-
function getAppContainer(bundleId: string, containerType?: string | null | undefined): Promise<string>;
|
|
21
|
+
function getAppContainer(this: import("../simctl").default, bundleId: string, containerType?: string | null | undefined): Promise<string>;
|
|
21
22
|
}
|
|
22
23
|
//# sourceMappingURL=get_app_container.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get_app_container.d.ts","sourceRoot":"","sources":["../../../lib/subcommands/get_app_container.js"],"names":[],"mappings":";;IAEA
|
|
1
|
+
{"version":3,"file":"get_app_container.d.ts","sourceRoot":"","sources":["../../../lib/subcommands/get_app_container.js"],"names":[],"mappings":";;IAEA;;;;;;;;;;;;;;;;;OAiBG;IACH,0IAOC"}
|
|
@@ -8,6 +8,7 @@ const commands = {};
|
|
|
8
8
|
* like 'com.apple.springboard'.
|
|
9
9
|
* It is required that Simulator is in _booted_ state.
|
|
10
10
|
*
|
|
11
|
+
* @this {import('../simctl').Simctl}
|
|
11
12
|
* @param {string} bundleId - Bundle identifier of an application.
|
|
12
13
|
* @param {string?} [containerType=null] - Which container type to return. Possible values
|
|
13
14
|
* are 'app', 'data', 'groups', '<A specific App Group container>'.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get_app_container.js","sourceRoot":"","sources":["../../../lib/subcommands/get_app_container.js"],"names":[],"mappings":";;AAAA,MAAM,QAAQ,GAAG,EAAE,CAAC;AAEpB
|
|
1
|
+
{"version":3,"file":"get_app_container.js","sourceRoot":"","sources":["../../../lib/subcommands/get_app_container.js"],"names":[],"mappings":";;AAAA,MAAM,QAAQ,GAAG,EAAE,CAAC;AAEpB;;;;;;;;;;;;;;;;;GAiBG;AACH,QAAQ,CAAC,eAAe,GAAG,KAAK,UAAU,eAAe,CAAE,QAAQ,EAAE,aAAa,GAAG,IAAI;IACvF,MAAM,IAAI,GAAG,CAAC,IAAI,CAAC,WAAW,CAAC,mBAAmB,CAAC,EAAE,QAAQ,CAAC,CAAC;IAC/D,IAAI,aAAa,EAAE;QACjB,IAAI,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC;KAC1B;IACD,MAAM,EAAC,MAAM,EAAC,GAAG,MAAM,IAAI,CAAC,IAAI,CAAC,mBAAmB,EAAE,EAAC,IAAI,EAAC,CAAC,CAAC;IAC9D,OAAO,CAAC,MAAM,IAAI,EAAE,CAAC,CAAC,IAAI,EAAE,CAAC;AAC/B,CAAC,CAAC;AAEF,kBAAe,QAAQ,CAAC"}
|
|
@@ -3,12 +3,13 @@ declare namespace commands {
|
|
|
3
3
|
/**
|
|
4
4
|
* Retrieves the value of a Simulator environment variable
|
|
5
5
|
*
|
|
6
|
+
* @this {import('../simctl').Simctl}
|
|
6
7
|
* @param {string} varName - The name of the variable to be retrieved
|
|
7
8
|
* @returns {Promise<string|null>} The value of the variable or null if the given variable
|
|
8
9
|
* is not present in the Simulator environment
|
|
9
10
|
* @throws {Error} If there was an error while running the command
|
|
10
11
|
* @throws {Error} If the `udid` instance property is unset
|
|
11
12
|
*/
|
|
12
|
-
function getEnv(varName: string): Promise<string | null>;
|
|
13
|
+
function getEnv(this: import("../simctl").default, varName: string): Promise<string | null>;
|
|
13
14
|
}
|
|
14
15
|
//# sourceMappingURL=getenv.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getenv.d.ts","sourceRoot":"","sources":["../../../lib/subcommands/getenv.js"],"names":[],"mappings":";;IAEA
|
|
1
|
+
{"version":3,"file":"getenv.d.ts","sourceRoot":"","sources":["../../../lib/subcommands/getenv.js"],"names":[],"mappings":";;IAEA;;;;;;;;;OASG;IACH,4FAMC"}
|