From 174a4b51cb37226daa1128c502536888d3a05e9f Mon Sep 17 00:00:00 2001 From: Nick Cooke <36927374+ncooke3@users.noreply.github.com> Date: Tue, 13 Feb 2024 12:37:30 -0500 Subject: [PATCH] [leveldb] Add privacy manifest for SPM / CocoaPods (#9) * [leveldb] Add privacy manifest for SPM / CocoaPods * Exclude files that became problematic after bumping to STV 5.3 --- Package.swift | 5 ++++- Resources/PrivacyInfo.xcprivacy | 26 ++++++++++++++++++++++++++ leveldb-library.podspec | 4 ++++ 3 files changed, 34 insertions(+), 1 deletion(-) create mode 100644 Resources/PrivacyInfo.xcprivacy diff --git a/Package.swift b/Package.swift index fc530b34f4..6a40653d0e 100644 --- a/Package.swift +++ b/Package.swift @@ -1,4 +1,4 @@ -// swift-tools-version:5.0 +// swift-tools-version:5.3 // The swift-tools-version declares the minimum version of Swift required to build this package. import PackageDescription @@ -50,6 +50,8 @@ let package = Package( "util/no_destructor_test.cc", "util/status_test.cc", "db/c_test.c", + "port/README.md", + "port/port_config.h.in", ], sources: [ "db/", @@ -58,6 +60,7 @@ let package = Package( "util/", "include/", ], + resources: [.process("Resources/PrivacyInfo.xcprivacy")], publicHeadersPath: "include", cSettings: [ .define("LEVELDB_IS_BIG_ENDIAN", to: "0"), diff --git a/Resources/PrivacyInfo.xcprivacy b/Resources/PrivacyInfo.xcprivacy new file mode 100644 index 0000000000..148515604f --- /dev/null +++ b/Resources/PrivacyInfo.xcprivacy @@ -0,0 +1,26 @@ + + + + + NSPrivacyTracking + + NSPrivacyTrackingDomains + + + NSPrivacyCollectedDataTypes + + + NSPrivacyAccessedAPITypes + + + NSPrivacyAccessedAPIType + NSPrivacyAccessedAPICategoryFileTimestamp + NSPrivacyAccessedAPITypeReasons + + C617.1 + + + + + + diff --git a/leveldb-library.podspec b/leveldb-library.podspec index c25e11b63b..bd40ef4ef5 100644 --- a/leveldb-library.podspec +++ b/leveldb-library.podspec @@ -58,6 +58,10 @@ Pod::Spec.new do |s| "util/testutil.cc" ] + s.resource_bundle = { + "#{s.module_name}_Privacy" => 'Resources/PrivacyInfo.xcprivacy' + } + s.library = 'c++' end