@swmansion/argent 0.27.1-next.11 → 0.27.1-next.12
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/dist/cli-cmds.mjs +1 -1
- package/dist/installer.mjs +1 -1
- package/dist/tool-args.generated.d.ts +2 -2
- package/dist/tool-server.cjs +19 -6
- package/package.json +1 -1
package/dist/cli-cmds.mjs
CHANGED
|
@@ -21916,7 +21916,7 @@ var _CI_VENDOR_COUNT_FOR_TEST = vendors_default.length;
|
|
|
21916
21916
|
var SESSION_ID2 = randomUUID5();
|
|
21917
21917
|
function readCliVersion() {
|
|
21918
21918
|
if (true) {
|
|
21919
|
-
return "0.27.1-next.
|
|
21919
|
+
return "0.27.1-next.12";
|
|
21920
21920
|
}
|
|
21921
21921
|
return "0.0.0";
|
|
21922
21922
|
}
|
package/dist/installer.mjs
CHANGED
|
@@ -16730,7 +16730,7 @@ var _CI_VENDOR_COUNT_FOR_TEST = vendors_default.length;
|
|
|
16730
16730
|
var SESSION_ID = randomUUID4();
|
|
16731
16731
|
function readCliVersion() {
|
|
16732
16732
|
if (true) {
|
|
16733
|
-
return "0.27.1-next.
|
|
16733
|
+
return "0.27.1-next.12";
|
|
16734
16734
|
}
|
|
16735
16735
|
return "0.0.0";
|
|
16736
16736
|
}
|
|
@@ -406,7 +406,7 @@ export interface ArgentToolArgs {
|
|
|
406
406
|
bundleId: string;
|
|
407
407
|
/** Android-only: fully-qualified Activity name (e.g. `.MainActivity` or `com.example/com.example.MainActivity`). If omitted on Android, the app's default launcher activity is used. Ignored on iOS / Chromium. */
|
|
408
408
|
activity?: string;
|
|
409
|
-
/** Apple simulators
|
|
409
|
+
/** Apple simulators and physical iPhones: arguments passed to the app process at launch, e.g. `["-FeatureFlag", "YES"]` to override UserDefaults. A running app is relaunched to apply them. Ignored on other targets. */
|
|
410
410
|
launchArgs?: Array<string>;
|
|
411
411
|
};
|
|
412
412
|
"list-devices": Record<string, never>;
|
|
@@ -749,7 +749,7 @@ export interface ArgentToolArgs {
|
|
|
749
749
|
bundleId: string;
|
|
750
750
|
/** Android-only: relaunch a non-launcher Activity (e.g. `.SettingsActivity` or `com.example/com.example.SettingsActivity`). If omitted, the app's default launcher activity is used. Ignored on iOS. */
|
|
751
751
|
activity?: string;
|
|
752
|
-
/** Apple simulators
|
|
752
|
+
/** Apple simulators and physical iPhones: arguments passed to the app process at launch, e.g. `["-FeatureFlag", "YES"]` to override UserDefaults. Ignored on other targets. */
|
|
753
753
|
launchArgs?: Array<string>;
|
|
754
754
|
};
|
|
755
755
|
rotate: {
|
package/dist/tool-server.cjs
CHANGED
|
@@ -94814,7 +94814,7 @@ var _CI_VENDOR_COUNT_FOR_TEST = vendors_default.length;
|
|
|
94814
94814
|
var SESSION_ID = (0, import_node_crypto3.randomUUID)();
|
|
94815
94815
|
function readCliVersion() {
|
|
94816
94816
|
if (true) {
|
|
94817
|
-
return "0.27.1-next.
|
|
94817
|
+
return "0.27.1-next.12";
|
|
94818
94818
|
}
|
|
94819
94819
|
return "0.0.0";
|
|
94820
94820
|
}
|
|
@@ -109190,6 +109190,9 @@ async function launchApp(udid, bundleId, opts = {}) {
|
|
|
109190
109190
|
args.push("--payload-url", opts.payloadUrl);
|
|
109191
109191
|
}
|
|
109192
109192
|
args.push(bundleId);
|
|
109193
|
+
if (opts.args?.length) {
|
|
109194
|
+
args.push("--", ...opts.args);
|
|
109195
|
+
}
|
|
109193
109196
|
await runDevicectl(args, `launch ${bundleId}`, { bundleId });
|
|
109194
109197
|
}
|
|
109195
109198
|
async function deviceInfoDetails(udid, opts = {}) {
|
|
@@ -122280,9 +122283,16 @@ async function signingUnreadyNote() {
|
|
|
122280
122283
|
var iosDeviceImpl = {
|
|
122281
122284
|
requires: ["xcrun"],
|
|
122282
122285
|
handler: async (_services, params) => {
|
|
122286
|
+
const launchArgs = params.launchArgs?.length ? params.launchArgs : void 0;
|
|
122287
|
+
const systemUi = isSessionOnlySystemUi(params.bundleId);
|
|
122288
|
+
if (systemUi && launchArgs) {
|
|
122289
|
+
throw new InvalidToolInputError(
|
|
122290
|
+
`${params.bundleId} is system UI: it is always running and cannot take launch arguments.`
|
|
122291
|
+
);
|
|
122292
|
+
}
|
|
122283
122293
|
await ensureDeviceReady(params.udid);
|
|
122284
|
-
if (!
|
|
122285
|
-
await launchApp(params.udid, params.bundleId);
|
|
122294
|
+
if (!systemUi) {
|
|
122295
|
+
await (launchArgs ? launchApp(params.udid, params.bundleId, { terminateExisting: true, args: launchArgs }) : launchApp(params.udid, params.bundleId));
|
|
122286
122296
|
}
|
|
122287
122297
|
setCurrentIosDeviceApp(params.udid, params.bundleId);
|
|
122288
122298
|
const note = await signingUnreadyNote();
|
|
@@ -122450,7 +122460,7 @@ var zodSchema10 = external_exports.object({
|
|
|
122450
122460
|
"Android-only: fully-qualified Activity name (e.g. `.MainActivity` or `com.example/com.example.MainActivity`). If omitted on Android, the app's default launcher activity is used. Ignored on iOS / Chromium."
|
|
122451
122461
|
),
|
|
122452
122462
|
launchArgs: external_exports.array(external_exports.string()).optional().describe(
|
|
122453
|
-
'Apple simulators
|
|
122463
|
+
'Apple simulators and physical iPhones: arguments passed to the app process at launch, e.g. `["-FeatureFlag", "YES"]` to override UserDefaults. A running app is relaunched to apply them. Ignored on other targets.'
|
|
122454
122464
|
)
|
|
122455
122465
|
});
|
|
122456
122466
|
var capability2 = {
|
|
@@ -122562,7 +122572,10 @@ var iosDeviceImpl2 = {
|
|
|
122562
122572
|
);
|
|
122563
122573
|
}
|
|
122564
122574
|
await ensureDeviceReady(params.udid);
|
|
122565
|
-
await launchApp(params.udid, params.bundleId, {
|
|
122575
|
+
await launchApp(params.udid, params.bundleId, {
|
|
122576
|
+
terminateExisting: true,
|
|
122577
|
+
args: params.launchArgs
|
|
122578
|
+
});
|
|
122566
122579
|
setCurrentIosDeviceApp(params.udid, params.bundleId);
|
|
122567
122580
|
return {
|
|
122568
122581
|
restarted: true,
|
|
@@ -122667,7 +122680,7 @@ var zodSchema11 = external_exports.object({
|
|
|
122667
122680
|
"Android-only: relaunch a non-launcher Activity (e.g. `.SettingsActivity` or `com.example/com.example.SettingsActivity`). If omitted, the app's default launcher activity is used. Ignored on iOS."
|
|
122668
122681
|
),
|
|
122669
122682
|
launchArgs: external_exports.array(external_exports.string()).optional().describe(
|
|
122670
|
-
'Apple simulators
|
|
122683
|
+
'Apple simulators and physical iPhones: arguments passed to the app process at launch, e.g. `["-FeatureFlag", "YES"]` to override UserDefaults. Ignored on other targets.'
|
|
122671
122684
|
)
|
|
122672
122685
|
});
|
|
122673
122686
|
var capability3 = {
|
package/package.json
CHANGED