Skip to content

Display bundled app version in settings - #37

Merged
MarioHewardt merged 1 commit into
mainfrom
fix/settings-version
Jul 22, 2026
Merged

Display bundled app version in settings#37
MarioHewardt merged 1 commit into
mainfrom
fix/settings-version

Conversation

@MarioHewardt

Copy link
Copy Markdown
Contributor

No description provided.

Copilot AI review requested due to automatic review settings July 22, 2026 17:54

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the app’s settings footer version display to reflect the version embedded in the app bundle (with a development fallback), and adds a self-test to lock in the intended resolution behavior.

Changes:

  • Replace AppInfo.version hardcoded string with a computed value resolved from Bundle.main.infoDictionary.
  • Add AppInfo.resolveVersion(from:) helper that prefers CFBundleShortVersionString, then falls back to CFBundleVersion, else returns "Development".
  • Add a self-test validating the resolution rules for short version, build version fallback, and unbundled development builds.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
Sources/ZoomItMacCore/App/AppInfo.swift Derives AppInfo.version from bundle metadata with a development fallback and a testable resolver helper.
Sources/ZoomItMacCore/SelfTest/SelfTestRunner.swift Adds coverage ensuring version resolution behaves as intended for settings display.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@MarioHewardt
MarioHewardt merged commit d98be60 into main Jul 22, 2026
3 checks passed
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.

3 participants