Skip to content

Commit c05b2f8

Browse files
Merge pull request #356 from pusher/feature/150-watchos-support
Add watchOS support
2 parents 4a26584 + 51d360d commit c05b2f8

File tree

5 files changed

+16
-8
lines changed

5 files changed

+16
-8
lines changed

Package.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import PackageDescription
44

55
let package = Package(
66
name: "PusherSwift",
7-
platforms: [.iOS("13.0"), .macOS("10.15"), .tvOS("13.0")],
7+
platforms: [.iOS("13.0"), .macOS("10.15"), .tvOS("13.0"), .watchOS("6.0")],
88
products: [
99
.library(name: "PusherSwift", targets: ["PusherSwift"])
1010
],

PusherSwift.podspec

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,5 @@ Pod::Spec.new do |s|
1818
s.ios.deployment_target = '13.0'
1919
s.osx.deployment_target = '10.15'
2020
s.tvos.deployment_target = '13.0'
21+
s.watchos.deployment_target = '6.0'
2122
end

PusherSwift.xcodeproj/project.pbxproj

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -686,9 +686,10 @@
686686
MACOSX_DEPLOYMENT_TARGET = 10.15;
687687
ONLY_ACTIVE_ARCH = YES;
688688
SDKROOT = "";
689-
SUPPORTED_PLATFORMS = "macosx appletvos iphoneos appletvsimulator iphonesimulator";
689+
SUPPORTED_PLATFORMS = "macosx appletvos iphoneos watchos appletvsimulator iphonesimulator watchsimulator";
690690
SWIFT_VERSION = 5.0;
691691
TVOS_DEPLOYMENT_TARGET = 13.0;
692+
WATCHOS_DEPLOYMENT_TARGET = 6.0;
692693
};
693694
name = Debug;
694695
};
@@ -726,10 +727,11 @@
726727
IPHONEOS_DEPLOYMENT_TARGET = 13.0;
727728
MACOSX_DEPLOYMENT_TARGET = 10.15;
728729
SDKROOT = "";
729-
SUPPORTED_PLATFORMS = "macosx appletvos iphoneos appletvsimulator iphonesimulator";
730+
SUPPORTED_PLATFORMS = "macosx appletvos iphoneos watchos appletvsimulator iphonesimulator watchsimulator";
730731
SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule";
731732
SWIFT_VERSION = 5.0;
732733
TVOS_DEPLOYMENT_TARGET = 13.0;
734+
WATCHOS_DEPLOYMENT_TARGET = 6.0;
733735
};
734736
name = Release;
735737
};
@@ -785,7 +787,7 @@
785787
PROVISIONING_PROFILE = "";
786788
SDKROOT = "";
787789
SKIP_INSTALL = YES;
788-
SUPPORTED_PLATFORMS = "iphonesimulator iphoneos macosx appletvsimulator appletvos";
790+
SUPPORTED_PLATFORMS = "iphonesimulator iphoneos macosx appletvsimulator appletvos watchsimulator watchos";
789791
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
790792
SWIFT_VERSION = 5.0;
791793
TARGETED_DEVICE_FAMILY = "1,2,3,4";
@@ -840,7 +842,7 @@
840842
PROVISIONING_PROFILE = "";
841843
SDKROOT = "";
842844
SKIP_INSTALL = YES;
843-
SUPPORTED_PLATFORMS = "iphonesimulator iphoneos macosx appletvsimulator appletvos";
845+
SUPPORTED_PLATFORMS = "iphonesimulator iphoneos macosx appletvsimulator appletvos watchsimulator watchos";
844846
SWIFT_VERSION = 5.0;
845847
TARGETED_DEVICE_FAMILY = "1,2,3,4";
846848
VALIDATE_PRODUCT = YES;
@@ -894,9 +896,11 @@
894896
PRODUCT_BUNDLE_IDENTIFIER = "com.pusher.$(PRODUCT_NAME:rfc1034identifier)";
895897
PRODUCT_NAME = PusherSwiftTests;
896898
SDKROOT = "";
897-
SUPPORTED_PLATFORMS = "iphonesimulator iphoneos macosx appletvsimulator appletvos";
899+
SUPPORTED_PLATFORMS = "iphonesimulator iphoneos macosx appletvsimulator appletvos watchsimulator watchos";
898900
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
899901
SWIFT_VERSION = 5.0;
902+
TVOS_DEPLOYMENT_TARGET = 13.0;
903+
WATCHOS_DEPLOYMENT_TARGET = 6.0;
900904
};
901905
name = Debug;
902906
};
@@ -938,9 +942,11 @@
938942
PRODUCT_BUNDLE_IDENTIFIER = "com.pusher.$(PRODUCT_NAME:rfc1034identifier)";
939943
PRODUCT_NAME = PusherSwiftTests;
940944
SDKROOT = "";
941-
SUPPORTED_PLATFORMS = "iphonesimulator iphoneos macosx appletvsimulator appletvos";
945+
SUPPORTED_PLATFORMS = "iphonesimulator iphoneos macosx appletvsimulator appletvos watchsimulator watchos";
942946
SWIFT_VERSION = 5.0;
947+
TVOS_DEPLOYMENT_TARGET = 13.0;
943948
VALIDATE_PRODUCT = YES;
949+
WATCHOS_DEPLOYMENT_TARGET = 6.0;
944950
};
945951
name = Release;
946952
};

PusherSwiftWithEncryption.podspec

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,5 @@ Pod::Spec.new do |s|
1818
s.ios.deployment_target = '13.0'
1919
s.osx.deployment_target = '10.15'
2020
s.tvos.deployment_target = '13.0'
21+
s.watchos.deployment_target = '6.0'
2122
end

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ For tutorials and more in-depth information about Pusher Channels, visit our [of
2222
- iOS 13.0 and above
2323
- macOS (OS X) 10.15 and above
2424
- tvOS 13.0 and above
25-
- Not currently compatible with watchOS
25+
- watchOS 6.0 and above
2626

2727
### Legacy OS support
2828

0 commit comments

Comments
 (0)