Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: add privacy manifest #48

Merged
merged 3 commits into from
Apr 8, 2024
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion AmplitudeExperiment.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,20 @@ Pod::Spec.new do |spec|

spec.ios.deployment_target = '10.0'
spec.ios.source_files = 'Sources/Experiment/**/*.{h,swift}'
spec.ios.resources = 'Sources/Experiment/PrivacyInfo.xcprivacy'

spec.osx.deployment_target = '10.13'
spec.osx.source_files = 'sources/Experiment/**/*.{h,swift}'
spec.osx.resources = 'Sources/Experiment/PrivacyInfo.xcprivacy'

spec.tvos.deployment_target = '10.0'
spec.tvos.source_files = 'sources/Experiment/**/*.{h,swift}'
spec.tvos.resources = 'Sources/Experiment/PrivacyInfo.xcprivacy'

spec.watchos.deployment_target = '3.0'
spec.watchos.source_files = 'sources/Experiment/**/*.{h,swift}'

spec.watchos.resources = 'Sources/Experiment/PrivacyInfo.xcprivacy'

spec.pod_target_xcconfig = { 'DEFINES_MODULE' => 'YES' }

spec.dependency 'AnalyticsConnector', '~> 1.0'
Expand Down
6 changes: 5 additions & 1 deletion Experiment.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,13 @@
archiveVersion = 1;
classes = {
};
objectVersion = 52;
objectVersion = 54;
objects = {

/* Begin PBXBuildFile section */
200F89312AB2522C003AD279 /* EvaluationIntegrationTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 200F89302AB2522C003AD279 /* EvaluationIntegrationTests.swift */; };
201A78DF2643AB6100663DCB /* ExperimentUserTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 201A78DE2643AB6100663DCB /* ExperimentUserTests.swift */; };
201FCB602BBB8EB000F07EC1 /* PrivacyInfo.xcprivacy in Resources */ = {isa = PBXBuildFile; fileRef = 201FCB5F2BBB879500F07EC1 /* PrivacyInfo.xcprivacy */; };
2047CE312809FCD9002D2B06 /* UserSessionExposureTrackerTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 2047CE302809FCD9002D2B06 /* UserSessionExposureTrackerTests.swift */; };
2073275A278E42B0002BBD43 /* SessionAnalyticsProvider.swift in Sources */ = {isa = PBXBuildFile; fileRef = 20732759278E42B0002BBD43 /* SessionAnalyticsProvider.swift */; };
207C95FA27A9F0A4008EE143 /* AnalyticsConnector.xcframework in Frameworks */ = {isa = PBXBuildFile; fileRef = 207C95F927A9F0A4008EE143 /* AnalyticsConnector.xcframework */; };
Expand Down Expand Up @@ -66,6 +67,7 @@
/* Begin PBXFileReference section */
200F89302AB2522C003AD279 /* EvaluationIntegrationTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = EvaluationIntegrationTests.swift; sourceTree = "<group>"; };
201A78DE2643AB6100663DCB /* ExperimentUserTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ExperimentUserTests.swift; sourceTree = "<group>"; };
201FCB5F2BBB879500F07EC1 /* PrivacyInfo.xcprivacy */ = {isa = PBXFileReference; lastKnownFileType = text.xml; path = PrivacyInfo.xcprivacy; sourceTree = "<group>"; };
2047CE302809FCD9002D2B06 /* UserSessionExposureTrackerTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = UserSessionExposureTrackerTests.swift; sourceTree = "<group>"; };
20732759278E42B0002BBD43 /* SessionAnalyticsProvider.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SessionAnalyticsProvider.swift; sourceTree = "<group>"; };
207C95F927A9F0A4008EE143 /* AnalyticsConnector.xcframework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.xcframework; name = AnalyticsConnector.xcframework; path = Carthage/Build/AnalyticsConnector.xcframework; sourceTree = "<group>"; };
Expand Down Expand Up @@ -172,6 +174,7 @@
E914961125796DA800C64B38 /* Experiment */ = {
isa = PBXGroup;
children = (
201FCB5F2BBB879500F07EC1 /* PrivacyInfo.xcprivacy */,
20F8C8C32AAFE2A100B5717C /* Murmur3.swift */,
20F8C8C62AAFE2B300B5717C /* SemanticVersion.swift */,
20F8C8C92AAFE2BF00B5717C /* TopologicalSort.swift */,
Expand Down Expand Up @@ -341,6 +344,7 @@
isa = PBXResourcesBuildPhase;
buildActionMask = 2147483647;
files = (
201FCB602BBB8EB000F07EC1 /* PrivacyInfo.xcprivacy in Resources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
Expand Down
3 changes: 2 additions & 1 deletion Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@ let package = Package(
.product(name: "AnalyticsConnector", package: "analytics-connector-ios")
],
path: "Sources/Experiment",
exclude: ["Info.plist"]),
exclude: ["Info.plist"],
resources: [.copy("PrivacyInfo.xcprivacy")]),
.testTarget(
name: "ExperimentTests",
dependencies: ["Experiment"],
Expand Down
33 changes: 33 additions & 0 deletions Sources/Experiment/PrivacyInfo.xcprivacy
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
<?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>
<dict>
<key>NSPrivacyAccessedAPIType</key>
<string>NSPrivacyAccessedAPICategoryUserDefaults</string>
<key>NSPrivacyAccessedAPITypeReasons</key>
<array>
<string>1C8F.1</string>
</array>
</dict>
</array>
<key>NSPrivacyCollectedDataTypes</key>
<array>
<dict>
<key>NSPrivacyCollectedDataType</key>
<string>NSPrivacyCollectedDataTypeDeviceID</string>
<key>NSPrivacyCollectedDataTypeLinked</key>
<true/>
<key>NSPrivacyCollectedDataTypeTracking</key>
<false/>
<key>NSPrivacyCollectedDataTypePurposes</key>
<array>
<string>NSPrivacyCollectedDataTypePurposeAppFunctionality</string>
<string>NSPrivacyCollectedDataTypePurposeProductPersonalization</string>
</array>
</dict>
</array>
</dict>
</plist>
Loading