diff --git a/.gitignore b/.gitignore index 761d4d9..6d2df37 100644 --- a/.gitignore +++ b/.gitignore @@ -25,4 +25,6 @@ DerivedData # Pods/ .DS_Store Example/.DS_Store -Example/MMWormhole/.DS_Store \ No newline at end of file +Example/MMWormhole/.DS_Store +# Swift Package Manager +.build/ \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index ee63c28..8061108 100755 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +##[2.1.0] +**NEW** +* Added Swift Package Manager support. (Eli Gutovsky) + ##[2.0.0](https://github.com/mutualmobile/MMWormhole/milestones/2.0.0) (Tuesday, September 15th, 2015) **NEW** * Added support for the WatchConnectivity framework. (Conrad Stoll) diff --git a/Package.swift b/Package.swift new file mode 100644 index 0000000..b24851a --- /dev/null +++ b/Package.swift @@ -0,0 +1,24 @@ +// swift-tools-version:5.3 + +import PackageDescription + +let package = Package( + name: "MMWormhole", + platforms: [ + .iOS(.v11), + .watchOS(.v2), + ], + products: [ + .library( + name: "MMWormhole", + targets: ["MMWormhole"]), + ], + targets: [ + .target( + name: "MMWormhole", + path: "Source", + publicHeadersPath: ".", + linkerSettings: [ + .linkedFramework("WatchConnectivity"), + ]), + ]) diff --git a/README.md b/README.md index d27f715..cba013b 100644 --- a/README.md +++ b/README.md @@ -41,6 +41,15 @@ pod 'MMWormhole', '~> 2.0.0' [![Carthage compatible](https://img.shields.io/badge/Carthage-compatible-4BC51D.svg?style=flat)](https://github.com/Carthage/Carthage)
MMWormhole also supports Carthage. + +### Swift Package Manager + +[![SPM compatible](https://img.shields.io/badge/SPM-compatible-4BC51D.svg?style=flat)](https://github.com/apple/swift-package-manager) + +MMWormhole also supports Swift Package Manager. +In your Xcode project, go to the Package Dependencies tab of the project settings. Add a new package by clicking on the plus sign (+), then enter the URL for this repository. + + ## Overview MMWormhole is designed to make it easy to share very basic information and commands between an extension and it's containing application. The wormhole should remain stable whether the containing app is running or not, but notifications will only be triggered in the containing app if the app is awake in the background. This makes MMWormhole ideal for cases where the containing app is already running via some form of background modes.