From cc82689f835d5397a81355f3fc99fda66a18baab Mon Sep 17 00:00:00 2001 From: Thomas Van Lenten Date: Fri, 19 Jan 2024 12:35:26 -0500 Subject: [PATCH] Add xcprivacy manifest info. There are no calls within the library to the apis that need reasons, so the manifest is empty. --- GoogleAPIClientForREST.podspec | 3 +++ Package.swift | 9 +++++++-- Sources/Core/Resources/PrivacyInfo.xcprivacy | 14 ++++++++++++++ 3 files changed, 24 insertions(+), 2 deletions(-) create mode 100644 Sources/Core/Resources/PrivacyInfo.xcprivacy diff --git a/GoogleAPIClientForREST.podspec b/GoogleAPIClientForREST.podspec index 0f2d4a798..72c38d683 100644 --- a/GoogleAPIClientForREST.podspec +++ b/GoogleAPIClientForREST.podspec @@ -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| diff --git a/Package.swift b/Package.swift index 69cd33970..c25f7a7df 100644 --- a/Package.swift +++ b/Package.swift @@ -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 @@ -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( diff --git a/Sources/Core/Resources/PrivacyInfo.xcprivacy b/Sources/Core/Resources/PrivacyInfo.xcprivacy new file mode 100644 index 000000000..5397adcb7 --- /dev/null +++ b/Sources/Core/Resources/PrivacyInfo.xcprivacy @@ -0,0 +1,14 @@ + + + + + NSPrivacyAccessedAPITypes + + NSPrivacyCollectedDataTypes + + NSPrivacyTracking + + NSPrivacyTrackingDomains + + +