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
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getenv.js","sourceRoot":"","sources":["../../../lib/subcommands/getenv.js"],"names":[],"mappings":";;AAAA,MAAM,QAAQ,GAAG,EAAE,CAAC;AAEpB
|
|
1
|
+
{"version":3,"file":"getenv.js","sourceRoot":"","sources":["../../../lib/subcommands/getenv.js"],"names":[],"mappings":";;AAAA,MAAM,QAAQ,GAAG,EAAE,CAAC;AAEpB;;;;;;;;;GASG;AACH,QAAQ,CAAC,MAAM,GAAG,KAAK,UAAU,MAAM,CAAE,OAAO;IAC9C,2DAA2D;IAC3D,qCAAqC;IACrC,MAAM,EAAC,MAAM,EAAE,MAAM,EAAC,GAAG,MAAM,IAAI,CAAC,IAAI,CAAC,QAAQ,EAAE;QACjD,IAAI,EAAE,CAAC,IAAI,CAAC,WAAW,CAAC,QAAQ,CAAC,EAAE,OAAO,CAAC;QAC3C,SAAS,EAAE,KAAK;KACjB,CAAC,CAAC;IACH,OAAO,MAAM,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,MAAM,CAAC;AAChC,CAAC,CAAC;AAEF,kBAAe,QAAQ,CAAC"}
|
|
@@ -4,12 +4,13 @@ declare namespace commands {
|
|
|
4
4
|
* Install the particular application package on Simulator.
|
|
5
5
|
* It is required that Simulator is in _booted_ state.
|
|
6
6
|
*
|
|
7
|
+
* @this {import('../simctl').Simctl}
|
|
7
8
|
* @param {string} appPath - Full path to .app package, which is
|
|
8
9
|
* going to be installed.
|
|
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 installApp(appPath: string): Promise<void>;
|
|
14
|
+
function installApp(this: import("../simctl").default, appPath: string): Promise<void>;
|
|
14
15
|
}
|
|
15
16
|
//# sourceMappingURL=install.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"install.d.ts","sourceRoot":"","sources":["../../../lib/subcommands/install.js"],"names":[],"mappings":";;IAEA
|
|
1
|
+
{"version":3,"file":"install.d.ts","sourceRoot":"","sources":["../../../lib/subcommands/install.js"],"names":[],"mappings":";;IAEA;;;;;;;;;;OAUG;IACH,uFAIC"}
|
|
@@ -5,6 +5,7 @@ const commands = {};
|
|
|
5
5
|
* Install the particular application package on Simulator.
|
|
6
6
|
* It is required that Simulator is in _booted_ state.
|
|
7
7
|
*
|
|
8
|
+
* @this {import('../simctl').Simctl}
|
|
8
9
|
* @param {string} appPath - Full path to .app package, which is
|
|
9
10
|
* going to be installed.
|
|
10
11
|
* @throws {Error} If the corresponding simctl subcommand command
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"install.js","sourceRoot":"","sources":["../../../lib/subcommands/install.js"],"names":[],"mappings":";;AAAA,MAAM,QAAQ,GAAG,EAAE,CAAC;AAEpB
|
|
1
|
+
{"version":3,"file":"install.js","sourceRoot":"","sources":["../../../lib/subcommands/install.js"],"names":[],"mappings":";;AAAA,MAAM,QAAQ,GAAG,EAAE,CAAC;AAEpB;;;;;;;;;;GAUG;AACH,QAAQ,CAAC,UAAU,GAAG,KAAK,UAAU,UAAU,CAAE,OAAO;IACtD,MAAM,IAAI,CAAC,IAAI,CAAC,SAAS,EAAE;QACzB,IAAI,EAAE,CAAC,IAAI,CAAC,WAAW,CAAC,SAAS,CAAC,EAAE,OAAO,CAAC;KAC7C,CAAC,CAAC;AACL,CAAC,CAAC;AAEF,kBAAe,QAAQ,CAAC"}
|
|
@@ -4,12 +4,13 @@ declare namespace commands {
|
|
|
4
4
|
* Gets base64 screenshot for device
|
|
5
5
|
* It is required that Simulator is in _booted_ state.
|
|
6
6
|
*
|
|
7
|
+
* @this {import('../simctl').Simctl}
|
|
7
8
|
* @since Xcode SDK 8.1
|
|
8
9
|
* @return {Promise<string>} Base64-encoded Simulator screenshot.
|
|
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 getScreenshot(): Promise<string>;
|
|
14
|
+
function getScreenshot(this: import("../simctl").default): Promise<string>;
|
|
14
15
|
}
|
|
15
16
|
//# sourceMappingURL=io.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"io.d.ts","sourceRoot":"","sources":["../../../lib/subcommands/io.js"],"names":[],"mappings":";;IAQA
|
|
1
|
+
{"version":3,"file":"io.d.ts","sourceRoot":"","sources":["../../../lib/subcommands/io.js"],"names":[],"mappings":";;IAQA;;;;;;;;;;OAUG;IACH,2EAWC"}
|
|
@@ -13,6 +13,7 @@ const commands = {};
|
|
|
13
13
|
* Gets base64 screenshot for device
|
|
14
14
|
* It is required that Simulator is in _booted_ state.
|
|
15
15
|
*
|
|
16
|
+
* @this {import('../simctl').Simctl}
|
|
16
17
|
* @since Xcode SDK 8.1
|
|
17
18
|
* @return {Promise<string>} Base64-encoded Simulator screenshot.
|
|
18
19
|
* @throws {Error} If the corresponding simctl subcommand command
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"io.js","sourceRoot":"","sources":["../../../lib/subcommands/io.js"],"names":[],"mappings":";;;;;AAAA,mCAAgC;AAChC,+BAAoC;AACpC,gDAAwB;AACxB,4CAAoB;AACpB,2DAA6B;AAE7B,MAAM,QAAQ,GAAG,EAAE,CAAC;AAEpB
|
|
1
|
+
{"version":3,"file":"io.js","sourceRoot":"","sources":["../../../lib/subcommands/io.js"],"names":[],"mappings":";;;;;AAAA,mCAAgC;AAChC,+BAAoC;AACpC,gDAAwB;AACxB,4CAAoB;AACpB,2DAA6B;AAE7B,MAAM,QAAQ,GAAG,EAAE,CAAC;AAEpB;;;;;;;;;;GAUG;AACH,QAAQ,CAAC,aAAa,GAAG,KAAK,UAAU,aAAa;IACnD,MAAM,IAAI,GAAG,IAAI,CAAC,WAAW,CAAC,eAAe,CAAC,CAAC;IAC/C,MAAM,mBAAmB,GAAG,cAAI,CAAC,OAAO,CAAC,YAAE,CAAC,MAAM,EAAE,EAAE,GAAG,IAAA,SAAM,GAAE,MAAM,CAAC,CAAC;IACzE,IAAI;QACF,MAAM,IAAI,CAAC,IAAI,CAAC,IAAI,EAAE;YACpB,IAAI,EAAE,CAAC,IAAI,EAAE,YAAY,EAAE,mBAAmB,CAAC;SAChD,CAAC,CAAC;QACH,OAAO,CAAC,MAAM,kBAAE,CAAC,QAAQ,CAAC,mBAAmB,CAAC,CAAC,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC;KACpE;YAAS;QACR,MAAM,IAAA,eAAM,EAAC,mBAAmB,CAAC,CAAC;KACnC;AACH,CAAC,CAAC;AAEF,kBAAe,QAAQ,CAAC"}
|
|
@@ -18,6 +18,7 @@ declare namespace commands {
|
|
|
18
18
|
* Adds the given certificate to the Trusted Root Store on the simulator
|
|
19
19
|
*
|
|
20
20
|
* @since Xcode 11.4 SDK
|
|
21
|
+
* @this {import('../simctl').Simctl}
|
|
21
22
|
* @param {string} cert the full path to a valid .cert file containing
|
|
22
23
|
* the certificate content or the certificate content itself, depending on
|
|
23
24
|
* options
|
|
@@ -26,11 +27,12 @@ declare namespace commands {
|
|
|
26
27
|
* or there was an error while adding the certificate
|
|
27
28
|
* @throws {Error} If the `udid` instance property is unset
|
|
28
29
|
*/
|
|
29
|
-
function addRootCertificate(cert: string, opts?: CertOptions | undefined): Promise<void>;
|
|
30
|
+
function addRootCertificate(this: import("../simctl").default, cert: string, opts?: CertOptions | undefined): Promise<void>;
|
|
30
31
|
/**
|
|
31
32
|
* Adds the given certificate to the Keychain Store on the simulator
|
|
32
33
|
*
|
|
33
34
|
* @since Xcode 11.4 SDK
|
|
35
|
+
* @this {import('../simctl').Simctl}
|
|
34
36
|
* @param {string} cert the full path to a valid .cert file containing
|
|
35
37
|
* the certificate content or the certificate content itself, depending on
|
|
36
38
|
* options
|
|
@@ -39,15 +41,16 @@ declare namespace commands {
|
|
|
39
41
|
* or there was an error while adding the certificate
|
|
40
42
|
* @throws {Error} If the `udid` instance property is unset
|
|
41
43
|
*/
|
|
42
|
-
function addCertificate(cert: string, opts?: CertOptions | undefined): Promise<void>;
|
|
44
|
+
function addCertificate(this: import("../simctl").default, cert: string, opts?: CertOptions | undefined): Promise<void>;
|
|
43
45
|
/**
|
|
44
46
|
* Resets the simulator keychain
|
|
45
47
|
*
|
|
46
48
|
* @since Xcode 11.4 SDK
|
|
49
|
+
* @this {import('../simctl').Simctl}
|
|
47
50
|
* @throws {Error} if the current SDK version does not support the command
|
|
48
51
|
* or there was an error while resetting the keychain
|
|
49
52
|
* @throws {Error} If the `udid` instance property is unset
|
|
50
53
|
*/
|
|
51
|
-
function resetKeychain(): Promise<void>;
|
|
54
|
+
function resetKeychain(this: import("../simctl").default): Promise<void>;
|
|
52
55
|
}
|
|
53
56
|
//# sourceMappingURL=keychain.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"keychain.d.ts","sourceRoot":"","sources":["../../../lib/subcommands/keychain.js"],"names":[],"mappings":";;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"keychain.d.ts","sourceRoot":"","sources":["../../../lib/subcommands/keychain.js"],"names":[],"mappings":";;;;;;;;;;IA6BA;;;;;OAKG;IAEH;;;;;;;;;;;;OAYG;IACH,4HAYC;IAED;;;;;;;;;;;;OAYG;IACH,wHAYC;IAED;;;;;;;;OAQG;IACH,yEAIC"}
|
|
@@ -10,6 +10,11 @@ const path_1 = __importDefault(require("path"));
|
|
|
10
10
|
const lodash_1 = __importDefault(require("lodash"));
|
|
11
11
|
const rimraf_1 = require("rimraf");
|
|
12
12
|
const commands = {};
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @param {string|Buffer} payload
|
|
16
|
+
* @param {(filePath: string) => Promise<any>} onPayloadStored
|
|
17
|
+
*/
|
|
13
18
|
async function handleRawPayload(payload, onPayloadStored) {
|
|
14
19
|
const filePath = path_1.default.resolve(os_1.default.tmpdir(), `${(0, uuid_1.v4)()}.pem`);
|
|
15
20
|
try {
|
|
@@ -35,6 +40,7 @@ async function handleRawPayload(payload, onPayloadStored) {
|
|
|
35
40
|
* Adds the given certificate to the Trusted Root Store on the simulator
|
|
36
41
|
*
|
|
37
42
|
* @since Xcode 11.4 SDK
|
|
43
|
+
* @this {import('../simctl').Simctl}
|
|
38
44
|
* @param {string} cert the full path to a valid .cert file containing
|
|
39
45
|
* the certificate content or the certificate content itself, depending on
|
|
40
46
|
* options
|
|
@@ -45,7 +51,7 @@ async function handleRawPayload(payload, onPayloadStored) {
|
|
|
45
51
|
*/
|
|
46
52
|
commands.addRootCertificate = async function addRootCertificate(cert, opts = {}) {
|
|
47
53
|
const { raw = false, } = opts;
|
|
48
|
-
const execMethod = async (certPath) => await this.exec('keychain', {
|
|
54
|
+
const execMethod = async (/** @type {string} */ certPath) => await this.exec('keychain', {
|
|
49
55
|
args: [this.requireUdid('keychain add-root-cert'), 'add-root-cert', certPath],
|
|
50
56
|
});
|
|
51
57
|
if (raw) {
|
|
@@ -59,6 +65,7 @@ commands.addRootCertificate = async function addRootCertificate(cert, opts = {})
|
|
|
59
65
|
* Adds the given certificate to the Keychain Store on the simulator
|
|
60
66
|
*
|
|
61
67
|
* @since Xcode 11.4 SDK
|
|
68
|
+
* @this {import('../simctl').Simctl}
|
|
62
69
|
* @param {string} cert the full path to a valid .cert file containing
|
|
63
70
|
* the certificate content or the certificate content itself, depending on
|
|
64
71
|
* options
|
|
@@ -83,6 +90,7 @@ commands.addCertificate = async function addCertificate(cert, opts = {}) {
|
|
|
83
90
|
* Resets the simulator keychain
|
|
84
91
|
*
|
|
85
92
|
* @since Xcode 11.4 SDK
|
|
93
|
+
* @this {import('../simctl').Simctl}
|
|
86
94
|
* @throws {Error} if the current SDK version does not support the command
|
|
87
95
|
* or there was an error while resetting the keychain
|
|
88
96
|
* @throws {Error} If the `udid` instance property is unset
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"keychain.js","sourceRoot":"","sources":["../../../lib/subcommands/keychain.js"],"names":[],"mappings":";;;;;AAAA,4CAAoB;AACpB,2DAA6B;AAC7B,+BAAoC;AACpC,gDAAwB;AACxB,oDAAuB;AACvB,mCAAgC;AAEhC,MAAM,QAAQ,GAAG,EAAE,CAAC;AAEpB,KAAK,UAAU,gBAAgB,CAAE,OAAO,EAAE,eAAe;IACvD,MAAM,QAAQ,GAAG,cAAI,CAAC,OAAO,CAAC,YAAE,CAAC,MAAM,EAAE,EAAE,GAAG,IAAA,SAAM,GAAE,MAAM,CAAC,CAAC;IAC9D,IAAI;QACF,IAAI,gBAAC,CAAC,QAAQ,CAAC,OAAO,CAAC,EAAE;YACvB,MAAM,kBAAE,CAAC,SAAS,CAAC,QAAQ,EAAE,OAAO,CAAC,CAAC;SACvC;aAAM;YACL,MAAM,kBAAE,CAAC,SAAS,CAAC,QAAQ,EAAE,OAAO,EAAE,MAAM,CAAC,CAAC;SAC/C;QACD,MAAM,eAAe,CAAC,QAAQ,CAAC,CAAC;KACjC;YAAS;QACR,MAAM,IAAA,eAAM,EAAC,QAA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;IACH,IAAI,GAAG,EAAE;QACP,MAAM,gBAAgB,CAAC,IAAI,EAAE,UAAU,CAAC,CAAC;KAC1C;SAAM;QACL,MAAM,UAAU,CAAC,IAAI,CAAC,CAAC;KACxB;AACH,CAAC,CAAC;AAEF;;;;;;;;;;;;GAYG;AACH,QAAQ,CAAC,cAAc,GAAG,KAAK,UAAU,cAAc,CAAE,IAAI,EAAE,IAAI,GAAG,EAAE;IACtE,MAAM,EACJ,GAAG,GAAG,KAAK,GACZ,GAAG,IAAI,CAAC;IACT,MAAM,UAAU,GAAG,KAAK,EAAE,QAAQ,EAAE,EAAE,CAAC,MAAM,IAAI,CAAC,IAAI,CAAC,UAAU,EAAE;QACjE,IAAI,EAAE,CAAC,IAAI,CAAC,WAAW,CAAC,mBAAmB,CAAC,EAAE,UAAU,EAAE,QAAQ,CAAC;KACpE,CAAC,CAAC;IACH,IAAI,GAAG,EAAE;QACP,MAAM,gBAAgB,CAAC,IAAI,EAAE,UAAU,CAAC,CAAC;KAC1C;SAAM;QACL,MAAM,UAAU,CAAC,IAAI,CAAC,CAAC;KACxB;AACH,CAAC,CAAC;AAEF;;;;;;;;GAQG;AACH,QAAQ,CAAC,aAAa,GAAG,KAAK,UAAU,aAAa;IACnD,MAAM,IAAI,CAAC,IAAI,CAAC,UAAU,EAAE;QAC1B,IAAI,EAAE,CAAC,IAAI,CAAC,WAAW,CAAC,gBAAgB,CAAC,EAAE,OAAO,CAAC;KACpD,CAAC,CAAC;AACL,CAAC,CAAC;AAEF,kBAAe,QAAQ,CAAC"}
|
|
@@ -5,6 +5,7 @@ declare namespace commands {
|
|
|
5
5
|
* It is required that Simulator is in _booted_ state and
|
|
6
6
|
* the application with given bundle identifier is already installed.
|
|
7
7
|
*
|
|
8
|
+
* @this {import('../simctl').Simctl}
|
|
8
9
|
* @param {string} bundleId - Bundle identifier of the application,
|
|
9
10
|
* which is going to be removed.
|
|
10
11
|
* @param {number} [tries=5] - The maximum number of retries before
|
|
@@ -14,6 +15,6 @@ declare namespace commands {
|
|
|
14
15
|
* returns non-zero return code.
|
|
15
16
|
* @throws {Error} If the `udid` instance property is unset
|
|
16
17
|
*/
|
|
17
|
-
function launchApp(bundleId: string, tries?: number | undefined): Promise<string>;
|
|
18
|
+
function launchApp(this: import("../simctl").default, bundleId: string, tries?: number | undefined): Promise<string>;
|
|
18
19
|
}
|
|
19
20
|
//# sourceMappingURL=launch.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"launch.d.ts","sourceRoot":"","sources":["../../../lib/subcommands/launch.js"],"names":[],"mappings":";;IAKA
|
|
1
|
+
{"version":3,"file":"launch.d.ts","sourceRoot":"","sources":["../../../lib/subcommands/launch.js"],"names":[],"mappings":";;IAKA;;;;;;;;;;;;;;OAcG;IACH,qHAUC"}
|
|
@@ -11,6 +11,7 @@ const commands = {};
|
|
|
11
11
|
* It is required that Simulator is in _booted_ state and
|
|
12
12
|
* the application with given bundle identifier is already installed.
|
|
13
13
|
*
|
|
14
|
+
* @this {import('../simctl').Simctl}
|
|
14
15
|
* @param {string} bundleId - Bundle identifier of the application,
|
|
15
16
|
* which is going to be removed.
|
|
16
17
|
* @param {number} [tries=5] - The maximum number of retries before
|
|
@@ -23,6 +24,8 @@ const commands = {};
|
|
|
23
24
|
commands.launchApp = async function launchApp(bundleId, tries = 5) {
|
|
24
25
|
// @ts-ignore A string will always be returned
|
|
25
26
|
return await (0, asyncbox_1.retryInterval)(tries, 1000, async () => {
|
|
27
|
+
/** @type {import('teen_process').TeenProcessExecResult} */
|
|
28
|
+
// @ts-ignore the returned type is ok
|
|
26
29
|
const { stdout } = await this.exec('launch', {
|
|
27
30
|
args: [this.requireUdid('launch'), bundleId],
|
|
28
31
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"launch.js","sourceRoot":"","sources":["../../../lib/subcommands/launch.js"],"names":[],"mappings":";;;;;AAAA,oDAAuB;AACvB,uCAAyC;AAEzC,MAAM,QAAQ,GAAG,EAAE,CAAC;AAEpB
|
|
1
|
+
{"version":3,"file":"launch.js","sourceRoot":"","sources":["../../../lib/subcommands/launch.js"],"names":[],"mappings":";;;;;AAAA,oDAAuB;AACvB,uCAAyC;AAEzC,MAAM,QAAQ,GAAG,EAAE,CAAC;AAEpB;;;;;;;;;;;;;;GAcG;AACH,QAAQ,CAAC,SAAS,GAAG,KAAK,UAAU,SAAS,CAAE,QAAQ,EAAE,KAAK,GAAG,CAAC;IAChE,8CAA8C;IAC9C,OAAO,MAAM,IAAA,wBAAa,EAAC,KAAK,EAAE,IAAI,EAAE,KAAK,IAAI,EAAE;QACjD,2DAA2D;QAC3D,qCAAqC;QACrC,MAAM,EAAC,MAAM,EAAC,GAAG,MAAM,IAAI,CAAC,IAAI,CAAC,QAAQ,EAAE;YACzC,IAAI,EAAE,CAAC,IAAI,CAAC,WAAW,CAAC,QAAQ,CAAC,EAAE,QAAQ,CAAC;SAC7C,CAAC,CAAC;QACH,OAAO,gBAAC,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;IACxB,CAAC,CAAC,CAAC;AACL,CAAC,CAAC;AAEF,kBAAe,QAAQ,CAAC"}
|
|
@@ -29,6 +29,7 @@ declare namespace commands {
|
|
|
29
29
|
* Parse the list of existing Simulator devices to represent
|
|
30
30
|
* it as convenient mapping.
|
|
31
31
|
*
|
|
32
|
+
* @this {import('../simctl').Simctl}
|
|
32
33
|
* @param {string?} [platform] - The platform name, for example 'watchOS'.
|
|
33
34
|
* @return {Promise<Record<string, any>>} The resulting mapping. Each key is platform version,
|
|
34
35
|
* for example '10.3' and the corresponding value is an
|
|
@@ -36,11 +37,12 @@ declare namespace commands {
|
|
|
36
37
|
* @throws {Error} If the corresponding simctl subcommand command
|
|
37
38
|
* returns non-zero return code.
|
|
38
39
|
*/
|
|
39
|
-
function getDevicesByParsing(platform?: string | null | undefined): Promise<Record<string, any>>;
|
|
40
|
+
function getDevicesByParsing(this: import("../simctl").default, platform?: string | null | undefined): Promise<Record<string, any>>;
|
|
40
41
|
/**
|
|
41
42
|
* Parse the list of existing Simulator devices to represent
|
|
42
43
|
* it as convenient mapping for the particular platform version.
|
|
43
44
|
*
|
|
45
|
+
* @this {import('../simctl').Simctl}
|
|
44
46
|
* @param {string?} [forSdk] - The sdk version,
|
|
45
47
|
* for which the devices list should be parsed,
|
|
46
48
|
* for example '10.3'.
|
|
@@ -53,37 +55,41 @@ declare namespace commands {
|
|
|
53
55
|
* returns non-zero return code or if no matching
|
|
54
56
|
* platform version is found in the system.
|
|
55
57
|
*/
|
|
56
|
-
function getDevices(forSdk?: string | null | undefined, platform?: string | null | undefined): Promise<any>;
|
|
58
|
+
function getDevices(this: import("../simctl").default, forSdk?: string | null | undefined, platform?: string | null | undefined): Promise<any>;
|
|
57
59
|
/**
|
|
58
60
|
* Get the runtime for the particular platform version using --json flag
|
|
59
61
|
*
|
|
62
|
+
* @this {import('../simctl').Simctl}
|
|
60
63
|
* @param {string} platformVersion - The platform version name,
|
|
61
64
|
* for example '10.3'.
|
|
62
65
|
* @param {string} [platform='iOS'] - The platform name, for example 'watchOS'.
|
|
63
66
|
* @return {Promise<string>} The corresponding runtime name for the given
|
|
64
67
|
* platform version.
|
|
65
68
|
*/
|
|
66
|
-
function getRuntimeForPlatformVersionViaJson(platformVersion: string, platform?: string | undefined): Promise<string>;
|
|
69
|
+
function getRuntimeForPlatformVersionViaJson(this: import("../simctl").default, platformVersion: string, platform?: string | undefined): Promise<string>;
|
|
67
70
|
/**
|
|
68
71
|
* Get the runtime for the particular platform version.
|
|
69
72
|
*
|
|
73
|
+
* @this {import('../simctl').Simctl}
|
|
70
74
|
* @param {string} platformVersion - The platform version name,
|
|
71
75
|
* for example '10.3'.
|
|
72
76
|
* @param {string} [platform='iOS'] - The platform name, for example 'watchOS'.
|
|
73
77
|
* @return {Promise<string>} The corresponding runtime name for the given
|
|
74
78
|
* platform version.
|
|
75
79
|
*/
|
|
76
|
-
function getRuntimeForPlatformVersion(platformVersion: string, platform?: string | undefined): Promise<string>;
|
|
80
|
+
function getRuntimeForPlatformVersion(this: import("../simctl").default, platformVersion: string, platform?: string | undefined): Promise<string>;
|
|
77
81
|
/**
|
|
78
82
|
* Get the list of device types available in the current Xcode installation
|
|
79
83
|
*
|
|
84
|
+
* @this {import('../simctl').Simctl}
|
|
80
85
|
* @return {Promise<string[]>} List of the types of devices available
|
|
81
86
|
* @throws {Error} If the corresponding simctl command fails
|
|
82
87
|
*/
|
|
83
|
-
function getDeviceTypes(): Promise<string[]>;
|
|
88
|
+
function getDeviceTypes(this: import("../simctl").default): Promise<string[]>;
|
|
84
89
|
/**
|
|
85
90
|
* Get the full list of runtimes, devicetypes, devices and pairs as Object
|
|
86
91
|
*
|
|
92
|
+
* @this {import('../simctl').Simctl}
|
|
87
93
|
* @return {Promise<Object>} Object containing device types, runtimes devices and pairs.
|
|
88
94
|
* The resulting JSON will be like:
|
|
89
95
|
* {
|
|
@@ -115,6 +121,6 @@ declare namespace commands {
|
|
|
115
121
|
* }
|
|
116
122
|
* @throws {Error} If the corresponding simctl command fails
|
|
117
123
|
*/
|
|
118
|
-
function list(): Promise<any>;
|
|
124
|
+
function list(this: import("../simctl").default): Promise<any>;
|
|
119
125
|
}
|
|
120
126
|
//# sourceMappingURL=list.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list.d.ts","sourceRoot":"","sources":["../../../lib/subcommands/list.js"],"names":[],"mappings":";;;;;UASc,MAAM;;;;UACN,MAAM;;;;WACN,MAAM;;;;SACN,MAAM;;;IALpB;;;;;;OAMG;IAEH
|
|
1
|
+
{"version":3,"file":"list.d.ts","sourceRoot":"","sources":["../../../lib/subcommands/list.js"],"names":[],"mappings":";;;;;UASc,MAAM;;;;UACN,MAAM;;;;WACN,MAAM;;;;SACN,MAAM;;;IALpB;;;;;;OAMG;IAEH;;;;;;;;;;;OAWG;IACH,oIA6DC;IAED;;;;;;;;;;;;;;;;OAgBG;IACH,+IAqEC;IAED;;;;;;;;;OASG;IACH,yJAcC;IAED;;;;;;;;;OASG;IACH,kJAsBC;IAED;;;;;;OAMG;IACH,8EAuBC;IAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAkCG;IACH,+DAWC"}
|
|
@@ -41,6 +41,7 @@ const commands = {};
|
|
|
41
41
|
* Parse the list of existing Simulator devices to represent
|
|
42
42
|
* it as convenient mapping.
|
|
43
43
|
*
|
|
44
|
+
* @this {import('../simctl').Simctl}
|
|
44
45
|
* @param {string?} [platform] - The platform name, for example 'watchOS'.
|
|
45
46
|
* @return {Promise<Record<string, any>>} The resulting mapping. Each key is platform version,
|
|
46
47
|
* for example '10.3' and the corresponding value is an
|
|
@@ -49,7 +50,8 @@ const commands = {};
|
|
|
49
50
|
* returns non-zero return code.
|
|
50
51
|
*/
|
|
51
52
|
commands.getDevicesByParsing = async function getDevicesByParsing(platform) {
|
|
52
|
-
|
|
53
|
+
/** @type {import('teen_process').TeenProcessExecResult} */
|
|
54
|
+
// @ts-ignore the returned type is ok
|
|
53
55
|
const { stdout } = await this.exec('list', {
|
|
54
56
|
args: ['devices'],
|
|
55
57
|
});
|
|
@@ -111,6 +113,7 @@ commands.getDevicesByParsing = async function getDevicesByParsing(platform) {
|
|
|
111
113
|
* Parse the list of existing Simulator devices to represent
|
|
112
114
|
* it as convenient mapping for the particular platform version.
|
|
113
115
|
*
|
|
116
|
+
* @this {import('../simctl').Simctl}
|
|
114
117
|
* @param {string?} [forSdk] - The sdk version,
|
|
115
118
|
* for which the devices list should be parsed,
|
|
116
119
|
* for example '10.3'.
|
|
@@ -126,6 +129,8 @@ commands.getDevicesByParsing = async function getDevicesByParsing(platform) {
|
|
|
126
129
|
commands.getDevices = async function getDevices(forSdk, platform) {
|
|
127
130
|
let devices = {};
|
|
128
131
|
try {
|
|
132
|
+
/** @type {import('teen_process').TeenProcessExecResult} */
|
|
133
|
+
// @ts-ignore the returned type is ok
|
|
129
134
|
const { stdout } = await this.exec('list', {
|
|
130
135
|
args: ['devices', '-j'],
|
|
131
136
|
});
|
|
@@ -191,6 +196,7 @@ commands.getDevices = async function getDevices(forSdk, platform) {
|
|
|
191
196
|
/**
|
|
192
197
|
* Get the runtime for the particular platform version using --json flag
|
|
193
198
|
*
|
|
199
|
+
* @this {import('../simctl').Simctl}
|
|
194
200
|
* @param {string} platformVersion - The platform version name,
|
|
195
201
|
* for example '10.3'.
|
|
196
202
|
* @param {string} [platform='iOS'] - The platform name, for example 'watchOS'.
|
|
@@ -198,6 +204,8 @@ commands.getDevices = async function getDevices(forSdk, platform) {
|
|
|
198
204
|
* platform version.
|
|
199
205
|
*/
|
|
200
206
|
commands.getRuntimeForPlatformVersionViaJson = async function getRuntimeForPlatformVersionViaJson(platformVersion, platform = 'iOS') {
|
|
207
|
+
/** @type {import('teen_process').TeenProcessExecResult} */
|
|
208
|
+
// @ts-ignore the returned type is ok
|
|
201
209
|
const { stdout } = await this.exec('list', {
|
|
202
210
|
args: ['runtimes', '--json'],
|
|
203
211
|
});
|
|
@@ -212,6 +220,7 @@ commands.getRuntimeForPlatformVersionViaJson = async function getRuntimeForPlatf
|
|
|
212
220
|
/**
|
|
213
221
|
* Get the runtime for the particular platform version.
|
|
214
222
|
*
|
|
223
|
+
* @this {import('../simctl').Simctl}
|
|
215
224
|
* @param {string} platformVersion - The platform version name,
|
|
216
225
|
* for example '10.3'.
|
|
217
226
|
* @param {string} [platform='iOS'] - The platform name, for example 'watchOS'.
|
|
@@ -221,6 +230,8 @@ commands.getRuntimeForPlatformVersionViaJson = async function getRuntimeForPlatf
|
|
|
221
230
|
commands.getRuntimeForPlatformVersion = async function getRuntimeForPlatformVersion(platformVersion, platform = 'iOS') {
|
|
222
231
|
// Try with parsing
|
|
223
232
|
try {
|
|
233
|
+
/** @type {import('teen_process').TeenProcessExecResult} */
|
|
234
|
+
// @ts-ignore The returned type is ok
|
|
224
235
|
const { stdout } = await this.exec('list', {
|
|
225
236
|
args: ['runtimes'],
|
|
226
237
|
});
|
|
@@ -240,10 +251,13 @@ commands.getRuntimeForPlatformVersion = async function getRuntimeForPlatformVers
|
|
|
240
251
|
/**
|
|
241
252
|
* Get the list of device types available in the current Xcode installation
|
|
242
253
|
*
|
|
254
|
+
* @this {import('../simctl').Simctl}
|
|
243
255
|
* @return {Promise<string[]>} List of the types of devices available
|
|
244
256
|
* @throws {Error} If the corresponding simctl command fails
|
|
245
257
|
*/
|
|
246
258
|
commands.getDeviceTypes = async function getDeviceTypes() {
|
|
259
|
+
/** @type {import('teen_process').TeenProcessExecResult} */
|
|
260
|
+
// @ts-ignore The returned type is ok
|
|
247
261
|
const { stdout } = await this.exec('list', {
|
|
248
262
|
args: ['devicetypes', '-j'],
|
|
249
263
|
});
|
|
@@ -269,6 +283,7 @@ commands.getDeviceTypes = async function getDeviceTypes() {
|
|
|
269
283
|
/**
|
|
270
284
|
* Get the full list of runtimes, devicetypes, devices and pairs as Object
|
|
271
285
|
*
|
|
286
|
+
* @this {import('../simctl').Simctl}
|
|
272
287
|
* @return {Promise<Object>} Object containing device types, runtimes devices and pairs.
|
|
273
288
|
* The resulting JSON will be like:
|
|
274
289
|
* {
|
|
@@ -301,6 +316,8 @@ commands.getDeviceTypes = async function getDeviceTypes() {
|
|
|
301
316
|
* @throws {Error} If the corresponding simctl command fails
|
|
302
317
|
*/
|
|
303
318
|
commands.list = async function list() {
|
|
319
|
+
/** @type {import('teen_process').TeenProcessExecResult} */
|
|
320
|
+
// @ts-ignore The returned type is ok
|
|
304
321
|
const { stdout } = await this.exec('list', {
|
|
305
322
|
args: ['-j'],
|
|
306
323
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list.js","sourceRoot":"","sources":["../../../lib/subcommands/list.js"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,oDAAuB;AACvB,wCAAgE;AAChE,oDAA4C;AAG5C,MAAM,QAAQ,GAAG,EAAE,CAAC;AAEpB;;;;;;GAMG;AAEH
|
|
1
|
+
{"version":3,"file":"list.js","source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cAAc;IACrD,2DAA2D;IAC3D,qCAAqC;IACrC,MAAM,EAAC,MAAM,EAAC,GAAG,MAAM,IAAI,CAAC,IAAI,CAAC,MAAM,EAAE;QACvC,IAAI,EAAE,CAAC,aAAa,EAAE,IAAI,CAAC;KAC5B,CAAC,CAAC;IACH;;;;;;;;;;OAUG;IACH,IAAI;QACF,MAAM,WAAW,GAAG,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,IAAI,EAAE,CAAC,CAAC;QAC9C,OAAO,WAAW,CAAC,WAAW,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;KACzD;IAAC,OAAO,GAAG,EAAE;QACZ,MAAM,IAAI,KAAK,CAAC,uCAAuC,GAAG,CAAC,OAAO,EAAE,CAAC,CAAC;KACvE;AACH,CAAC,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkCG;AACH,QAAQ,CAAC,IAAI,GAAG,KAAK,UAAU,IAAI;IACjC,2DAA2D;IAC3D,qCAAqC;IACrC,MAAM,EAAC,MAAM,EAAC,GAAG,MAAM,IAAI,CAAC,IAAI,CAAC,MAAM,EAAE;QACvC,IAAI,EAAE,CAAC,IAAI,CAAC;KACb,CAAC,CAAC;IACH,IAAI;QACF,OAAO,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,IAAI,EAAE,CAAC,CAAC;KAClC;IAAC,OAAO,CAAC,EAAE;QACV,MAAM,IAAI,KAAK,CAAC,gCAAgC,CAAC,CAAC,OAAO,EAAE,CAAC,CAAC;KAC9D;AACH,CAAC,CAAC;AAEF,kBAAe,QAAQ,CAAC"}
|
|
@@ -4,17 +4,20 @@ declare namespace commands {
|
|
|
4
4
|
* Set the Simulator location to a specific latitude and longitude.
|
|
5
5
|
* This functionality is only available since Xcode 14.
|
|
6
6
|
*
|
|
7
|
+
* @this {import('../simctl').Simctl}
|
|
7
8
|
* @param {string|number} latitude Location latitude value
|
|
8
9
|
* @param {string|number} longitude Location longitude value
|
|
9
10
|
* @throws {Error} If the corresponding simctl subcommand command
|
|
10
11
|
* returns non-zero return code.
|
|
11
12
|
* @throws {TypeError} If any of the arguments is not a valid value.
|
|
12
13
|
*/
|
|
13
|
-
function setLocation(latitude: string | number, longitude: string | number): Promise<void>;
|
|
14
|
+
function setLocation(this: import("../simctl").default, latitude: string | number, longitude: string | number): Promise<void>;
|
|
14
15
|
/**
|
|
15
16
|
* Stop any running scenario and clear any simulated location.
|
|
16
|
-
*
|
|
17
|
+
*
|
|
18
|
+
* @since Xcode 14.
|
|
19
|
+
* @this {import('../simctl').Simctl}
|
|
17
20
|
*/
|
|
18
|
-
function clearLocation(): Promise<void>;
|
|
21
|
+
function clearLocation(this: import("../simctl").default): Promise<void>;
|
|
19
22
|
}
|
|
20
23
|
//# sourceMappingURL=location.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"location.d.ts","sourceRoot":"","sources":["../../../lib/subcommands/location.js"],"names":[],"mappings":";;IAiBA
|
|
1
|
+
{"version":3,"file":"location.d.ts","sourceRoot":"","sources":["../../../lib/subcommands/location.js"],"names":[],"mappings":";;IAiBA;;;;;;;;;;OAUG;IACH,8HAMC;IAED;;;;;OAKG;IACH,yEAIC"}
|
|
@@ -19,6 +19,7 @@ function formatArg(name, value) {
|
|
|
19
19
|
* Set the Simulator location to a specific latitude and longitude.
|
|
20
20
|
* This functionality is only available since Xcode 14.
|
|
21
21
|
*
|
|
22
|
+
* @this {import('../simctl').Simctl}
|
|
22
23
|
* @param {string|number} latitude Location latitude value
|
|
23
24
|
* @param {string|number} longitude Location longitude value
|
|
24
25
|
* @throws {Error} If the corresponding simctl subcommand command
|
|
@@ -34,7 +35,9 @@ commands.setLocation = async function setLocation(latitude, longitude) {
|
|
|
34
35
|
};
|
|
35
36
|
/**
|
|
36
37
|
* Stop any running scenario and clear any simulated location.
|
|
37
|
-
*
|
|
38
|
+
*
|
|
39
|
+
* @since Xcode 14.
|
|
40
|
+
* @this {import('../simctl').Simctl}
|
|
38
41
|
*/
|
|
39
42
|
commands.clearLocation = async function clearLocation() {
|
|
40
43
|
await this.exec('location', {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"location.js","sourceRoot":"","sources":["../../../lib/subcommands/location.js"],"names":[],"mappings":";;AAAA,MAAM,QAAQ,GAAG,EAAE,CAAC;AAEpB;;;;;;GAMG;AACH,SAAS,SAAS,CAAE,IAAI,EAAE,KAAK;IAC7B,MAAM,GAAG,GAAG,UAAU,CAAC,GAAG,KAAK,EAAE,CAAC,CAAC;IACnC,IAAI,KAAK,CAAC,GAAG,CAAC,EAAE;QACd,MAAM,IAAI,SAAS,CAAC,GAAG,IAAI,iCAAiC,KAAK,WAAW,CAAC,CAAC;KAC/E;IACD,OAAO,GAAG,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC;AACxB,CAAC;AAED
|
|
1
|
+
{"version":3,"file":"location.js","sourceRoot":"","sources":["../../../lib/subcommands/location.js"],"names":[],"mappings":";;AAAA,MAAM,QAAQ,GAAG,EAAE,CAAC;AAEpB;;;;;;GAMG;AACH,SAAS,SAAS,CAAE,IAAI,EAAE,KAAK;IAC7B,MAAM,GAAG,GAAG,UAAU,CAAC,GAAG,KAAK,EAAE,CAAC,CAAC;IACnC,IAAI,KAAK,CAAC,GAAG,CAAC,EAAE;QACd,MAAM,IAAI,SAAS,CAAC,GAAG,IAAI,iCAAiC,KAAK,WAAW,CAAC,CAAC;KAC/E;IACD,OAAO,GAAG,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC;AACxB,CAAC;AAED;;;;;;;;;;GAUG;AACH,QAAQ,CAAC,WAAW,GAAG,KAAK,UAAU,WAAW,CAAE,QAAQ,EAAE,SAAS;IACpE,MAAM,GAAG,GAAG,SAAS,CAAC,UAAU,EAAE,QAAQ,CAAC,CAAC;IAC5C,MAAM,GAAG,GAAG,SAAS,CAAC,WAAW,EAAE,SAAS,CAAC,CAAC;IAC9C,MAAM,IAAI,CAAC,IAAI,CAAC,UAAU,EAAE;QAC1B,IAAI,EAAE,CAAC,IAAI,CAAC,WAAW,CAAC,UAAU,CAAC,EAAE,KAAK,EAAE,GAAG,GAAG,IAAI,GAAG,EAAE,CAAC;KAC7D,CAAC,CAAC;AACL,CAAC,CAAC;AAEF;;;;;GAKG;AACH,QAAQ,CAAC,aAAa,GAAG,KAAK,UAAU,aAAa;IACnD,MAAM,IAAI,CAAC,IAAI,CAAC,UAAU,EAAE;QAC1B,IAAI,EAAE,CAAC,IAAI,CAAC,WAAW,CAAC,UAAU,CAAC,EAAE,OAAO,CAAC;KAC9C,CAAC,CAAC;AACL,CAAC,CAAC;AAEF,kBAAe,QAAQ,CAAC"}
|
|
@@ -5,6 +5,7 @@ declare namespace commands {
|
|
|
5
5
|
* to find a matching application, which supports the given scheme.
|
|
6
6
|
* It is required that Simulator is in _booted_ state.
|
|
7
7
|
*
|
|
8
|
+
* @this {import('../simctl').Simctl}
|
|
8
9
|
* @param {string} url - The URL scheme to open, for example http://appiom.io
|
|
9
10
|
* will be opened by the built-in mobile browser.
|
|
10
11
|
* @return {Promise<import('teen_process').TeenProcessExecResult>} Command execution result.
|
|
@@ -12,6 +13,6 @@ declare namespace commands {
|
|
|
12
13
|
* returns non-zero return code.
|
|
13
14
|
* @throws {Error} If the `udid` instance property is unset
|
|
14
15
|
*/
|
|
15
|
-
function openUrl(url: string): Promise<import("teen_process").TeenProcessExecResult<any>>;
|
|
16
|
+
function openUrl(this: import("../simctl").default, url: string): Promise<import("teen_process").TeenProcessExecResult<any>>;
|
|
16
17
|
}
|
|
17
18
|
//# sourceMappingURL=openurl.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"openurl.d.ts","sourceRoot":"","sources":["../../../lib/subcommands/openurl.js"],"names":[],"mappings":";;IAEA
|
|
1
|
+
{"version":3,"file":"openurl.d.ts","sourceRoot":"","sources":["../../../lib/subcommands/openurl.js"],"names":[],"mappings":";;IAEA;;;;;;;;;;;;OAYG;IACH,6HAMC"}
|
|
@@ -6,6 +6,7 @@ const commands = {};
|
|
|
6
6
|
* to find a matching application, which supports the given scheme.
|
|
7
7
|
* It is required that Simulator is in _booted_ state.
|
|
8
8
|
*
|
|
9
|
+
* @this {import('../simctl').Simctl}
|
|
9
10
|
* @param {string} url - The URL scheme to open, for example http://appiom.io
|
|
10
11
|
* will be opened by the built-in mobile browser.
|
|
11
12
|
* @return {Promise<import('teen_process').TeenProcessExecResult>} Command execution result.
|
|
@@ -14,6 +15,8 @@ const commands = {};
|
|
|
14
15
|
* @throws {Error} If the `udid` instance property is unset
|
|
15
16
|
*/
|
|
16
17
|
commands.openUrl = async function openUrl(url) {
|
|
18
|
+
/** @type {import('teen_process').TeenProcessExecResult} */
|
|
19
|
+
// @ts-ignore The returned type is ok
|
|
17
20
|
return await this.exec('openurl', {
|
|
18
21
|
args: [this.requireUdid('openurl'), url],
|
|
19
22
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"openurl.js","sourceRoot":"","sources":["../../../lib/subcommands/openurl.js"],"names":[],"mappings":";;AAAA,MAAM,QAAQ,GAAG,EAAE,CAAC;AAEpB
|
|
1
|
+
{"version":3,"file":"openurl.js","sourceRoot":"","sources":["../../../lib/subcommands/openurl.js"],"names":[],"mappings":";;AAAA,MAAM,QAAQ,GAAG,EAAE,CAAC;AAEpB;;;;;;;;;;;;GAYG;AACH,QAAQ,CAAC,OAAO,GAAG,KAAK,UAAU,OAAO,CAAE,GAAG;IAC5C,2DAA2D;IAC3D,qCAAqC;IACrC,OAAO,MAAM,IAAI,CAAC,IAAI,CAAC,SAAS,EAAE;QAChC,IAAI,EAAE,CAAC,IAAI,CAAC,WAAW,CAAC,SAAS,CAAC,EAAE,GAAG,CAAC;KACzC,CAAC,CAAC;AACL,CAAC,CAAC;AAEF,kBAAe,QAAQ,CAAC"}
|
|
@@ -5,13 +5,14 @@ declare namespace commands {
|
|
|
5
5
|
* It is required that Simulator is in _booted_ state.
|
|
6
6
|
*
|
|
7
7
|
* @since Xcode SDK 8.1
|
|
8
|
+
* @this {import('../simctl').Simctl}
|
|
8
9
|
* @param {string} content - The actual string content to be set.
|
|
9
|
-
* @param {
|
|
10
|
-
*
|
|
10
|
+
* @param {BufferEncoding} [encoding='utf8'] - The encoding of the given pasteboard content.
|
|
11
|
+
* utf8 by default.
|
|
11
12
|
* @throws {Error} If the corresponding simctl subcommand command
|
|
12
13
|
* returns non-zero return code.
|
|
13
14
|
* @throws {Error} If the `udid` instance property is unset
|
|
14
15
|
*/
|
|
15
|
-
function setPasteboard(content: string, encoding?:
|
|
16
|
+
function setPasteboard(this: import("../simctl").default, content: string, encoding?: BufferEncoding | undefined): Promise<void>;
|
|
16
17
|
}
|
|
17
18
|
//# sourceMappingURL=pbcopy.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pbcopy.d.ts","sourceRoot":"","sources":["../../../lib/subcommands/pbcopy.js"],"names":[],"mappings":";;IAEA
|
|
1
|
+
{"version":3,"file":"pbcopy.d.ts","sourceRoot":"","sources":["../../../lib/subcommands/pbcopy.js"],"names":[],"mappings":";;IAEA;;;;;;;;;;;;OAYG;IACH,iIAgBC"}
|
|
@@ -6,24 +6,29 @@ const commands = {};
|
|
|
6
6
|
* It is required that Simulator is in _booted_ state.
|
|
7
7
|
*
|
|
8
8
|
* @since Xcode SDK 8.1
|
|
9
|
+
* @this {import('../simctl').Simctl}
|
|
9
10
|
* @param {string} content - The actual string content to be set.
|
|
10
|
-
* @param {
|
|
11
|
-
*
|
|
11
|
+
* @param {BufferEncoding} [encoding='utf8'] - The encoding of the given pasteboard content.
|
|
12
|
+
* utf8 by default.
|
|
12
13
|
* @throws {Error} If the corresponding simctl subcommand command
|
|
13
14
|
* returns non-zero return code.
|
|
14
15
|
* @throws {Error} If the `udid` instance property is unset
|
|
15
16
|
*/
|
|
16
17
|
commands.setPasteboard = async function setPasteboard(content, encoding = 'utf8') {
|
|
18
|
+
/** @type {import('teen_process').SubProcess} */
|
|
19
|
+
// @ts-ignore The returned type is ok
|
|
17
20
|
const pbCopySubprocess = await this.exec('pbcopy', {
|
|
18
21
|
args: [this.requireUdid('pbcopy')],
|
|
19
22
|
asynchronous: true,
|
|
20
23
|
});
|
|
21
24
|
await pbCopySubprocess.start(0);
|
|
22
25
|
const exitCodeVerifier = pbCopySubprocess.join();
|
|
23
|
-
const stdin = pbCopySubprocess.proc
|
|
24
|
-
stdin
|
|
25
|
-
|
|
26
|
-
|
|
26
|
+
const stdin = pbCopySubprocess.proc?.stdin;
|
|
27
|
+
if (stdin) {
|
|
28
|
+
stdin.setDefaultEncoding(encoding);
|
|
29
|
+
stdin.write(content);
|
|
30
|
+
stdin.end();
|
|
31
|
+
}
|
|
27
32
|
await exitCodeVerifier;
|
|
28
33
|
};
|
|
29
34
|
exports.default = commands;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pbcopy.js","sourceRoot":"","sources":["../../../lib/subcommands/pbcopy.js"],"names":[],"mappings":";;AAAA,MAAM,QAAQ,GAAG,EAAE,CAAC;AAEpB
|
|
1
|
+
{"version":3,"file":"pbcopy.js","sourceRoot":"","sources":["../../../lib/subcommands/pbcopy.js"],"names":[],"mappings":";;AAAA,MAAM,QAAQ,GAAG,EAAE,CAAC;AAEpB;;;;;;;;;;;;GAYG;AACH,QAAQ,CAAC,aAAa,GAAG,KAAK,UAAU,aAAa,CAAE,OAAO,EAAE,QAAQ,GAAG,MAAM;IAC/E,gDAAgD;IAChD,qCAAqC;IACrC,MAAM,gBAAgB,GAAG,MAAM,IAAI,CAAC,IAAI,CAAC,QAAQ,EAAE;QACjD,IAAI,EAAE,CAAC,IAAI,CAAC,WAAW,CAAC,QAAQ,CAAC,CAAC;QAClC,YAAY,EAAE,IAAI;KACnB,CAAC,CAAC;IACH,MAAM,gBAAgB,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;IAChC,MAAM,gBAAgB,GAAG,gBAAgB,CAAC,IAAI,EAAE,CAAC;IACjD,MAAM,KAAK,GAAG,gBAAgB,CAAC,IAAI,EAAE,KAAK,CAAC;IAC3C,IAAI,KAAK,EAAE;QACT,KAAK,CAAC,kBAAkB,CAAC,QAAQ,CAAC,CAAC;QACnC,KAAK,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC;QACrB,KAAK,CAAC,GAAG,EAAE,CAAC;KACb;IACD,MAAM,gBAAgB,CAAC;AACzB,CAAC,CAAC;AAEF,kBAAe,QAAQ,CAAC"}
|