Add PrivacyInfo.xcprivacy to macOS plugin template (#155570)

macOS version of https://github.com/flutter/flutter/pull/148485 without NSPrivacyAccessedAPITypes.

Fixes https://github.com/flutter/flutter/issues/155563
This commit is contained in:
Jenn Magder
2024-09-25 01:30:53 -04:00
committed by GitHub
parent 52d8d0715c
commit 9d42f826d7
7 changed files with 52 additions and 4 deletions

View File

@@ -26,6 +26,18 @@ Pod::Spec.new do |s|
{{^withSwiftPackageManager}}
s.source_files = 'Classes/**/*'
{{/withSwiftPackageManager}}
# If your plugin requires a privacy manifest, for example if it collects user
# data, update the PrivacyInfo.xcprivacy file to describe your plugin's
# privacy impact, and then uncomment this line. For more information,
# see https://developer.apple.com/documentation/bundleresources/privacy_manifest_files
{{#withSwiftPackageManager}}
# s.resource_bundles = {'{{projectName}}_privacy' => ['{{projectName}}/Sources/{{projectName}}/PrivacyInfo.xcprivacy']}
{{/withSwiftPackageManager}}
{{^withSwiftPackageManager}}
# s.resource_bundles = {'{{projectName}}_privacy' => ['Resources/PrivacyInfo.xcprivacy']}
{{/withSwiftPackageManager}}
s.dependency 'FlutterMacOS'
s.platform = :osx, '10.11'