Skip to content

Commit

Permalink
Merge pull request #14 from pusher/feature/13-watchos-support
Browse files Browse the repository at this point in the history
Add watchOS support
  • Loading branch information
danielrbrowne authored Oct 27, 2020
2 parents add056b + 82578b7 commit 19f2852
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 11 deletions.
5 changes: 3 additions & 2 deletions NWWebSocket.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,12 @@ Pod::Spec.new do |s|
s.source = { git: "https://github.com/pusher/NWWebSocket.git", tag: s.version.to_s }
s.social_media_url = 'https://twitter.com/pusher'

s.swift_version = '5.0'
s.swift_version = '5.1'
s.requires_arc = true
s.source_files = ['Sources/**/*.swift']

s.ios.deployment_target = '13.0'
s.osx.deployment_target = '10.15'
s.tvos.deployment_target = '13.0'
end
s.watchos.deployment_target = '6.0'
end
12 changes: 6 additions & 6 deletions NWWebSocket.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,7 @@
SWIFT_VERSION = "5.0";
TARGET_NAME = "NWWebSocket";
TVOS_DEPLOYMENT_TARGET = "13.0";
WATCHOS_DEPLOYMENT_TARGET = "2.0";
WATCHOS_DEPLOYMENT_TARGET = "6.0";
};
name = "Debug";
};
Expand Down Expand Up @@ -334,7 +334,7 @@
SWIFT_VERSION = "5.0";
TARGET_NAME = "NWWebSocket";
TVOS_DEPLOYMENT_TARGET = "13.0";
WATCHOS_DEPLOYMENT_TARGET = "2.0";
WATCHOS_DEPLOYMENT_TARGET = "6.0";
};
name = "Release";
};
Expand Down Expand Up @@ -379,7 +379,7 @@
"-sdk",
"/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk",
"-package-description-version",
"5.0.0"
"5.1.0"
);
SWIFT_VERSION = "5.0";
};
Expand All @@ -397,7 +397,7 @@
"-sdk",
"/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk",
"-package-description-version",
"5.0.0"
"5.1.0"
);
SWIFT_VERSION = "5.0";
};
Expand Down Expand Up @@ -520,7 +520,7 @@
SWIFT_VERSION = "5.0";
TARGET_NAME = "NWWebSocketTests";
TVOS_DEPLOYMENT_TARGET = "13.0";
WATCHOS_DEPLOYMENT_TARGET = "2.0";
WATCHOS_DEPLOYMENT_TARGET = "6.0";
};
name = "Debug";
};
Expand Down Expand Up @@ -574,7 +574,7 @@
SWIFT_VERSION = "5.0";
TARGET_NAME = "NWWebSocketTests";
TVOS_DEPLOYMENT_TARGET = "13.0";
WATCHOS_DEPLOYMENT_TARGET = "2.0";
WATCHOS_DEPLOYMENT_TARGET = "6.0";
};
name = "Release";
};
Expand Down
7 changes: 5 additions & 2 deletions Package.swift
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
// swift-tools-version:5.0
// swift-tools-version:5.1

import PackageDescription

let package = Package(
name: "NWWebSocket",
platforms: [.iOS("13.0"), .macOS("10.15"), .tvOS("13.0")],
platforms: [.iOS("13.0"),
.macOS("10.15"),
.tvOS("13.0"),
.watchOS("6.0")],
products: [
.library(
name: "NWWebSocket",
Expand Down
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,14 @@
A WebSocket client written in Swift, using the Network framework from Apple.

## Supported platforms
- Swift 5.0 and above
- Swift 5.1 and above
- Xcode 11.0 and above

### Deployment targets
- iOS 13.0 and above
- macOS 10.15 and above
- tvOS 13.0 and above
- watchOS 6.0 and above

## Communication
- If you have found a bug or have a feature request, please open an issue
Expand Down

0 comments on commit 19f2852

Please sign in to comment.