fluttercandies / flutter_photo_manager

A Flutter plugin that provides images, videos, and audio abstraction management APIs without interface integration, available on Android, iOS, macOS and OpenHarmony.
https://pub.dev/packages/photo_manager
Apache License 2.0
647 stars 297 forks source link

[Feature request] Add privacy manifest file for iOS #1112

Closed cocoa78 closed 1 month ago

cocoa78 commented 1 month ago

Platforms

iOS

Description

You need to add PrivacyInfo.xcprivacy file following the new apple policy. Apple saying that the requirement will take effect May 1st: https://developer.apple.com/news/?id=3d8a9yyh

Why

Refer link: https://developer.apple.com/documentation/bundleresources/privacy_manifest_files

JDongKhan commented 1 month ago

+1

CaiJingLong commented 1 month ago

I have been paying attention to this part of the news, but so far I have not seen the corresponding documentation on flutter.dev. The only thing that may be relevant is that there are some discussions in flutter's issue, but I don't know if the issue discussion is the final solution.

https://github.com/flutter/flutter/issues/131940 The issue isn't be closed, so I think we need to wait for flutter team provide a solution.

CaiJingLong commented 1 month ago

A PR of privacy: #1120

joshuariveramnltech commented 1 month ago

@CaiJingLong

As per checking using app_store_required_privacy_manifest_analyser photo_manager-3.1.0 has been updated with the privacy manifest file but there seems to be an issue

Analyzing photo_manager-3.1.0 ...
💡 Found privacy manifest file(s): 2
[0] /Users/joshuakimrivera/.pub-cache/hosted/pub.dev/photo_manager-3.1.0/macos/Resources/PrivacyInfo.xcprivacy
[1] /Users/joshuakimrivera/.pub-cache/hosted/pub.dev/photo_manager-3.1.0/ios/Resources/PrivacyInfo.xcprivacy
API usage analysis result(s): 6
[0] NSPrivacyAccessedAPICategoryFileTimestamp:creationDate,modificationDate:/Users/<user>/.pub-cache/hosted/pub.dev/photo_manager-3.1.0/ios/Classes/core/PMConvertUtils.m
[1] NSPrivacyAccessedAPICategoryFileTimestamp:creationDate,modificationDate:/Users/<user>/.pub-cache/hosted/pub.dev/photo_manager-3.1.0/ios/Classes/core/PMFilterOption.m
[2] NSPrivacyAccessedAPICategoryFileTimestamp:creationDate,modificationDate:/Users/<user>/.pub-cache/hosted/pub.dev/photo_manager-3.1.0/ios/Classes/core/PMManager.m
[3] NSPrivacyAccessedAPICategoryFileTimestamp:creationDate,modificationDate:/Users/<user>/.pub-cache/hosted/pub.dev/photo_manager-3.1.0/macos/Classes/core/PMConvertUtils.m
[4] NSPrivacyAccessedAPICategoryFileTimestamp:creationDate,modificationDate:/Users/<user>/.pub-cache/hosted/pub.dev/photo_manager-3.1.0/macos/Classes/core/PMFilterOption.m
[5] NSPrivacyAccessedAPICategoryFileTimestamp:creationDate,modificationDate:/Users/<user>/.pub-cache/hosted/pub.dev/photo_manager-3.1.0/macos/Classes/core/PMManager.m
🛠️  Descriptions for the following required API reason(s) may be missing: 1
[0] NSPrivacyAccessedAPICategoryFileTimestamp