[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
This commit is contained in:
Nick Cooke authored and GitHub committed 2024-02-13 12:37:30 -05:00
1 parent 6e0967097a
commit 174a4b51cb
3 files changed
+34 -1

No files matched your search

+4 -1
View File
@@ -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"),
+26
View File
@@ -0,0 +1,26 @@
<?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>NSPrivacyTracking</key>
<false/>
<key>NSPrivacyTrackingDomains</key>
<array>
</array>
<key>NSPrivacyCollectedDataTypes</key>
<array>
</array>
<key>NSPrivacyAccessedAPITypes</key>
<array>
<dict>
<key>NSPrivacyAccessedAPIType</key>
<string>NSPrivacyAccessedAPICategoryFileTimestamp</string>
<key>NSPrivacyAccessedAPITypeReasons</key>
<array>
<string>C617.1</string>
</array>
</dict>
</array>
</dict>
</plist>
+4
View File
@@ -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