node-simctl 7.3.4 → 7.3.6
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 +15 -0
- package/build/lib/simctl.d.ts +46 -1
- package/build/lib/simctl.d.ts.map +1 -1
- package/build/lib/simctl.js +69 -5
- 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 +3 -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 +3 -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 +3 -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 +3 -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 +2 -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 +3 -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 +3 -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 +18 -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 +3 -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 +11 -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 +3 -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 +6 -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 +4 -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 +92 -5
- package/lib/subcommands/addmedia.js +3 -0
- package/lib/subcommands/appinfo.js +3 -0
- package/lib/subcommands/boot.js +1 -0
- package/lib/subcommands/bootstatus.js +3 -0
- package/lib/subcommands/create.js +3 -0
- package/lib/subcommands/delete.js +1 -0
- package/lib/subcommands/erase.js +1 -0
- package/lib/subcommands/get_app_container.js +2 -0
- package/lib/subcommands/getenv.js +3 -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 +3 -0
- package/lib/subcommands/list.js +18 -1
- package/lib/subcommands/location.js +4 -1
- package/lib/subcommands/openurl.js +3 -0
- package/lib/subcommands/pbcopy.js +11 -6
- package/lib/subcommands/pbpaste.js +3 -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 +6 -0
- package/lib/subcommands/terminate.js +1 -0
- package/lib/subcommands/ui.js +4 -0
- package/lib/subcommands/uninstall.js +1 -0
- package/package.json +3 -3
- 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,18 @@
|
|
|
1
|
+
## [7.3.6](https://github.com/appium/node-simctl/compare/v7.3.5...v7.3.6) (2023-09-21)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Miscellaneous Chores
|
|
5
|
+
|
|
6
|
+
* Import all mixin methods explicitly ([#205](https://github.com/appium/node-simctl/issues/205)) ([c691f20](https://github.com/appium/node-simctl/commit/c691f20ef4d843349b3c8ae0847b0a0d896482a0))
|
|
7
|
+
|
|
8
|
+
## [7.3.5](https://github.com/appium/node-simctl/compare/v7.3.4...v7.3.5) (2023-09-14)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Miscellaneous Chores
|
|
12
|
+
|
|
13
|
+
* **deps-dev:** bump @types/teen_process from 2.0.0 to 2.0.1 ([#201](https://github.com/appium/node-simctl/issues/201)) ([24b224c](https://github.com/appium/node-simctl/commit/24b224cec5124990f5098f474bbffc4749830776))
|
|
14
|
+
* **deps-dev:** bump sinon from 15.2.0 to 16.0.0 ([#202](https://github.com/appium/node-simctl/issues/202)) ([e436b63](https://github.com/appium/node-simctl/commit/e436b632962a87cdea543e1395bd83307dd2427f))
|
|
15
|
+
|
|
1
16
|
## [7.3.4](https://github.com/appium/node-simctl/compare/v7.3.3...v7.3.4) (2023-09-01)
|
|
2
17
|
|
|
3
18
|
|
package/build/lib/simctl.d.ts
CHANGED
|
@@ -125,7 +125,14 @@ export class Simctl {
|
|
|
125
125
|
get udid(): string | null;
|
|
126
126
|
set devicesSetPath(arg: string | null);
|
|
127
127
|
get devicesSetPath(): string | null;
|
|
128
|
-
|
|
128
|
+
/**
|
|
129
|
+
* @param {string?} [commandName=null]
|
|
130
|
+
* @returns {string}
|
|
131
|
+
*/
|
|
132
|
+
requireUdid(commandName?: string | null | undefined): string;
|
|
133
|
+
/**
|
|
134
|
+
* @returns {Promise<string>}
|
|
135
|
+
*/
|
|
129
136
|
requireXcrun(): Promise<string>;
|
|
130
137
|
/**
|
|
131
138
|
* Execute the particular simctl command.
|
|
@@ -139,5 +146,43 @@ export class Simctl {
|
|
|
139
146
|
* @throws {Error} If the simctl subcommand command returns non-zero return code.
|
|
140
147
|
*/
|
|
141
148
|
exec(subcommand: string, opts?: ExecOpts | undefined): Promise<import("teen_process").TeenProcessExecResult<any> | import('teen_process').SubProcess>;
|
|
149
|
+
addMedia: (this: Simctl, filePath: string) => Promise<import("teen_process").TeenProcessExecResult<any>>;
|
|
150
|
+
appInfo: (this: Simctl, bundleId: string) => Promise<string>;
|
|
151
|
+
bootDevice: (this: Simctl) => Promise<void>;
|
|
152
|
+
startBootMonitor: (this: Simctl, opts?: import("./subcommands/bootstatus").BootMonitorOptions | undefined) => Promise<SubProcess>;
|
|
153
|
+
createDevice: (this: Simctl, name: string, deviceTypeId: string, platformVersion: string, opts?: import("./subcommands/create").SimCreationOpts | undefined) => Promise<string>;
|
|
154
|
+
deleteDevice: (this: Simctl) => Promise<void>;
|
|
155
|
+
eraseDevice: (this: Simctl, timeout?: number | undefined) => Promise<void>;
|
|
156
|
+
getAppContainer: (this: Simctl, bundleId: string, containerType?: string | null | undefined) => Promise<string>;
|
|
157
|
+
getEnv: (this: Simctl, varName: string) => Promise<string | null>;
|
|
158
|
+
installApp: (this: Simctl, appPath: string) => Promise<void>;
|
|
159
|
+
getScreenshot: (this: Simctl) => Promise<string>;
|
|
160
|
+
addRootCertificate: (this: Simctl, cert: string, opts?: import("./subcommands/keychain").CertOptions | undefined) => Promise<void>;
|
|
161
|
+
addCertificate: (this: Simctl, cert: string, opts?: import("./subcommands/keychain").CertOptions | undefined) => Promise<void>;
|
|
162
|
+
resetKeychain: (this: Simctl) => Promise<void>;
|
|
163
|
+
launchApp: (this: Simctl, bundleId: string, tries?: number | undefined) => Promise<string>;
|
|
164
|
+
getDevicesByParsing: (this: Simctl, platform?: string | null | undefined) => Promise<Record<string, any>>;
|
|
165
|
+
getDevices: (this: Simctl, forSdk?: string | null | undefined, platform?: string | null | undefined) => Promise<any>;
|
|
166
|
+
getRuntimeForPlatformVersionViaJson: (this: Simctl, platformVersion: string, platform?: string | undefined) => Promise<string>;
|
|
167
|
+
getRuntimeForPlatformVersion: (this: Simctl, platformVersion: string, platform?: string | undefined) => Promise<string>;
|
|
168
|
+
getDeviceTypes: (this: Simctl) => Promise<string[]>;
|
|
169
|
+
list: (this: Simctl) => Promise<any>;
|
|
170
|
+
setLocation: (this: Simctl, latitude: string | number, longitude: string | number) => Promise<void>;
|
|
171
|
+
clearLocation: (this: Simctl) => Promise<void>;
|
|
172
|
+
openUrl: (this: Simctl, url: string) => Promise<import("teen_process").TeenProcessExecResult<any>>;
|
|
173
|
+
setPasteboard: (this: Simctl, content: string, encoding?: BufferEncoding | undefined) => Promise<void>;
|
|
174
|
+
getPasteboard: (this: Simctl, encoding?: string | undefined) => Promise<string>;
|
|
175
|
+
grantPermission: (this: Simctl, bundleId: string, perm: string) => Promise<void>;
|
|
176
|
+
revokePermission: (this: Simctl, bundleId: string, perm: string) => Promise<void>;
|
|
177
|
+
resetPermission: (this: Simctl, bundleId: string, perm: string) => Promise<void>;
|
|
178
|
+
pushNotification: (this: Simctl, payload: any) => Promise<void>;
|
|
179
|
+
shutdownDevice: (this: Simctl) => Promise<void>;
|
|
180
|
+
spawnProcess: (this: Simctl, args: string | string[], env?: any) => Promise<import("teen_process").TeenProcessExecResult<any>>;
|
|
181
|
+
spawnSubProcess: (this: Simctl, args: string | string[], env?: any) => Promise<SubProcess>;
|
|
182
|
+
terminateApp: (this: Simctl, bundleId: string) => Promise<void>;
|
|
183
|
+
getAppearance: (this: Simctl) => Promise<string>;
|
|
184
|
+
setAppearance: (this: Simctl, appearance: string) => Promise<void>;
|
|
185
|
+
removeApp: (this: Simctl, bundleId: string) => Promise<void>;
|
|
142
186
|
}
|
|
187
|
+
import { SubProcess } from 'teen_process';
|
|
143
188
|
//# 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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAFpB;;;GAGG;AAEH;;;;;;;;;;;;;;GAcG;AAGH;;;;;;;;;;;;;;;;;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;;;;;;;;;;OAUG;IACH,iBARW,MAAM,gCAGL,QAAQ,oDAA6C,OAAO,cAAc,EAAE,UAAU,CAAC,CA4DlG;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;2BArR0C,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: {
|
|
@@ -83,6 +107,43 @@ class Simctl {
|
|
|
83
107
|
* @param {SimctlOpts} [opts={}]
|
|
84
108
|
*/
|
|
85
109
|
constructor(opts = {}) {
|
|
110
|
+
this.addMedia = addmedia_1.default.addMedia;
|
|
111
|
+
this.appInfo = appinfo_1.default.appInfo;
|
|
112
|
+
this.bootDevice = boot_1.default.bootDevice;
|
|
113
|
+
this.startBootMonitor = bootstatus_1.default.startBootMonitor;
|
|
114
|
+
this.createDevice = create_1.default.createDevice;
|
|
115
|
+
this.deleteDevice = delete_1.default.deleteDevice;
|
|
116
|
+
this.eraseDevice = erase_1.default.eraseDevice;
|
|
117
|
+
this.getAppContainer = get_app_container_1.default.getAppContainer;
|
|
118
|
+
this.getEnv = getenv_1.default.getEnv;
|
|
119
|
+
this.installApp = install_1.default.installApp;
|
|
120
|
+
this.getScreenshot = io_1.default.getScreenshot;
|
|
121
|
+
this.addRootCertificate = keychain_1.default.addRootCertificate;
|
|
122
|
+
this.addCertificate = keychain_1.default.addCertificate;
|
|
123
|
+
this.resetKeychain = keychain_1.default.resetKeychain;
|
|
124
|
+
this.launchApp = launch_1.default.launchApp;
|
|
125
|
+
this.getDevicesByParsing = list_1.default.getDevicesByParsing;
|
|
126
|
+
this.getDevices = list_1.default.getDevices;
|
|
127
|
+
this.getRuntimeForPlatformVersionViaJson = list_1.default.getRuntimeForPlatformVersionViaJson;
|
|
128
|
+
this.getRuntimeForPlatformVersion = list_1.default.getRuntimeForPlatformVersion;
|
|
129
|
+
this.getDeviceTypes = list_1.default.getDeviceTypes;
|
|
130
|
+
this.list = list_1.default.list;
|
|
131
|
+
this.setLocation = location_1.default.setLocation;
|
|
132
|
+
this.clearLocation = location_1.default.clearLocation;
|
|
133
|
+
this.openUrl = openurl_1.default.openUrl;
|
|
134
|
+
this.setPasteboard = pbcopy_1.default.setPasteboard;
|
|
135
|
+
this.getPasteboard = pbpaste_1.default.getPasteboard;
|
|
136
|
+
this.grantPermission = privacy_1.default.grantPermission;
|
|
137
|
+
this.revokePermission = privacy_1.default.revokePermission;
|
|
138
|
+
this.resetPermission = privacy_1.default.resetPermission;
|
|
139
|
+
this.pushNotification = push_1.default.pushNotification;
|
|
140
|
+
this.shutdownDevice = shutdown_1.default.shutdownDevice;
|
|
141
|
+
this.spawnProcess = spawn_1.default.spawnProcess;
|
|
142
|
+
this.spawnSubProcess = spawn_1.default.spawnSubProcess;
|
|
143
|
+
this.terminateApp = terminate_1.default.terminateApp;
|
|
144
|
+
this.getAppearance = ui_1.default.getAppearance;
|
|
145
|
+
this.setAppearance = ui_1.default.setAppearance;
|
|
146
|
+
this.removeApp = uninstall_1.default.removeApp;
|
|
86
147
|
opts = lodash_1.default.cloneDeep(opts);
|
|
87
148
|
lodash_1.default.defaultsDeep(opts, DEFAULT_OPTS);
|
|
88
149
|
for (const key of lodash_1.default.keys(DEFAULT_OPTS)) {
|
|
@@ -105,6 +166,10 @@ class Simctl {
|
|
|
105
166
|
get devicesSetPath() {
|
|
106
167
|
return this._devicesSetPath;
|
|
107
168
|
}
|
|
169
|
+
/**
|
|
170
|
+
* @param {string?} [commandName=null]
|
|
171
|
+
* @returns {string}
|
|
172
|
+
*/
|
|
108
173
|
requireUdid(commandName = null) {
|
|
109
174
|
if (!this.udid) {
|
|
110
175
|
throw new Error(`udid is required to be set for ` +
|
|
@@ -112,6 +177,9 @@ class Simctl {
|
|
|
112
177
|
}
|
|
113
178
|
return this.udid;
|
|
114
179
|
}
|
|
180
|
+
/**
|
|
181
|
+
* @returns {Promise<string>}
|
|
182
|
+
*/
|
|
115
183
|
async requireXcrun() {
|
|
116
184
|
const xcrunBinary = (0, helpers_1.getXcrunBinary)();
|
|
117
185
|
if (!this.xcrun.path) {
|
|
@@ -183,9 +251,5 @@ class Simctl {
|
|
|
183
251
|
}
|
|
184
252
|
}
|
|
185
253
|
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
254
|
exports.default = Simctl;
|
|
191
255
|
//# 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":[],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;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,mIAMC"}
|
|
@@ -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.
|
|
@@ -13,6 +14,8 @@ const commands = {};
|
|
|
13
14
|
* @throws {Error} If the `udid` instance property is unset
|
|
14
15
|
*/
|
|
15
16
|
commands.addMedia = async function addMedia(filePath) {
|
|
17
|
+
/** @type {import('teen_process').TeenProcessExecResult} */
|
|
18
|
+
// @ts-ignore The returned type is ok
|
|
16
19
|
return await this.exec('addmedia', {
|
|
17
20
|
args: [this.requireUdid('addmedia'), filePath],
|
|
18
21
|
});
|
|
@@ -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,2DAA2D;IAC3D,qCAAqC;IACrC,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,uFAOC"}
|
|
@@ -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
|
*
|
|
@@ -42,6 +43,8 @@ const commands = {};
|
|
|
42
43
|
* @throws {Error} If the `udid` instance property is unset
|
|
43
44
|
*/
|
|
44
45
|
commands.appInfo = async function appInfo(bundleId) {
|
|
46
|
+
/** @type {import('teen_process').TeenProcessExecResult} */
|
|
47
|
+
// @ts-ignore The returned type is ok
|
|
45
48
|
const { stdout } = await this.exec('appinfo', {
|
|
46
49
|
args: [this.requireUdid('appinfo'), bundleId],
|
|
47
50
|
});
|
|
@@ -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,2DAA2D;IAC3D,qCAAqC;IACrC,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,gJAkFC"}
|
|
@@ -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
|
|
@@ -40,6 +41,8 @@ commands.startBootMonitor = async function startBootMonitor(opts = {}) {
|
|
|
40
41
|
if (shouldPreboot) {
|
|
41
42
|
args.push('-b');
|
|
42
43
|
}
|
|
44
|
+
/** @type {import('teen_process').SubProcess} */
|
|
45
|
+
// @ts-ignore The returned type is ok
|
|
43
46
|
const bootMonitor = await this.exec('bootstatus', {
|
|
44
47
|
args,
|
|
45
48
|
asynchronous: true,
|
|
@@ -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":[],"mappings":";;;;;AAAA,uDAA4B;AAC5B,uCAA4C;AAG5C,MAAM,QAAQ,GAAG,EAAE,CAAC;AAEpB;;;;;;;;;;GAUG;AAEH;;;;;;;;;;;;GAYG;AACH,QAAQ,CAAC,gBAAgB,GAAG,KAAK,UAAU,gBAAgB,CAAE,IAAI,GAAG,EAAE;IACpE,MAAM,EACJ,OAAO,GAAG,MAAM,EAChB,sBAAsB,EACtB,kBAAkB,EAClB,UAAU,EACV,OAAO,EACP,aAAa,GACd,GAAG,IAAI,CAAC;IACT,MAAM,IAAI,GAAG,IAAI,CAAC,WAAW,CAAC,YAAY,CAAC,CAAC;IAE5C,IAAI,MAAM,GAAG,EAAE,CAAC;IAChB,IAAI,iBAAiB,GAAG,KAAK,CAAC;IAC9B,IAAI,KAAK,GAAG,IAAI,CAAC;IACjB,IAAI,cAAc,GAAG,IAAI,CAAC;IAC1B,MAAM,IAAI,GAAG,CAAC,IAAI,CAAC,CAAC;IACpB,IAAI,aAAa,EAAE;QACjB,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;KACjB;IACD,gDAAgD;IAChD,qCAAqC;IACrC,MAAM,WAAW,GAAG,MAAM,IAAI,CAAC,IAAI,CAAC,YAAY,EAAE;QAChD,IAAI;QACJ,YAAY,EAAE,IAAI;KACnB,CAAC,CAAC;IACH,WAAW,CAAC,EAAE,CAAC,QAAQ,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,EAAE;QAC1C,MAAM,IAAI,MAAM,IAAI,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BAAgB,EAAC,GAAG,EAAE;gBAC1B,IAAI,KAAK,EAAE;oBACT,MAAM,KAAK,CAAC;iBACb;gBACD,OAAO,iBAAiB,CAAC;YAC3B,CAAC,EAAE,EAAC,MAAM,EAAE,OAAO,EAAE,UAAU,EAAE,GAAG,EAAC,CAAC,CAAC;SACxC;QAAC,OAAO,GAAG,EAAE;YACZ,MAAM,WAAW,EAAE,CAAC;YACpB,MAAM,CAAC,OAAO,CAAC,GAAG,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;YACxC,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,2KAsFC"}
|
|
@@ -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'.
|
|
@@ -86,6 +87,8 @@ commands.createDevice = async function createDevice(name, deviceTypeId, platform
|
|
|
86
87
|
for (const runtimeId of runtimeIds) {
|
|
87
88
|
logger_1.default.debug(logger_1.LOG_PREFIX, `Creating simulator with name '${name}', device type id '${deviceTypeId}' and runtime id '${runtimeId}'`);
|
|
88
89
|
try {
|
|
90
|
+
/** @type {import('teen_process').TeenProcessExecResult} */
|
|
91
|
+
// @ts-ignore The returned type is ok
|
|
89
92
|
const { stdout } = await this.exec('create', {
|
|
90
93
|
args: [name, deviceTypeId, runtimeId]
|
|
91
94
|
});
|
|
@@ -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":";;;;;;;;;;;;;;;;;;;;;;;;;;;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C,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,0IAQC"}
|
|
@@ -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>'.
|
|
@@ -23,6 +24,7 @@ commands.getAppContainer = async function getAppContainer(bundleId, containerTyp
|
|
|
23
24
|
if (containerType) {
|
|
24
25
|
args.push(containerType);
|
|
25
26
|
}
|
|
27
|
+
// @ts-ignore The returned type is ok
|
|
26
28
|
const { stdout } = await this.exec('get_app_container', { args });
|
|
27
29
|
return (stdout || '').trim();
|
|
28
30
|
};
|
|
@@ -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,qCAAqC;IACrC,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,4FAQC"}
|
|
@@ -4,6 +4,7 @@ const commands = {};
|
|
|
4
4
|
/**
|
|
5
5
|
* Retrieves the value of a Simulator environment variable
|
|
6
6
|
*
|
|
7
|
+
* @this {import('../simctl').Simctl}
|
|
7
8
|
* @param {string} varName - The name of the variable to be retrieved
|
|
8
9
|
* @returns {Promise<string|null>} The value of the variable or null if the given variable
|
|
9
10
|
* is not present in the Simulator environment
|
|
@@ -11,6 +12,8 @@ const commands = {};
|
|
|
11
12
|
* @throws {Error} If the `udid` instance property is unset
|
|
12
13
|
*/
|
|
13
14
|
commands.getEnv = async function getEnv(varName) {
|
|
15
|
+
/** @type {import('teen_process').TeenProcessExecResult} */
|
|
16
|
+
// @ts-ignore the returned type is ok
|
|
14
17
|
const { stdout, stderr } = await this.exec('getenv', {
|
|
15
18
|
args: [this.requireUdid('getenv'), varName],
|
|
16
19
|
logErrors: false,
|