aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Cooke <nickcooke@google.com>2024-02-12 15:45:40 -0500
committerPetteri Aimonen <jpa@github.mail.kapsi.fi>2024-02-16 10:56:43 +0200
commit4aeaf5c2c806bca46dc3c7a3f5b85e4015b17263 (patch)
tree226da6966a1f381b8422e495c7ae9d86bc84512f
parent819d0a2173aff699fb8c364b6fb906f7cdb1a692 (diff)
downloadnanopb-c-4aeaf5c2c806bca46dc3c7a3f5b85e4015b17263.tar.gz
[nanopb] Add Apple privacy manifest
-rw-r--r--Package.swift3
-rw-r--r--spm_resources/PrivacyInfo.xcprivacy15
2 files changed, 17 insertions, 1 deletions
diff --git a/Package.swift b/Package.swift
index 1c62f98..f53b7c4 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
@@ -25,6 +25,7 @@ let package = Package(
"pb_encode.h",
"pb_encode.c"
],
+ resources: [.process("spm_resources/PrivacyInfo.xcprivacy")],
publicHeadersPath: "spm_headers",
cSettings: [
.define("PB_FIELD_32BIT", to: "1"),
diff --git a/spm_resources/PrivacyInfo.xcprivacy b/spm_resources/PrivacyInfo.xcprivacy
new file mode 100644
index 0000000..72e00ac
--- /dev/null
+++ b/spm_resources/PrivacyInfo.xcprivacy
@@ -0,0 +1,15 @@
+<?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>
+