Skip to content

Commit

Permalink
Merge pull request #553 from SourcePointUSA/DIA-3415_add_privacy_mani…
Browse files Browse the repository at this point in the history
…fest

DIA-3415 add privacy manifest
  • Loading branch information
andresilveirah committed Feb 26, 2024
2 parents 0c9658c + 22d8807 commit 6b85dbe
Show file tree
Hide file tree
Showing 8 changed files with 90 additions and 13 deletions.
7 changes: 6 additions & 1 deletion ConsentViewController.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,12 @@ Pod::Spec.new do |s|
s.tvos.deployment_target = '12.0'
s.tvos.exclude_files = 'ConsentViewController/Classes/Views/iOS'
s.tvos.dependency 'Down', '~> 0.11.0'
s.resource_bundles = { 'ConsentViewController' => ['ConsentViewController/Assets/**/*', 'Pod/Classes/**/*.{storyboard,xib,xcassets,json,imageset,png,js}'] }
s.resource_bundles = {
'ConsentViewController' => [
'ConsentViewController/Assets/**/*',
'Pod/Classes/**/*.{xcprivacy,storyboard,xib,xcassets,json,imageset,png,js}'
]
}
s.resources = "ConsentViewController/**/*.{js,json,png}"
s.info_plist = {
'SPEnv' => 'prod'
Expand Down
51 changes: 43 additions & 8 deletions ConsentViewController/Assets/PrivacyInfo.xcprivacy
Original file line number Diff line number Diff line change
@@ -1,12 +1,47 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<!--
PrivacyInfo.xcprivacy
ConsentViewController
Created by Andre Herculano on 21.02.24.
Copyright (c) 2024 CocoaPods. All rights reserved.
-->
<plist version="1.0">
<dict/>
<dict>
<key>NSPrivacyTracking</key>
<false/>
<key>NSPrivacyCollectedDataTypes</key>
<array>
<dict>
<key>NSPrivacyCollectedDataType</key>
<string>NSPrivacyCollectedDataTypeUserID</string>
<key>NSPrivacyCollectedDataTypeLinked</key>
<true/>
<key>NSPrivacyCollectedDataTypeTracking</key>
<false/>
<key>NSPrivacyCollectedDataTypePurposes</key>
<array>
<string>NSPrivacyCollectedDataTypePurposeAppFunctionality</string>
</array>
</dict>
<dict>
<key>NSPrivacyCollectedDataType</key>
<string>NSPrivacyCollectedDataTypeProductInteraction</string>
<key>NSPrivacyCollectedDataTypeLinked</key>
<true/>
<key>NSPrivacyCollectedDataTypeTracking</key>
<false/>
<key>NSPrivacyCollectedDataTypePurposes</key>
<array>
<string>NSPrivacyCollectedDataTypePurposeAppFunctionality</string>
<string>NSPrivacyCollectedDataTypePurposeAnalytics</string>
</array>
</dict>
</array>
<key>NSPrivacyAccessedAPITypes</key>
<array>
<dict>
<key>NSPrivacyAccessedAPITypeReasons</key>
<array>
<string>CA92.1</string>
</array>
<key>NSPrivacyAccessedAPIType</key>
<string>NSPrivacyAccessedAPICategoryUserDefaults</string>
</dict>
</array>
</dict>
</plist>
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,7 @@ class SourcepointClientCoordinator: SPClientCoordinator {
self.language = language
self.campaigns = campaigns
self.includeData = IncludeData(
gppConfig: campaigns.ccpa?.GPPConfig ??
gppConfig: campaigns.ccpa?.GPPConfig ??
SPGPPConfig(uspString: campaigns.usnat?.supportLegacyUSPString)
)
self.storage = storage
Expand Down
10 changes: 10 additions & 0 deletions Example/ConsentViewController.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -347,6 +347,9 @@
82CD6F852B59CC3600CAD663 /* Down in Frameworks */ = {isa = PBXBuildFile; productRef = 82CD6F842B59CC3600CAD663 /* Down */; };
82CFB3EF2A431D89002B0EF2 /* SPCCPAConsentSpec.swift in Sources */ = {isa = PBXBuildFile; fileRef = 82CFB3EE2A431D89002B0EF2 /* SPCCPAConsentSpec.swift */; };
82CFDE312924057500F86A69 /* JSONLocalDataViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 82CFDE302924057500F86A69 /* JSONLocalDataViewController.swift */; };
82D6CE222B8CD186004677E9 /* PrivacyInfo.xcprivacy in Resources */ = {isa = PBXBuildFile; fileRef = 82D6CE212B8CD186004677E9 /* PrivacyInfo.xcprivacy */; };
82D6CE2E2B8CE171004677E9 /* PrivacyInfo.xcprivacy in Resources */ = {isa = PBXBuildFile; fileRef = 82D6CE2D2B8CE171004677E9 /* PrivacyInfo.xcprivacy */; };
82D6CE2F2B8CE171004677E9 /* PrivacyInfo.xcprivacy in Resources */ = {isa = PBXBuildFile; fileRef = 82D6CE2D2B8CE171004677E9 /* PrivacyInfo.xcprivacy */; };
82D8447D2B7AA5AE0069714D /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 82D8447C2B7AA5AE0069714D /* AppDelegate.swift */; };
82D8447F2B7AA5AE0069714D /* SceneDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 82D8447E2B7AA5AE0069714D /* SceneDelegate.swift */; };
82D844812B7AA5AE0069714D /* ViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 82D844802B7AA5AE0069714D /* ViewController.swift */; };
Expand Down Expand Up @@ -787,6 +790,8 @@
82CD6E9D2B59CA2C00CAD663 /* SPUserDefaults.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = SPUserDefaults.swift; sourceTree = "<group>"; };
82CFB3EE2A431D89002B0EF2 /* SPCCPAConsentSpec.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SPCCPAConsentSpec.swift; sourceTree = "<group>"; };
82CFDE302924057500F86A69 /* JSONLocalDataViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = JSONLocalDataViewController.swift; sourceTree = "<group>"; };
82D6CE212B8CD186004677E9 /* PrivacyInfo.xcprivacy */ = {isa = PBXFileReference; lastKnownFileType = text.xml; path = PrivacyInfo.xcprivacy; sourceTree = "<group>"; };
82D6CE2D2B8CE171004677E9 /* PrivacyInfo.xcprivacy */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xml; path = PrivacyInfo.xcprivacy; sourceTree = "<group>"; };
82D8447A2B7AA5AE0069714D /* SourcepointFirebaseDemo.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = SourcepointFirebaseDemo.app; sourceTree = BUILT_PRODUCTS_DIR; };
82D8447C2B7AA5AE0069714D /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = "<group>"; };
82D8447E2B7AA5AE0069714D /* SceneDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SceneDelegate.swift; sourceTree = "<group>"; };
Expand Down Expand Up @@ -1065,6 +1070,7 @@
0B312F5E2ABC504000B62E23 /* Assets */ = {
isa = PBXGroup;
children = (
82D6CE2D2B8CE171004677E9 /* PrivacyInfo.xcprivacy */,
0B312F5F2ABC504000B62E23 /* images */,
0B312F622ABC504000B62E23 /* javascript */,
);
Expand Down Expand Up @@ -1469,6 +1475,7 @@
607FACDE1AFB9204008FA782 /* LaunchScreen.xib */,
607FACD31AFB9204008FA782 /* Supporting Files */,
8225BAB1298BF1F200C2E5FA /* Statuses.swift */,
82D6CE212B8CD186004677E9 /* PrivacyInfo.xcprivacy */,
);
name = "Example for ConsentViewController";
path = ConsentViewController;
Expand Down Expand Up @@ -2664,6 +2671,7 @@
isa = PBXResourcesBuildPhase;
buildActionMask = 2147483647;
files = (
82D6CE2E2B8CE171004677E9 /* PrivacyInfo.xcprivacy in Resources */,
0B3130072ABC50D200B62E23 /* SPJSReceiver.js in Resources */,
);
runOnlyForDeploymentPostprocessing = 0;
Expand All @@ -2680,6 +2688,7 @@
0B3130052ABC50C300B62E23 /* Barcode.png in Resources */,
82CD6F212B59CA2C00CAD663 /* SPCCPAVendorDetailsViewController.xib in Resources */,
82CD6EEB2B59CA2C00CAD663 /* SPGDPRCategoryDetailsViewController.xib in Resources */,
82D6CE2F2B8CE171004677E9 /* PrivacyInfo.xcprivacy in Resources */,
82CD6F152B59CA2C00CAD663 /* SPCCPAManagePreferenceViewController.xib in Resources */,
82CD6F032B59CA2C00CAD663 /* SPPMHeader.xib in Resources */,
0B3130062ABC50C300B62E23 /* SP_Icon.png in Resources */,
Expand Down Expand Up @@ -2720,6 +2729,7 @@
files = (
607FACDB1AFB9204008FA782 /* Main.storyboard in Resources */,
607FACE01AFB9204008FA782 /* LaunchScreen.xib in Resources */,
82D6CE222B8CD186004677E9 /* PrivacyInfo.xcprivacy in Resources */,
607FACDD1AFB9204008FA782 /* Images.xcassets in Resources */,
);
runOnlyForDeploymentPostprocessing = 0;
Expand Down
27 changes: 27 additions & 0 deletions Example/ConsentViewController/PrivacyInfo.xcprivacy
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>NSPrivacyAccessedAPITypes</key>
<array/>
<key>NSPrivacyCollectedDataTypes</key>
<array>
<dict>
<key>NSPrivacyCollectedDataType</key>
<string>NSPrivacyCollectedDataTypeDeviceID</string>
<key>NSPrivacyCollectedDataTypeLinked</key>
<true/>
<key>NSPrivacyCollectedDataTypeTracking</key>
<true/>
<key>NSPrivacyCollectedDataTypePurposes</key>
<array>
<string></string>
</array>
</dict>
</array>
<key>NSPrivacyTrackingDomains</key>
<array/>
<key>NSPrivacyTracking</key>
<true/>
</dict>
</plist>
2 changes: 1 addition & 1 deletion Example/Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ EXTERNAL SOURCES:
:path: "../"

SPEC CHECKSUMS:
ConsentViewController: a72c1a46f6b3f829682974e6b16b599f6f178fa5
ConsentViewController: 48ab8f0a077b6001b3617a91601297ebceacfe96
Down: b6ba1bc985c9d2f4e15e3b293d2207766fa12612
FirebaseAnalytics: d275f288881d4417f780115dd52c05fa9752d530
FirebaseCore: 74f647ad9739ea75112ce6c3b3b91f5488ce1122
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Example/Pods/Manifest.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 6b85dbe

Please sign in to comment.