Skip to content

Commit

Permalink
chore: Add privacy manifest to SPM/Cocoapods (#148)
Browse files Browse the repository at this point in the history
  • Loading branch information
crleona authored Mar 26, 2024
1 parent 1eb1633 commit e0d9e64
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 1 deletion.
10 changes: 10 additions & 0 deletions Amplitude-Swift.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
3E281B8E2B96833D009D913B /* DiagnosticsTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 3E281B8D2B96833D009D913B /* DiagnosticsTests.swift */; };
3E281B912B9BCC14009D913B /* DispatchQueueHolder.swift in Sources */ = {isa = PBXBuildFile; fileRef = 3E281B902B9BCC14009D913B /* DispatchQueueHolder.swift */; };
4E2B646B2BA127460010E6F8 /* UIKitScreenViewsPluginTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4E2B646A2BA127460010E6F8 /* UIKitScreenViewsPluginTests.swift */; };
4E3871622BB34DBC002890AB /* PrivacyInfo.xcprivacy in Resources */ = {isa = PBXBuildFile; fileRef = B6DF481F2B5B45BE00B3E6AA /* PrivacyInfo.xcprivacy */; };
8EDEC02B99EE2092B567A61D /* ObjCIngestionMetadata.swift in Sources */ = {isa = PBXBuildFile; fileRef = 8EDEC500EBDA8B813056E2DB /* ObjCIngestionMetadata.swift */; };
8EDEC1073A308B12B5CCD975 /* AnalyticsConnectorPlugin.swift in Sources */ = {isa = PBXBuildFile; fileRef = 8EDECD39BAA97DD4320C0AA5 /* AnalyticsConnectorPlugin.swift */; };
8EDEC10C56FA7F7DEEB48B6F /* ObjCBaseEvent.swift in Sources */ = {isa = PBXBuildFile; fileRef = 8EDECCFD935A0C5A6FE85E87 /* ObjCBaseEvent.swift */; };
Expand Down Expand Up @@ -557,6 +558,7 @@
OBJ_87 /* Sources */,
OBJ_125 /* Frameworks */,
3E281B8F2B98EC92009D913B /* ShellScript */,
4E3871612BB34DB1002890AB /* Resources */,
);
buildRules = (
);
Expand Down Expand Up @@ -635,6 +637,14 @@
/* End PBXProject section */

/* Begin PBXResourcesBuildPhase section */
4E3871612BB34DB1002890AB /* Resources */ = {
isa = PBXResourcesBuildPhase;
buildActionMask = 2147483647;
files = (
4E3871622BB34DBC002890AB /* PrivacyInfo.xcprivacy in Resources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
BA994B9C2A4F4FBE00D0913F /* Resources */ = {
isa = PBXResourcesBuildPhase;
buildActionMask = 2147483647;
Expand Down
4 changes: 4 additions & 0 deletions AmplitudeSwift.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -13,17 +13,21 @@ Pod::Spec.new do |s|

s.ios.deployment_target = '13.0'
s.ios.source_files = 'Sources/Amplitude/**/*.{h,swift}'
s.ios.resources = 'Sources/Amplitude/PrivacyInfo.xcprivacy'

s.tvos.deployment_target = '13.0'
s.tvos.source_files = 'Sources/Amplitude/**/*.{h,swift}'
s.tvos.resources = 'Sources/Amplitude/PrivacyInfo.xcprivacy'

s.osx.deployment_target = '10.15'
s.osx.source_files = 'Sources/Amplitude/**/*.{h,swift}'
s.osx.resources = 'Sources/Amplitude/PrivacyInfo.xcprivacy'

# temporary disable watchos support due to: https://github.com/CocoaPods/CocoaPods/issues/11558
# unpaired watchos will cause failure, the fix of the above issue is merged but not released
# s.watchos.deployment_target = '7.0'
# s.watchos.source_files = 'Sources/Amplitude/**/*.{h,swift}'
# s.watchos.resources = 'Sources/Amplitude/PrivacyInfo.xcprivacy'

s.dependency 'AnalyticsConnector', '~> 1.0.1'

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/Amplitude",
exclude: ["../../Examples/", "../../Tests/"]
exclude: ["../../Examples/", "../../Tests/"],
resources: [.copy("PrivacyInfo.xcprivacy")]
),
.testTarget(
name: "Amplitude-SwiftTests",
Expand Down

0 comments on commit e0d9e64

Please sign in to comment.