diff --git a/GoogleAPIClientForREST.podspec b/GoogleAPIClientForREST.podspec index d290c1523..c3063afc6 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 + + +