feat: add Swift Package Manager support - #331
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull request adds Swift Package Manager (SPM) support for iOS and macOS, allowing the plugin to be integrated via SPM as an alternative to CocoaPods. It also restructures the iOS and macOS plugin code to support SPM, updates documentation, and cleans up legacy Objective-C shims. Existing CocoaPods integration remains unchanged and is still used for projects that have not opted into SPM.
Swift Package Manager Support:
Package.swiftfiles for both iOS and macOS, enabling SPM integration and specifying platform requirements and dependencies. [1] [2]README.mdandCHANGELOG.md) to describe how to enable and use SPM for this plugin, including platform requirements and migration notes. [1] [2]Codebase Restructuring for SPM:
twilio_voice/Sources/twilio_voice/and updated.podspecfiles to reference the new location, ensuring compatibility with both CocoaPods and SPM. [1] [2]TwilioVoicePlugin.h/.m) and adopted its class name in Swift, as SPM does not support mixed-language targets. The Swift class is now exposed to Objective-C with the same name to maintain compatibility. [1] [2] [3]