Skip to content

Fix Swift Package Manager support (v1.4.2)#41

Merged
cgoldsby merged 1 commit into
cgoldsby:mainfrom
rlorenzo:spm-support
Jan 6, 2026
Merged

Fix Swift Package Manager support (v1.4.2)#41
cgoldsby merged 1 commit into
cgoldsby:mainfrom
rlorenzo:spm-support

Conversation

@rlorenzo

@rlorenzo rlorenzo commented Jan 6, 2026

Copy link
Copy Markdown
Contributor
  • Update BundleLoader to use Bundle.module for SPM builds
  • Add defaultLocalization to Package.swift for localized resources
  • Fix Package.swift resource paths for proper SPM compatibility
  • Add SPM installation instructions to README
  • Bump version to 1.4.2 in podspec
  • Add .build to .gitignore

@cgoldsby with CocoaPods going into read-only mode, this PR adds Swift Package Manager support.

- Update BundleLoader to use Bundle.module for SPM builds
- Add defaultLocalization to Package.swift for localized resources
- Fix Package.swift resource paths for proper SPM compatibility
- Add SPM installation instructions to README
- Bump version to 1.4.2 in podspec
- Add .build to .gitignore
Copilot AI review requested due to automatic review settings January 6, 2026 03:47

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

This PR fixes Swift Package Manager (SPM) support for TvOSMoreButton by addressing bundle loading issues that prevented proper resource access when the library is consumed via SPM. The changes maintain backward compatibility with CocoaPods and Carthage while properly supporting SPM builds. Version bumped to 1.4.2.

  • Updates BundleLoader to use Bundle.module for SPM builds while maintaining CocoaPods/Carthage compatibility
  • Configures Package.swift with proper paths, exclusions, and localization support
  • Updates documentation with SPM installation instructions and version references

Reviewed changes

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

Show a summary per file
File Description
Source/Private/Helpers/BundleLoader.swift Adds conditional compilation to use Bundle.module for SPM builds while preserving existing CocoaPods bundle loading logic
Package.swift Adds defaultLocalization, updates root path with proper source/resource configuration and comprehensive exclusions list
TvOSMoreButton.podspec Bumps version to 1.4.2
README.md Adds SPM installation instructions and updates version references to 1.4.2
CHANGELOG.md Documents 1.4.2 release with SPM fixes
.gitignore Adds SPM build directory to gitignore

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

@cgoldsby cgoldsby merged commit afd4fa4 into cgoldsby:main Jan 6, 2026
6 of 8 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