Skip to content

Add SwiftPM traits for optional image loading dependencies - #445

Open
AndyChangTW wants to merge 2 commits into
zvonicek:masterfrom
AndyChangTW:master
Open

Add SwiftPM traits for optional image loading dependencies#445
AndyChangTW wants to merge 2 commits into
zvonicek:masterfrom
AndyChangTW:master

Conversation

@AndyChangTW

Copy link
Copy Markdown

Summary

This updates the Swift Package manifest to support SwiftPM traits for the optional image loading integrations, and raises the minimum supported iOS deployment target from iOS 10 to iOS 12.

Changes

  • Upgrade Package.swift to Swift tools version 6.1.
  • Raise the SwiftPM iOS platform requirement from .iOS(.v10) to .iOS(.v12).
  • Define package traits for Alamofire, SDWebImage, and Kingfisher.
  • Make optional image loading product dependencies conditional on their matching traits.
  • Exclude optional input sources from the core ImageSlideshow target.
  • Wrap optional input source implementations with matching SwiftPM conditional compilation checks.
  • Ignore generated .swiftpm/ workspace metadata.

Validation

  • Verified the package manifest with swift package dump-package.

- 升級 Package.swift 至 Swift tools 6.1 並改用 swiftLanguageModes
- 透過 package traits 條件化 Alamofire、SDWebImage、Kingfisher 產品依賴
- 排除核心 target 的可選 input source,並加上對應條件編譯
@AndyChangTW
AndyChangTW marked this pull request as draft August 21, 2026 00:47
@AndyChangTW
AndyChangTW marked this pull request as ready for review August 21, 2026 00:47
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