Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Swift Package Manager support #107

Open
wants to merge 7 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,6 @@ DerivedData
# Pods/
.DS_Store
Example/.DS_Store
Example/MMWormhole/.DS_Store
Example/MMWormhole/.DS_Store
# Swift Package Manager
.build/
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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)
Expand Down
24 changes: 24 additions & 0 deletions Package.swift
Original file line number Diff line number Diff line change
@@ -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"),
]),
])
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)<br/>
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.
Expand Down