From a07b247caf09a028006d505ec39b3c59c377af78 Mon Sep 17 00:00:00 2001 From: Manoel Aranda Neto Date: Tue, 26 Mar 2024 13:36:57 +0100 Subject: [PATCH 1/2] add PrivacyInfo --- CHANGELOG.md | 2 ++ ios/Resources/PrivacyInfo.xcprivacy | 44 +++++++++++++++++++++++++++++ ios/posthog_flutter.podspec | 1 + 3 files changed, 47 insertions(+) create mode 100644 ios/Resources/PrivacyInfo.xcprivacy diff --git a/CHANGELOG.md b/CHANGELOG.md index bec3f66..e9527f7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,7 @@ ## Next +- add PrivacyInfo ([#94](https://github.com/PostHog/posthog-flutter/pull/94)) + ## 4.2.0 - add flush method ([#92](https://github.com/PostHog/posthog-flutter/pull/92)) diff --git a/ios/Resources/PrivacyInfo.xcprivacy b/ios/Resources/PrivacyInfo.xcprivacy new file mode 100644 index 0000000..8379bfd --- /dev/null +++ b/ios/Resources/PrivacyInfo.xcprivacy @@ -0,0 +1,44 @@ + + + + + NSPrivacyCollectedDataTypes + + + NSPrivacyCollectedDataType + NSPrivacyCollectedDataTypeProductInteraction + NSPrivacyCollectedDataTypeLinked + + NSPrivacyCollectedDataTypeTracking + + NSPrivacyCollectedDataTypePurposes + + NSPrivacyCollectedDataTypePurposeAnalytics + + + + NSPrivacyCollectedDataType + NSPrivacyCollectedDataTypeOtherUsageData + NSPrivacyCollectedDataTypeLinked + + NSPrivacyCollectedDataTypeTracking + + NSPrivacyCollectedDataTypePurposes + + NSPrivacyCollectedDataTypePurposeAnalytics + + + + NSPrivacyAccessedAPITypes + + + NSPrivacyAccessedAPIType + NSPrivacyAccessedAPICategoryUserDefaults + NSPrivacyAccessedAPITypeReasons + + CA92.1 + + + + + diff --git a/ios/posthog_flutter.podspec b/ios/posthog_flutter.podspec index a48031c..25397d6 100644 --- a/ios/posthog_flutter.podspec +++ b/ios/posthog_flutter.podspec @@ -16,6 +16,7 @@ Postog flutter plugin s.social_media_url = 'https://twitter.com/PostHog' s.source_files = 'Classes/**/*' + s.resource_bundles = { "PostHog" => "Resources/PrivacyInfo.xcprivacy" } s.ios.dependency 'Flutter' s.osx.dependency 'FlutterMacOS' From 1deb7e06a7b863478ef2e00d9057e0cdeb8d0ac0 Mon Sep 17 00:00:00 2001 From: Manoel Aranda Neto Date: Tue, 26 Mar 2024 13:39:38 +0100 Subject: [PATCH 2/2] fix --- ios/posthog_flutter.podspec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ios/posthog_flutter.podspec b/ios/posthog_flutter.podspec index 25397d6..3445ed2 100644 --- a/ios/posthog_flutter.podspec +++ b/ios/posthog_flutter.podspec @@ -16,7 +16,7 @@ Postog flutter plugin s.social_media_url = 'https://twitter.com/PostHog' s.source_files = 'Classes/**/*' - s.resource_bundles = { "PostHog" => "Resources/PrivacyInfo.xcprivacy" } + s.resource_bundles = { "PostHogFlutter" => "Resources/PrivacyInfo.xcprivacy" } s.ios.dependency 'Flutter' s.osx.dependency 'FlutterMacOS'