Skip to content

feat: add Swift Package Manager support - #331

Merged
cybex-dev merged 5 commits into
masterfrom
feat/swift_package_manager
Aug 4, 2026
Merged

feat: add Swift Package Manager support#331
cybex-dev merged 5 commits into
masterfrom
feat/swift_package_manager

Conversation

@cybex-dev

@cybex-dev cybex-dev commented Aug 4, 2026

Copy link
Copy Markdown
Owner

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:

  • Added Package.swift files for both iOS and macOS, enabling SPM integration and specifying platform requirements and dependencies. [1] [2]
  • Updated documentation (README.md and CHANGELOG.md) to describe how to enable and use SPM for this plugin, including platform requirements and migration notes. [1] [2]

Codebase Restructuring for SPM:

  • Moved Swift source files to twilio_voice/Sources/twilio_voice/ and updated .podspec files to reference the new location, ensuring compatibility with both CocoaPods and SPM. [1] [2]
  • Removed the Objective-C shim (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]

@cybex-dev cybex-dev self-assigned this Aug 4, 2026
@cybex-dev cybex-dev added enhancement New feature or request iOS macOS labels Aug 4, 2026
@cybex-dev
cybex-dev merged commit 7139d1e into master Aug 4, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request iOS macOS

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant