From 7de74af45e597fe4b1fab0a7f5f6068f6e16fd85 Mon Sep 17 00:00:00 2001 From: Vladimir - Work Date: Fri, 10 May 2024 11:39:35 -0400 Subject: [PATCH] added PrivacyInfo.xcprivacy as a requirement for using UserDefaults --- .../contents.xcworkspacedata | 7 ++++++ .../xcshareddata/IDEWorkspaceChecks.plist | 8 +++++++ .../xcshareddata/swiftpm/Package.resolved | 15 ++++++++++++ Package.swift | 3 ++- Sources/Resources/PrivacyInfo.xcprivacy | 23 +++++++++++++++++++ attentive-ios-sdk.xcodeproj/project.pbxproj | 13 +++++++++++ 6 files changed, 68 insertions(+), 1 deletion(-) create mode 100644 ExampleSwift/ExampleSwift.xcodeproj/project.xcworkspace/contents.xcworkspacedata create mode 100644 ExampleSwift/ExampleSwift.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist create mode 100644 ExampleSwift/ExampleSwift.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved create mode 100644 Sources/Resources/PrivacyInfo.xcprivacy diff --git a/ExampleSwift/ExampleSwift.xcodeproj/project.xcworkspace/contents.xcworkspacedata b/ExampleSwift/ExampleSwift.xcodeproj/project.xcworkspace/contents.xcworkspacedata new file mode 100644 index 0000000..919434a --- /dev/null +++ b/ExampleSwift/ExampleSwift.xcodeproj/project.xcworkspace/contents.xcworkspacedata @@ -0,0 +1,7 @@ + + + + + diff --git a/ExampleSwift/ExampleSwift.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist b/ExampleSwift/ExampleSwift.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist new file mode 100644 index 0000000..18d9810 --- /dev/null +++ b/ExampleSwift/ExampleSwift.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist @@ -0,0 +1,8 @@ + + + + + IDEDidComputeMac32BitWarning + + + diff --git a/ExampleSwift/ExampleSwift.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved b/ExampleSwift/ExampleSwift.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved new file mode 100644 index 0000000..cbbd090 --- /dev/null +++ b/ExampleSwift/ExampleSwift.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved @@ -0,0 +1,15 @@ +{ + "originHash" : "62dc5f9606142e259275d938027b59c944959560f934dd2210d0e0cc4420a08d", + "pins" : [ + { + "identity" : "attentive-ios-sdk", + "kind" : "remoteSourceControl", + "location" : "https://github.com/attentive-mobile/attentive-ios-sdk", + "state" : { + "branch" : "main", + "revision" : "ab9b8725f97cd9ea70b548b8adac1c6b54a73bfe" + } + } + ], + "version" : 3 +} diff --git a/Package.swift b/Package.swift index d583008..39281ef 100644 --- a/Package.swift +++ b/Package.swift @@ -13,7 +13,8 @@ let package = Package( targets: [ .target( name: "ATTNSDKFramework", - path: "Sources/" + path: "Sources/", + resources: [ .process("Resources") ] ) ] ) diff --git a/Sources/Resources/PrivacyInfo.xcprivacy b/Sources/Resources/PrivacyInfo.xcprivacy new file mode 100644 index 0000000..5704bed --- /dev/null +++ b/Sources/Resources/PrivacyInfo.xcprivacy @@ -0,0 +1,23 @@ + + + + + NSPrivacyTracking + + NSPrivacyTrackingDomains + + NSPrivacyCollectedDataTypes + + NSPrivacyAccessedAPITypes + + + NSPrivacyAccessedAPIType + NSPrivacyAccessedAPICategoryUserDefaults + NSPrivacyAccessedAPITypeReasons + + CA92.1 + + + + + diff --git a/attentive-ios-sdk.xcodeproj/project.pbxproj b/attentive-ios-sdk.xcodeproj/project.pbxproj index 1a2fb46..c936a8a 100644 --- a/attentive-ios-sdk.xcodeproj/project.pbxproj +++ b/attentive-ios-sdk.xcodeproj/project.pbxproj @@ -76,6 +76,7 @@ 69BA6D6F29BA3B1700CCA573 /* ATTNCreativeUrlFormatterTest.m in Sources */ = {isa = PBXBuildFile; fileRef = 69BA6D6E29BA3B1700CCA573 /* ATTNCreativeUrlFormatterTest.m */; }; 69BA6D7129BA3B5900CCA573 /* ATTNCreativeUrlFormatter.m in Sources */ = {isa = PBXBuildFile; fileRef = 69BA6D7029BA3B5900CCA573 /* ATTNCreativeUrlFormatter.m */; }; 69BA6D7329BA3B9000CCA573 /* ATTNCreativeUrlFormatter.h in Headers */ = {isa = PBXBuildFile; fileRef = 69BA6D7229BA3B9000CCA573 /* ATTNCreativeUrlFormatter.h */; }; + FBF5C2942BEE65830022FE6B /* PrivacyInfo.xcprivacy in Resources */ = {isa = PBXBuildFile; fileRef = FBF5C2932BEE65830022FE6B /* PrivacyInfo.xcprivacy */; }; /* End PBXBuildFile section */ /* Begin PBXContainerItemProxy section */ @@ -163,6 +164,7 @@ 69BA6D6E29BA3B1700CCA573 /* ATTNCreativeUrlFormatterTest.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; name = ATTNCreativeUrlFormatterTest.m; path = Tests/ATTNCreativeUrlFormatterTest.m; sourceTree = ""; }; 69BA6D7029BA3B5900CCA573 /* ATTNCreativeUrlFormatter.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; name = ATTNCreativeUrlFormatter.m; path = Sources/ATTNCreativeUrlFormatter.m; sourceTree = ""; }; 69BA6D7229BA3B9000CCA573 /* ATTNCreativeUrlFormatter.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = ATTNCreativeUrlFormatter.h; path = Sources/ATTNCreativeUrlFormatter.h; sourceTree = ""; }; + FBF5C2932BEE65830022FE6B /* PrivacyInfo.xcprivacy */ = {isa = PBXFileReference; lastKnownFileType = text.xml; path = PrivacyInfo.xcprivacy; sourceTree = ""; }; /* End PBXFileReference section */ /* Begin PBXFrameworksBuildPhase section */ @@ -232,6 +234,7 @@ 58332ED9292EC21100B1ECF3 /* Sources */ = { isa = PBXGroup; children = ( + FBF5C2922BEE65650022FE6B /* Resources */, 58C9CA5429E5EE6700EF036E /* Internal */, 5806DE772977570100C18FFA /* Events */, 6972874E29353FEA003F1BEC /* ATTNPersistentStorage.h */, @@ -338,6 +341,15 @@ path = Sources/Internal; sourceTree = ""; }; + FBF5C2922BEE65650022FE6B /* Resources */ = { + isa = PBXGroup; + children = ( + FBF5C2932BEE65830022FE6B /* PrivacyInfo.xcprivacy */, + ); + name = Resources; + path = Sources/Resources; + sourceTree = ""; + }; /* End PBXGroup section */ /* Begin PBXHeadersBuildPhase section */ @@ -452,6 +464,7 @@ files = ( 58332EE1292EC26000B1ECF3 /* LICENSE in Resources */, 58332EE0292EC26000B1ECF3 /* README.md in Resources */, + FBF5C2942BEE65830022FE6B /* PrivacyInfo.xcprivacy in Resources */, 58332EDD292EC25500B1ECF3 /* attentive-ios-sdk.podspec in Resources */, ); runOnlyForDeploymentPostprocessing = 0;