Skip to content

Commit

Permalink
Add xcprivacy manifest info. (#617)
Browse files Browse the repository at this point in the history
There are no calls within the library to the apis that need reasons, so the
manifest is empty.
  • Loading branch information
thomasvl authored Jan 26, 2024
1 parent 3dd7352 commit 07f591b
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 2 deletions.
3 changes: 3 additions & 0 deletions GoogleAPIClientForREST.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@ Pod::Spec.new do |s|
s.subspec 'Core' do |sp|
sp.source_files = 'Sources/Core/**/*.{h,m}'
sp.public_header_files = 'Sources/Core/Public/GoogleAPIClientForREST/*.h'
sp.resource_bundle = {
"GoogleAPIClientForREST_Privacy" => "Sources/Core/Resources/PrivacyInfo.xcprivacy"
}
end

s.test_spec 'Tests' do |sp|
Expand Down
9 changes: 7 additions & 2 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.
import PackageDescription

Expand Down Expand Up @@ -1117,8 +1117,13 @@ let package = Package(
targets: [
.target(
name: "GoogleAPIClientForRESTCore",
dependencies: ["GTMSessionFetcherFull"],
dependencies: [
.product(name: "GTMSessionFetcherFull", package: "gtm-session-fetcher")
],
path: "Sources/Core",
resources: [
.process("Resources/PrivacyInfo.xcprivacy")
],
publicHeadersPath: "Public"
),
.testTarget(
Expand Down
14 changes: 14 additions & 0 deletions Sources/Core/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 07f591b

Please sign in to comment.