Skip to content

Commit 1551391

Browse files
fix(mobile): apply Android dev-menu flags to the launch URL
1 parent 42a8013 commit 1551391

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

‎scripts/mobile-showcase.ts‎

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1412,9 +1412,7 @@ async function captureAndroid(
14121412
]);
14131413
await prepareAndroidShowcaseApp(serial);
14141414
await runAdb(serial, ["reverse", `tcp:${config.metroPort}`, `tcp:${config.metroPort}`]);
1415-
const metroUrl = encodeURIComponent(
1416-
`http://127.0.0.1:${config.metroPort}?${DEV_CLIENT_LAUNCH_FLAGS}`,
1417-
);
1415+
const metroUrl = encodeURIComponent(`http://127.0.0.1:${config.metroPort}?disableOnboarding=1`);
14181416
const firstScene = capture.scenes[0] ?? "threads";
14191417
await runAdb(serial, [
14201418
"shell",
@@ -1424,7 +1422,7 @@ async function captureAndroid(
14241422
"-a",
14251423
"android.intent.action.VIEW",
14261424
"-d",
1427-
`${APP_SCHEME}://expo-development-client/?url=${metroUrl}`,
1425+
`${APP_SCHEME}://expo-development-client/?url=${metroUrl}&${DEV_CLIENT_LAUNCH_FLAGS}`,
14281426
"--es",
14291427
"showcasePairingUrl",
14301428
encodeAndroidPairingUrls(pairingUrls),

0 commit comments

Comments
 (0)