create-disposabl-app 0.14.1 → 0.14.3

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
@@ -5,7 +5,7 @@ import { lock } from "proper-lockfile";
5
5
  // ../cli/package.json
6
6
  var package_default = {
7
7
  name: "@disposabl/cli",
8
- version: "0.14.1",
8
+ version: "0.14.3",
9
9
  type: "module",
10
10
  description: "Command-line access to your Disposabl app",
11
11
  license: "MIT",
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.1";
11
+ var version = "0.14.3";
12
12
 
13
13
  // ../disposabl-kit/platforms.ts
14
14
  var platforms = [
@@ -3,19 +3,20 @@ set -euo pipefail
3
3
 
4
4
  case "${1:?operation required}" in
5
5
  prepare)
6
- df -h .
6
+ df -Pk .
7
7
  # Only disposable GitHub-hosted Linux runners. Keep Android, Java, Node,
8
8
  # the checkout and dependency caches intact; these toolchains are unused.
9
9
  if [[ "${GITHUB_ACTIONS:-}" == true && "${RUNNER_ENVIRONMENT:-}" == github-hosted && "${RUNNER_OS:-}" == Linux ]]; then
10
10
  unused=(/usr/share/dotnet /usr/local/.ghcup /opt/ghc /opt/hostedtoolcache/CodeQL
11
- /usr/share/swift /usr/share/miniconda /opt/microsoft/powershell /usr/local/share/powershell)
12
- du -sh -- "${unused[@]}" 2>/dev/null || true
11
+ /usr/share/swift /usr/share/miniconda /opt/microsoft/powershell /usr/local/share/powershell
12
+ /usr/local/share/vcpkg /home/linuxbrew)
13
+ du -sk -- "${unused[@]}" 2>/dev/null || true
13
14
  sudo rm -rf -- "${unused[@]}"
14
15
  fi
15
- df -h .
16
+ df -Pk .
16
17
  ;;
17
18
  check)
18
- df -h .
19
+ df -Pk .
19
20
  available=$(df -Pk . | awk 'END {print $4}')
20
21
  if [[ ! "$available" =~ ^[0-9]+$ ]] || (( available < 25 * 1024 * 1024 )); then
21
22
  echo '::error::Android native builds require at least 25 GiB free before prebuild. Use a runner with more disk capacity.' >&2
@@ -70,7 +70,7 @@ jobs:
70
70
  contents: read
71
71
  pull-requests: read
72
72
  id-token: write
73
- timeout-minutes: 45
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: 60
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: 90
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: 120
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: 30
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.
@@ -60,7 +60,7 @@ test("Android disk preparation only removes unused hosted-runner toolchains", ()
60
60
  assert.equal(run("prepare").status, 0);
61
61
  assert.equal(
62
62
  readFileSync(calls, "utf8"),
63
- "rm -rf -- /usr/share/dotnet /usr/local/.ghcup /opt/ghc /opt/hostedtoolcache/CodeQL /usr/share/swift /usr/share/miniconda /opt/microsoft/powershell /usr/local/share/powershell\n",
63
+ "rm -rf -- /usr/share/dotnet /usr/local/.ghcup /opt/ghc /opt/hostedtoolcache/CodeQL /usr/share/swift /usr/share/miniconda /opt/microsoft/powershell /usr/local/share/powershell /usr/local/share/vcpkg /home/linuxbrew\n",
64
64
  );
65
65
  assert.equal(run("check").status, 0);
66
66
  assert.equal(run("check", { AVAILABLE: "26214400" }).status, 0);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-disposabl-app",
3
- "version": "0.14.1",
3
+ "version": "0.14.3",
4
4
  "description": "Create a Disposabl app",
5
5
  "type": "module",
6
6
  "license": "MIT",