diff --git a/CocoaMQTT.xcodeproj/project.pbxproj b/CocoaMQTT.xcodeproj/project.pbxproj index e3f79ec1..ffdd8f21 100644 --- a/CocoaMQTT.xcodeproj/project.pbxproj +++ b/CocoaMQTT.xcodeproj/project.pbxproj @@ -3,7 +3,7 @@ archiveVersion = 1; classes = { }; - objectVersion = 52; + objectVersion = 54; objects = { /* Begin PBXBuildFile section */ @@ -232,6 +232,7 @@ 9228E8CD27610AA400063DF2 /* MqttConnectProperties.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = MqttConnectProperties.swift; sourceTree = ""; }; 92445BEB2ADFBEA4009D16AB /* ThreadSafeDictionary.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = ThreadSafeDictionary.swift; sourceTree = ""; }; 929A468827611DAE0046F6C5 /* Starscream.xcframework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.xcframework; name = Starscream.xcframework; path = Carthage/Build/Starscream.xcframework; sourceTree = ""; }; + CE37F2622BD272A100DCDE12 /* PrivacyInfo.xcprivacy */ = {isa = PBXFileReference; lastKnownFileType = text.xml; path = PrivacyInfo.xcprivacy; sourceTree = ""; }; /* End PBXFileReference section */ /* Begin PBXFrameworksBuildPhase section */ @@ -309,6 +310,7 @@ 040997701C1B1070006B5A6D /* Source */ = { isa = PBXGroup; children = ( + CE37F2622BD272A100DCDE12 /* PrivacyInfo.xcprivacy */, 9228E88B276109F200063DF2 /* FrameDecodeHelper */, 6EC871E123A4214D00F69AE8 /* Socket */, 8D43DE4922FAEABD00D9A06B /* Frame */, diff --git a/Package.resolved b/Package.resolved index 07ba5bb5..61c6f4a2 100644 --- a/Package.resolved +++ b/Package.resolved @@ -15,8 +15,8 @@ "repositoryURL": "https://github.com/daltoniam/Starscream.git", "state": { "branch": null, - "revision": "df8d82047f6654d8e4b655d1b1525c64e1059d21", - "version": "4.0.4" + "revision": "c6bfd1af48efcc9a9ad203665db12375ba6b145a", + "version": "4.0.8" } } ] diff --git a/Package.swift b/Package.swift index 097b5daf..1620b2de 100644 --- a/Package.swift +++ b/Package.swift @@ -1,4 +1,4 @@ -// swift-tools-version:5.0 +// swift-tools-version:5.3 // The swift-tools-version declares the minimum version of Swift required to build this package. import PackageDescription @@ -16,13 +16,14 @@ let package = Package( ], dependencies: [ .package(url: "https://github.com/leeway1208/MqttCocoaAsyncSocket", from: "1.0.8"), - .package(url: "https://github.com/daltoniam/Starscream.git", "4.0.4"..<"4.0.4"), + .package(url: "https://github.com/daltoniam/Starscream.git", "4.0.8"..<"4.0.8"), ], targets: [ .target(name: "CocoaMQTT", dependencies: [ "MqttCocoaAsyncSocket" ], path: "Source", exclude: ["CocoaMQTTWebSocket.swift"], + resources: [.process("PrivacyInfo.xcprivacy")], swiftSettings: [ .define("IS_SWIFT_PACKAGE")]), .target(name: "CocoaMQTTWebSocket", dependencies: [ "CocoaMQTT", "Starscream" ], diff --git a/Source/CocoaMQTTWebSocket.swift b/Source/CocoaMQTTWebSocket.swift index b18e4548..75f0fe79 100644 --- a/Source/CocoaMQTTWebSocket.swift +++ b/Source/CocoaMQTTWebSocket.swift @@ -457,7 +457,7 @@ extension CocoaMQTTWebSocket.StarscreamConnection: CertificatePinning { } extension CocoaMQTTWebSocket.StarscreamConnection: WebSocketDelegate { - public func didReceive(event: Starscream.WebSocketEvent, client: Starscream.WebSocket) { + public func didReceive(event: Starscream.WebSocketEvent, client: Starscream.WebSocketClient) { switch event { case .connected(_): delegate?.connectionOpened(self) diff --git a/Source/PrivacyInfo.xcprivacy b/Source/PrivacyInfo.xcprivacy new file mode 100644 index 00000000..36a611c0 --- /dev/null +++ b/Source/PrivacyInfo.xcprivacy @@ -0,0 +1,17 @@ + + + + + NSPrivacyAccessedAPITypes + + + NSPrivacyAccessedAPITypeReasons + + CA92.1 + + NSPrivacyAccessedAPIType + NSPrivacyAccessedAPICategoryUserDefaults + + + +