Skip to content

Commit

Permalink
Merge pull request #992 from cdhoffmann/privacy_manifest
Browse files Browse the repository at this point in the history
Add a privacy manifest
  • Loading branch information
praveek committed Feb 2, 2024
2 parents 55f0891 + 8e7858a commit c015f49
Show file tree
Hide file tree
Showing 7 changed files with 61 additions and 8 deletions.
1 change: 1 addition & 0 deletions AEPCore.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ Pod::Spec.new do |s|


s.source_files = 'AEPCore/Sources/**/*.swift'
s.resource_bundles = { 'AEPCore_Resources' => ['AEPCore/Sources/PrivacyInfo.xcprivacy'] }


end
12 changes: 10 additions & 2 deletions AEPCore.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -359,6 +359,8 @@
753E9B432ABCDB1400A82A27 /* AEPLifecycle.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 3FE6DDD124C62EE60065EA05 /* AEPLifecycle.framework */; };
753E9B442ABCDB7D00A82A27 /* AEPIdentity.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 3FE6DE2F24C642330065EA05 /* AEPIdentity.framework */; };
75408CF72948EA0A00C44CE1 /* AtomicCounterTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 75408CF62948EA0A00C44CE1 /* AtomicCounterTests.swift */; };
754965C42B607861000E49B0 /* PrivacyInfo.xcprivacy in Resources */ = {isa = PBXBuildFile; fileRef = 754965C32B607861000E49B0 /* PrivacyInfo.xcprivacy */; };
754965C82B6421A0000E49B0 /* PrivacyInfo.xcprivacy in Resources */ = {isa = PBXBuildFile; fileRef = 754965C72B6421A0000E49B0 /* PrivacyInfo.xcprivacy */; };
75550A3F2A9930A500747BB7 /* NamedCollectionDataStoreFunctionalTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 75550A3E2A9930A500747BB7 /* NamedCollectionDataStoreFunctionalTests.swift */; };
75C0D9052A9D545100EF74BC /* DatastoreUtilities.swift in Sources */ = {isa = PBXBuildFile; fileRef = 75C0D9042A9D545100EF74BC /* DatastoreUtilities.swift */; };
75C0D9062AA1287B00EF74BC /* AEPServicesMocks.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 3FE6DDA924C62C090065EA05 /* AEPServicesMocks.framework */; };
Expand Down Expand Up @@ -1056,6 +1058,8 @@
7522618C2AABBE9600D59847 /* UserDefaultMigrationConstants.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = UserDefaultMigrationConstants.swift; sourceTree = "<group>"; };
7522618E2AAF6E2400D59847 /* UserDefaultMigratorTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = UserDefaultMigratorTests.swift; sourceTree = "<group>"; };
75408CF62948EA0A00C44CE1 /* AtomicCounterTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AtomicCounterTests.swift; sourceTree = "<group>"; };
754965C32B607861000E49B0 /* PrivacyInfo.xcprivacy */ = {isa = PBXFileReference; lastKnownFileType = text.xml; path = PrivacyInfo.xcprivacy; sourceTree = "<group>"; };
754965C72B6421A0000E49B0 /* PrivacyInfo.xcprivacy */ = {isa = PBXFileReference; lastKnownFileType = file; name = PrivacyInfo.xcprivacy; path = AEPServices/Sources/PrivacyInfo.xcprivacy; sourceTree = SOURCE_ROOT; };
75550A3E2A9930A500747BB7 /* NamedCollectionDataStoreFunctionalTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = NamedCollectionDataStoreFunctionalTests.swift; sourceTree = "<group>"; };
75C0D9042A9D545100EF74BC /* DatastoreUtilities.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = DatastoreUtilities.swift; sourceTree = "<group>"; };
7814B23225CB455200841429 /* URL+Validator.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = "URL+Validator.swift"; sourceTree = "<group>"; };
Expand Down Expand Up @@ -1377,6 +1381,7 @@
3FB66AA524CA004400502CAF /* eventhub */,
3FB66AB324CA004400502CAF /* rules */,
21CAC0D92422917600C11388 /* AEPCore.h */,
754965C32B607861000E49B0 /* PrivacyInfo.xcprivacy */,
21CAC0DA2422917600C11388 /* Info.plist */,
);
name = Sources;
Expand Down Expand Up @@ -1524,16 +1529,17 @@
24B4934824D337B300AA38D9 /* Sources */ = {
isa = PBXGroup;
children = (
243DCE4624C7AA2800E99AD9 /* AEPServices.h */,
3F0397B924BE5FF30019F095 /* Info.plist */,
754965C72B6421A0000E49B0 /* PrivacyInfo.xcprivacy */,
921EE17A2579E89E00A119FA /* ui */,
3F03979F24BE5FF30019F095 /* cache */,
3F0397B224BE5FF30019F095 /* dataqueue */,
3F0397A624BE5FF30019F095 /* log */,
3F0397AA24BE5FF30019F095 /* network */,
3F0397BA24BE5FF30019F095 /* storage */,
3F0397E124BE60910019F095 /* utility */,
243DCE4624C7AA2800E99AD9 /* AEPServices.h */,
3F0397BE24BE5FF30019F095 /* ApplicationSystemInfoService.swift */,
3F0397B924BE5FF30019F095 /* Info.plist */,
3F0397A524BE5FF30019F095 /* ServiceProvider.swift */,
3F0397BF24BE5FF30019F095 /* SystemInfoService.swift */,
3F0397C024BE5FF30019F095 /* URLOpening.swift */,
Expand Down Expand Up @@ -2643,6 +2649,7 @@
isa = PBXResourcesBuildPhase;
buildActionMask = 2147483647;
files = (
754965C42B607861000E49B0 /* PrivacyInfo.xcprivacy in Resources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
Expand Down Expand Up @@ -2706,6 +2713,7 @@
isa = PBXResourcesBuildPhase;
buildActionMask = 2147483647;
files = (
754965C82B6421A0000E49B0 /* PrivacyInfo.xcprivacy in Resources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
Expand Down
19 changes: 19 additions & 0 deletions AEPCore/Sources/PrivacyInfo.xcprivacy
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
<?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>NSPrivacyCollectedDataTypes</key>
<array/>
<key>NSPrivacyAccessedAPITypes</key>
<array>
<dict>
<key>NSPrivacyAccessedAPIType</key>
<string>NSPrivacyAccessedAPICategoryUserDefaults</string>
<key>NSPrivacyAccessedAPITypeReasons</key>
<array>
<string>1C8F.1</string>
</array>
</dict>
</array>
</dict>
</plist>
1 change: 1 addition & 0 deletions AEPServices.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ Pod::Spec.new do |s|
s.tvos.deployment_target = '11.0'

s.source_files = 'AEPServices/Sources/**/*.swift'
s.resource_bundles = { 'AEPServices_Resources' => ['AEPServices/Sources/PrivacyInfo.xcprivacy'] }

s.pod_target_xcconfig = { 'BUILD_LIBRARY_FOR_DISTRIBUTION' => 'YES' }
s.swift_version = '5.1'
Expand Down
19 changes: 19 additions & 0 deletions AEPServices/Sources/PrivacyInfo.xcprivacy
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
<?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>NSPrivacyCollectedDataTypes</key>
<array/>
<key>NSPrivacyAccessedAPITypes</key>
<array>
<dict>
<key>NSPrivacyAccessedAPIType</key>
<string>NSPrivacyAccessedAPICategoryUserDefaults</string>
<key>NSPrivacyAccessedAPITypeReasons</key>
<array>
<string>1C8F.1</string>
</array>
</dict>
</array>
</dict>
</plist>
15 changes: 10 additions & 5 deletions Package.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// swift-tools-version:5.1
// swift-tools-version:5.3
// The swift-tools-version declares the minimum version of Swift required to build this package.

/*
Expand Down Expand Up @@ -30,17 +30,22 @@ let package = Package(
],
targets: [
.target(name: "AEPCore",
dependencies: ["AEPServices", "AEPRulesEngine"],
path: "AEPCore/Sources"),
dependencies: ["AEPServices", .product(name: "AEPRulesEngine", package: "aepsdk-rulesengine-ios")],
path: "AEPCore/Sources",
resources: [
.process("PrivacyInfo.xcprivacy")
]),
.target(name: "AEPIdentity",
dependencies: ["AEPCore"],
path: "AEPIdentity/Sources"),
.target(name: "AEPLifecycle",
dependencies: ["AEPCore"],
path: "AEPLifecycle/Sources"),
.target(name: "AEPServices",
dependencies: [],
path: "AEPServices/Sources"),
path: "AEPServices/Sources",
resources: [
.process("PrivacyInfo.xcprivacy")
]),
.target(name: "AEPSignal",
dependencies: ["AEPCore"],
path: "AEPSignal/Sources"),
Expand Down
2 changes: 1 addition & 1 deletion Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,4 @@ SPEC CHECKSUMS:

PODFILE CHECKSUM: acb2eae490811dde6b01fe47b58f15a93d08247f

COCOAPODS: 1.12.1
COCOAPODS: 1.14.3

0 comments on commit c015f49

Please sign in to comment.