Skip to content

feat: VersionIcon fixes and improvements#6

Merged
DanielCech merged 5 commits intomasterfrom
feat/dc/fixes-and-improvements
May 7, 2026
Merged

feat: VersionIcon fixes and improvements#6
DanielCech merged 5 commits intomasterfrom
feat/dc/fixes-and-improvements

Conversation

@DanielCech
Copy link
Copy Markdown
Member

@DanielCech DanielCech commented Apr 28, 2026

Summary

Modernizes VersionIcon to work with real asset catalogs instead of a hardcoded legacy icon list, adds configurable error handling with --onError fail|warn, and refactors the implementation into smaller support files for maintainability.

Changes

  • Discover and process icon variants from Contents.json dynamically
  • Resolve Info.plist and icon asset paths more reliably across projects
  • Add --onError fail|warn to allow non-blocking builds when desired
  • additional parameter --titleRotation.
  • new --versionStyle values
  • Improve test coverage, including a Flashcards-style asset catalog case
  • Split the old monolithic implementation into focused support files

Verification

  • swift test passes

@DanielCech DanielCech marked this pull request as ready for review April 28, 2026 16:05
@DanielCech DanielCech requested review from arkhigleb and ipek April 29, 2026 09:20
Copy link
Copy Markdown

@ipek ipek left a comment

Choose a reason for hiding this comment

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

🧙

@@ -1,47 +1,326 @@
import AppKit
import class Foundation.Bundle
import Foundation
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Now you don't need the line above anymore.

@DanielCech DanielCech merged commit 4ec3f39 into master May 7, 2026
@DanielCech DanielCech deleted the feat/dc/fixes-and-improvements branch May 7, 2026 08:42
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.

2 participants