Skip to content

refactor(release): read the app version and build from one place - #3484

Merged
datlechin merged 1 commit into
mainfrom
refactor/app-version-one-place
Oct 17, 2026
Merged

datlechin merged 1 commit into
mainfrom
refactor/app-version-one-place

Conversation

@datlechin

Copy link
Copy Markdown
Member

Why

The app read its version in six places with three different fallbacks ("0.0.0", "1.0", "unknown"), and the build number was a String. The release rewrite needs one typed reader for the build number and the beta channel.

Change

  • Bundle+AppInfo gains buildNumber: Int (0 when missing or not an integer), isPrerelease and displayVersion.
  • MCP server info, Copilot client info, connection export, the table-load stamp and both plugin min-app-version checks read through it.
  • New SwiftLint rule app_version_outside_bundle_info fails a direct Bundle.main read of CFBundleShortVersionString or CFBundleVersion in the app.

Verified

BundleAppInfoTests builds temp bundles for numeric, dotted and missing builds, a beta version and displayVersion. A planted read trips the new rule.

Not in this PR

  • BridgeProxy keeps its own read: it runs in the helper process, outside the app module.

@datlechin
datlechin merged commit 006238f into main Oct 17, 2026
7 checks passed
@datlechin
datlechin deleted the refactor/app-version-one-place branch October 17, 2026 16:48
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