diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..0d2f24b --- /dev/null +++ b/.gitignore @@ -0,0 +1,3 @@ +.swiftpm/ +SwiftSDK.xcworkspace/xcuserdata/* +Sources/.DS_Store diff --git a/Package.swift b/Package.swift index b18e47d..546803d 100644 --- a/Package.swift +++ b/Package.swift @@ -1,4 +1,4 @@ -// swift-tools-version:5.2 +// swift-tools-version:5.9 import PackageDescription import Foundation @@ -9,10 +9,18 @@ let package = Package( .library(name: "Backendless", targets: ["SwiftSDK"]), ], dependencies: [ - .package(name: "SocketIO", url: "https://github.com/socketio/socket.io-client-swift", from: "16.1.0") + .package(url: "https://github.com/socketio/socket.io-client-swift", from: "16.1.0") ], targets: [ - .target(name: "SwiftSDK", dependencies: ["SocketIO"]), + .target( + name: "SwiftSDK", + dependencies: [ + .product(name: "SocketIO", package: "socket.io-client-swift") + ], + resources: [ + .process("Resources/PrivacyInfo.xcprivacy") + ] + ), .testTarget(name: "SwiftSDKTests", dependencies: ["SwiftSDK"]), ] ) diff --git a/Sources/.DS_Store b/Sources/.DS_Store deleted file mode 100644 index 96bcd6e..0000000 Binary files a/Sources/.DS_Store and /dev/null differ diff --git a/Sources/SwiftSDK/Resources/PrivacyInfo.xcprivacy b/Sources/SwiftSDK/Resources/PrivacyInfo.xcprivacy new file mode 100644 index 0000000..36a611c --- /dev/null +++ b/Sources/SwiftSDK/Resources/PrivacyInfo.xcprivacy @@ -0,0 +1,17 @@ + + + + + NSPrivacyAccessedAPITypes + + + NSPrivacyAccessedAPITypeReasons + + CA92.1 + + NSPrivacyAccessedAPIType + NSPrivacyAccessedAPICategoryUserDefaults + + + + diff --git a/SwiftSDK.xcodeproj/project.pbxproj b/SwiftSDK.xcodeproj/project.pbxproj index 95b2dcd..61c651d 100644 --- a/SwiftSDK.xcodeproj/project.pbxproj +++ b/SwiftSDK.xcodeproj/project.pbxproj @@ -175,6 +175,7 @@ 5EFBA8FE21C1011E007B3BB0 /* BackendlessUser.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5EFBA8FD21C1011E007B3BB0 /* BackendlessUser.swift */; }; 616D6D29EB43FDA36ECDCC01 /* Pods_SwiftSDK.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 8C23A8A3096D1AE35832C678 /* Pods_SwiftSDK.framework */; }; 88851340027297D0A6E507D7 /* Pods_SwiftSDKTests.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 3986FDD52DEAB9443660A94A /* Pods_SwiftSDKTests.framework */; }; + 9E8365D82BC5A20C002CEFBC /* PrivacyInfo.xcprivacy in Resources */ = {isa = PBXBuildFile; fileRef = 9E8365D62BC5A20C002CEFBC /* PrivacyInfo.xcprivacy */; }; /* End PBXBuildFile section */ /* Begin PBXContainerItemProxy section */ @@ -359,6 +360,7 @@ 5EFB60E822422F93004DFA2C /* UserInfo.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = UserInfo.swift; sourceTree = ""; }; 5EFBA8FD21C1011E007B3BB0 /* BackendlessUser.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = BackendlessUser.swift; sourceTree = ""; }; 8C23A8A3096D1AE35832C678 /* Pods_SwiftSDK.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_SwiftSDK.framework; sourceTree = BUILT_PRODUCTS_DIR; }; + 9E8365D62BC5A20C002CEFBC /* PrivacyInfo.xcprivacy */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xml; path = PrivacyInfo.xcprivacy; sourceTree = ""; }; C93A606C5FDA8243A2775FCD /* Pods-SwiftSDK.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-SwiftSDK.debug.xcconfig"; path = "Target Support Files/Pods-SwiftSDK/Pods-SwiftSDK.debug.xcconfig"; sourceTree = ""; }; E4D525417E11CC89EFC57858 /* Pods-SwiftSDK.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-SwiftSDK.release.xcconfig"; path = "Target Support Files/Pods-SwiftSDK/Pods-SwiftSDK.release.xcconfig"; sourceTree = ""; }; E5D55024BA53159CA5811403 /* Pods-SwiftSDKTests.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-SwiftSDKTests.debug.xcconfig"; path = "Target Support Files/Pods-SwiftSDKTests/Pods-SwiftSDKTests.debug.xcconfig"; sourceTree = ""; }; @@ -867,6 +869,7 @@ 5E03A3B822291680005A538D /* Messaging */, 5A2A784B21E6103100EC8007 /* Persistence */, 5E11113821B532BD0044CAED /* Property */, + 9E8365D72BC5A20C002CEFBC /* Resources */, 5E572D4921B8042B000713B0 /* Response */, 5E9718FB221BFE3100857603 /* RT */, 5EB28E1A21B17A490007AC30 /* UserService */, @@ -885,6 +888,14 @@ path = OpResult; sourceTree = ""; }; + 9E8365D72BC5A20C002CEFBC /* Resources */ = { + isa = PBXGroup; + children = ( + 9E8365D62BC5A20C002CEFBC /* PrivacyInfo.xcprivacy */, + ); + path = Resources; + sourceTree = ""; + }; /* End PBXGroup section */ /* Begin PBXHeadersBuildPhase section */ @@ -982,6 +993,7 @@ isa = PBXResourcesBuildPhase; buildActionMask = 2147483647; files = ( + 9E8365D82BC5A20C002CEFBC /* PrivacyInfo.xcprivacy in Resources */, ); runOnlyForDeploymentPostprocessing = 0; };