Skip to content

feat(darwin): add Apple privacy manifest - #1051

Merged
Lyokone merged 1 commit into
masterfrom
feat/darwin-privacy-manifest
Jul 14, 2026
Merged

feat(darwin): add Apple privacy manifest#1051
Lyokone merged 1 commit into
masterfrom
feat/darwin-privacy-manifest

Conversation

@Lyokone

@Lyokone Lyokone commented Jul 14, 2026

Copy link
Copy Markdown
Owner

What

Adds PrivacyInfo.xcprivacy for iOS and macOS, wired into both build systems so it ships regardless of how the plugin is consumed:

  • CocoaPods — s.resource_bundles in location.podspec
  • Swift Package Manager — resources: [.process(...)] in Package.swift

Closes #947.

What it declares

The plugin surfaces CoreLocation to the host app but does not track users, transmit data off-device, or use any required-reason APIs (that list is UserDefaults / file-timestamp / boot-time / disk-space / keyboards — CoreLocation isn't on it). So the manifest declares:

Key Value
NSPrivacyTracking false
NSPrivacyTrackingDomains empty
NSPrivacyCollectedDataTypes empty
NSPrivacyAccessedAPITypes empty

This mirrors the App Store-reviewed geolocator_apple manifest — the closest comparable plugin — which ships the same no-collection form. The host app remains responsible for declaring how it uses location in its own app-level manifest.

Verification

  • plutil -lint → OK
  • swift package describe lists the manifest as a target resource
  • flutter build ios --simulator → builds; manifest is bundled at location_location.bundle/PrivacyInfo.xcprivacy with all four keys intact (plutil -p confirmed)

Release

Logged under the existing ## Unreleased CHANGELOG section — no version bump, not for publication yet.

Apple requires third-party SDKs to ship a PrivacyInfo.xcprivacy declaring
their data use and any required-reason API access. This plugin only bridges
CoreLocation to the host app: it transmits nothing off-device, uses no
required-reason APIs, and does no tracking. The manifest declares exactly
that (all empty / false).

Bundled through both build systems: resource_bundles in the podspec for
CocoaPods, and a processed resource in Package.swift for Swift Package
Manager.

Fixes #947
@Lyokone Lyokone changed the title feat(darwin): add iOS/macOS privacy manifest feat(darwin): add Apple privacy manifest Jul 14, 2026
@Lyokone
Lyokone merged commit 6f93f19 into master Jul 14, 2026
6 checks passed
@Lyokone
Lyokone deleted the feat/darwin-privacy-manifest branch July 14, 2026 11:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Consider adding a iOS privacy manifest

1 participant