Skip to content

Commit

Permalink
Merge pull request #226 from ykjchen/privacy
Browse files Browse the repository at this point in the history
Add privacy manifest.
  • Loading branch information
ykjchen authored Feb 21, 2024
2 parents 5031732 + 00a45ec commit f28d58a
Show file tree
Hide file tree
Showing 5 changed files with 50 additions and 2 deletions.
10 changes: 8 additions & 2 deletions Package.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// swift-tools-version:4.2
// swift-tools-version:5.3
// swiftlint:disable line_length
// swiftlint:disable trailing_comma

Expand Down Expand Up @@ -51,7 +51,10 @@ let package = Package(
],
targets: [
.target(
name: "FBLPromises"
name: "FBLPromises",
resources: [
.process("Resources/PrivacyInfo.xcprivacy")
]
),
.target(
name: "FBLPromisesTestHelpers",
Expand Down Expand Up @@ -82,6 +85,9 @@ let package = Package(
name: "Promises",
dependencies: [
"FBLPromises",
],
resources: [
.process("Resources/PrivacyInfo.xcprivacy")
]
),
.target(
Expand Down
7 changes: 7 additions & 0 deletions PromisesObjC.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ Pod::Spec.new do |s|
Objective-C to facilitate writing asynchronous code.
DESC

# Ensure developers won't hit CocoaPods/CocoaPods#11402 with the resource
# bundle for the privacy manifest.
s.cocoapods_version = '>= 1.12.0'

s.ios.deployment_target = '9.0'
s.osx.deployment_target = '10.11'
s.tvos.deployment_target = '9.0'
Expand All @@ -24,6 +28,9 @@ Pod::Spec.new do |s|
s.public_header_files = "Sources/#{s.module_name}/include/**/*.h"
s.private_header_files = "Sources/#{s.module_name}/include/FBLPromisePrivate.h"
s.source_files = "Sources/#{s.module_name}/**/*.{h,m}"
s.resource_bundle = {
"#{s.module_name}_Privacy" => "Sources/#{s.module_name}/Resources/PrivacyInfo.xcprivacy"
}
s.pod_target_xcconfig = {
'DEFINES_MODULE' => 'YES'
}
Expand Down
7 changes: 7 additions & 0 deletions PromisesSwift.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ Pod::Spec.new do |s|
Swift to facilitate writing asynchronous code.
DESC

# Ensure developers won't hit CocoaPods/CocoaPods#11402 with the resource
# bundle for the privacy manifest.
s.cocoapods_version = '>= 1.12.0'

s.ios.deployment_target = '9.0'
s.osx.deployment_target = '10.11'
s.tvos.deployment_target = '9.0'
Expand All @@ -21,5 +25,8 @@ Pod::Spec.new do |s|

s.module_name = 'Promises'
s.source_files = "Sources/#{s.module_name}/*.{swift}"
s.resource_bundle = {
"#{s.module_name}_Privacy" => "Sources/#{s.module_name}/Resources/PrivacyInfo.xcprivacy"
}
s.dependency 'PromisesObjC', "#{s.version}"
end
14 changes: 14 additions & 0 deletions Sources/FBLPromises/Resources/PrivacyInfo.xcprivacy
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<?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/>
<key>NSPrivacyTracking</key>
<false/>
<key>NSPrivacyTrackingDomains</key>
<array/>
</dict>
</plist>
14 changes: 14 additions & 0 deletions Sources/Promises/Resources/PrivacyInfo.xcprivacy
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<?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/>
<key>NSPrivacyTracking</key>
<false/>
<key>NSPrivacyTrackingDomains</key>
<array/>
</dict>
</plist>

0 comments on commit f28d58a

Please sign in to comment.