create-disposabl-app 0.14.1 → 0.14.2
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/disposabl.js
CHANGED
package/dist/index.js
CHANGED
|
@@ -8,7 +8,7 @@ import { fileURLToPath as fileURLToPath2 } from "node:url";
|
|
|
8
8
|
import { Command, CommanderError } from "commander";
|
|
9
9
|
import * as p2 from "@clack/prompts";
|
|
10
10
|
// package.json
|
|
11
|
-
var version = "0.14.
|
|
11
|
+
var version = "0.14.2";
|
|
12
12
|
|
|
13
13
|
// ../disposabl-kit/platforms.ts
|
|
14
14
|
var platforms = [
|
|
@@ -70,7 +70,7 @@ jobs:
|
|
|
70
70
|
contents: read
|
|
71
71
|
pull-requests: read
|
|
72
72
|
id-token: write
|
|
73
|
-
timeout-minutes:
|
|
73
|
+
timeout-minutes: 20
|
|
74
74
|
runs-on: ${{ needs.changes.outputs.linux_runner }}
|
|
75
75
|
outputs:
|
|
76
76
|
desktop: ${{ needs.changes.outputs.desktop }}
|
|
@@ -180,7 +180,7 @@ jobs:
|
|
|
180
180
|
if: needs.web.outputs.android_build == 'true'
|
|
181
181
|
permissions: *release-permissions
|
|
182
182
|
runs-on: ${{ needs.changes.outputs.linux_runner }}
|
|
183
|
-
timeout-minutes:
|
|
183
|
+
timeout-minutes: 20
|
|
184
184
|
env:
|
|
185
185
|
PLATFORM: android
|
|
186
186
|
EXPO_TOKEN: ${{ secrets.EXPO_TOKEN }}
|
|
@@ -246,7 +246,7 @@ jobs:
|
|
|
246
246
|
if: github.event_name == 'pull_request' && needs.web.outputs.ios == 'true'
|
|
247
247
|
permissions: *release-permissions
|
|
248
248
|
runs-on: ${{ needs.changes.outputs.macos_runner }}
|
|
249
|
-
timeout-minutes:
|
|
249
|
+
timeout-minutes: 20
|
|
250
250
|
env:
|
|
251
251
|
EXPO_TOKEN: ${{ secrets.EXPO_TOKEN }}
|
|
252
252
|
CONVEX_URL: ${{ needs.web.outputs.convex_url }}
|
|
@@ -304,7 +304,7 @@ jobs:
|
|
|
304
304
|
if: github.event_name == 'push' && needs.web.outputs.ios == 'true'
|
|
305
305
|
permissions: *release-permissions
|
|
306
306
|
runs-on: ${{ needs.changes.outputs.linux_runner }}
|
|
307
|
-
timeout-minutes:
|
|
307
|
+
timeout-minutes: 20
|
|
308
308
|
env:
|
|
309
309
|
EXPO_TOKEN: ${{ secrets.EXPO_TOKEN }}
|
|
310
310
|
EXPO_PROJECT_ID: ${{ secrets.EXPO_PROJECT_ID || vars.EXPO_PROJECT_ID }}
|
|
@@ -370,7 +370,7 @@ jobs:
|
|
|
370
370
|
matrix:
|
|
371
371
|
include: ${{ fromJSON(needs.web.outputs.desktop) }}
|
|
372
372
|
runs-on: ${{ matrix.runner }}
|
|
373
|
-
timeout-minutes:
|
|
373
|
+
timeout-minutes: 20
|
|
374
374
|
env:
|
|
375
375
|
PLATFORM: ${{ matrix.platform }}
|
|
376
376
|
DISPOSABL_RELEASE_VERSION: 1.${{ github.run_number }}.${{ github.run_attempt }}
|
|
@@ -10,7 +10,7 @@ import { api } from "./lib/convex";
|
|
|
10
10
|
import { sendPageTelemetry } from "../lib/telemetry";
|
|
11
11
|
import { sessionId } from "../lib/auth-session";
|
|
12
12
|
import { UpdatePrompt } from "./updates/update-prompt";
|
|
13
|
-
import { ThemeProvider } from "./design/theme-provider";
|
|
13
|
+
import { ThemeProvider, useResolvedColorScheme } from "./design/theme-provider";
|
|
14
14
|
import { useTheme } from "./design/use-theme";
|
|
15
15
|
|
|
16
16
|
export function MobileLayout({ children }: { children?: ReactNode }) {
|
|
@@ -64,9 +64,11 @@ function SessionRoutes() {
|
|
|
64
64
|
|
|
65
65
|
function Routes({ isAuthenticated = false }: { isAuthenticated?: boolean }) {
|
|
66
66
|
const colors = useTheme();
|
|
67
|
+
const dark = useResolvedColorScheme() === "dark";
|
|
67
68
|
return (
|
|
68
69
|
<Stack
|
|
69
70
|
screenOptions={{
|
|
71
|
+
statusBarStyle: dark ? "light" : "dark",
|
|
70
72
|
headerTintColor: colors.foreground,
|
|
71
73
|
headerStyle: { backgroundColor: colors.background },
|
|
72
74
|
contentStyle: { backgroundColor: colors.background },
|
|
@@ -176,9 +178,11 @@ function AccountRoutes() {
|
|
|
176
178
|
/** A route group without a session requirement. */
|
|
177
179
|
export function PublicLayout() {
|
|
178
180
|
const colors = useTheme();
|
|
181
|
+
const dark = useResolvedColorScheme() === "dark";
|
|
179
182
|
return (
|
|
180
183
|
<Stack
|
|
181
184
|
screenOptions={{
|
|
185
|
+
statusBarStyle: dark ? "light" : "dark",
|
|
182
186
|
headerTintColor: colors.foreground,
|
|
183
187
|
headerStyle: { backgroundColor: colors.background },
|
|
184
188
|
contentStyle: { backgroundColor: colors.background },
|
|
@@ -46,6 +46,8 @@ Debug builds need Metro running with the current source. A release build embeds
|
|
|
46
46
|
|
|
47
47
|
The config evaluates `apps/mobile/app.config.js` to use the same bundle IDs and channel as the build. Match `DISPOSABL_MOBILE_CHANNEL` to the installed app. Override with `E2E_IOS_APP_ID` or `E2E_ANDROID_APP_ID` when testing a different artifact. Set `E2E_IOS_DEVICE` to a simulator name/UDID or `E2E_ANDROID_DEVICE` to an emulator serial to reserve a specific device. Keep each device under one owner's control.
|
|
48
48
|
|
|
49
|
+
TesterArmy claims the device for its own session. Run automated flows before opening a Device panel or manual agent-device session, or release only your own manual session first. A manual session can block the test runner even when the same agent owns both. After the runner releases its claim, open the device for visual inspection. Never close another owner's session or take over an occupied device to make a test proceed.
|
|
50
|
+
|
|
49
51
|
For a development client with several Metro servers running, set `E2E_MOBILE_DEV_URL` to this app's Metro URL and `E2E_MOBILE_DEV_SCHEME` to its unique installed URL scheme. The mobile flows explicitly connect after launch and restart. This prevents accidentally testing another server or backend. Release builds omit both variables.
|
|
50
52
|
|
|
51
53
|
When supplying an isolated backend through Metro's shell environment, also set `EXPO_NO_DOTENV=1` and `EXPO_PUBLIC_E2E=true`. The Metro configuration excludes dotenv files in this mode: SDK 58's development environment module otherwise reloads `.env.local` after shell values. Set both `EXPO_PUBLIC_CONVEX_URL` and `EXPO_PUBLIC_CONVEX_SITE_URL` to the test backend, using the emulator's reachable host address. The test runner's `E2E_CONVEX_URL` and `E2E_CONVEX_SITE_URL` must address that same deployment from the host.
|