Skip to content

Warn at launch on development (dev branch) builds#2439

Open
ps2 wants to merge 2 commits into
devfrom
feature/dev-branch-warning
Open

Warn at launch on development (dev branch) builds#2439
ps2 wants to merge 2 commits into
devfrom
feature/dev-branch-warning

Conversation

@ps2
Copy link
Copy Markdown
Collaborator

@ps2 ps2 commented May 22, 2026

Summary

  • On each launch, after the status screen is constructed and displayed, present a blocking alert when the app was built from the LoopWorkspace dev branch, advising non-testers to switch to main.
  • Branch is detected at runtime via BuildDetails.workspaceGitBranch == "dev" (the superproject branch captured into BuildDetails.plist at build time).
  • Gated by a new devBranchWarningEnabled feature flag — on by default, disabled by adding DEV_BRANCH_WARNING_DISABLED to SWIFT_ACTIVE_COMPILATION_CONDITIONS (e.g. in LoopConfigOverride.xcconfig), matching the existing DIY flag pattern.
  • The alert (.alert, non-dismissable except by a choice) offers I'm a tester (dismiss) and Switch to main (opens the LoopDocs branches page).
  • Presented from LoopAppManager.launchHomeScreen(), alongside the existing AppExpirationAlerter launch-alert pattern, so it fires once per launch after onboarding.

Test plan

  • On a dev build, the warning appears over the status screen on launch, and again on each subsequent launch.
  • I'm a tester dismisses the alert; Switch to main opens the docs URL.
  • No warning on main/release builds (workspaceGitBranch != "dev").
  • Adding DEV_BRANCH_WARNING_DISABLED to the build's active compilation conditions suppresses the warning.

ps2 added 2 commits May 21, 2026 22:01
Present a blocking alert after the status screen appears on each launch
when the app was built from the LoopWorkspace dev branch, advising
non-testers to switch to main. Detected via BuildDetails.workspaceGitBranch.

Gated by a new devBranchWarningEnabled feature flag (on by default,
disabled with DEV_BRANCH_WARNING_DISABLED in SWIFT_ACTIVE_COMPILATION_CONDITIONS).
The alert offers "I'm a tester" (dismiss) and "Switch to main" (opens the
LoopDocs branches page).
@ps2 ps2 requested a review from marionbarker May 22, 2026 03:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant