juliansteenbakker / mobile_scanner

A universal scanner for Flutter based on MLKit. Uses CameraX on Android and AVFoundation on iOS.
BSD 3-Clause "New" or "Revised" License
744 stars 444 forks source link

Add privacy manifest file for iOS #1001

Closed mvn-hangtran-dn closed 1 month ago

mvn-hangtran-dn commented 1 month ago

You need to add PrivacyInfo.xcprivacy file following the new apple policy. Refer link: https://developer.apple.com/documentation/bundleresources/privacy_manifest_files

navaronbracke commented 1 month ago

We are aware of this. We will add a privacy manifest for the next release.

pawlowskim commented 1 month ago

@navaronbracke Because mobile_scanner uses MLKit from google, I guess they might need to update MLKit first, so you can pick up newer version. I believe they are using Disk Space API, which should be listed in their manifest. I found it using this tool: https://github.com/crasowas/app_store_required_privacy_manifest_analyser

Analyzing MLKitCommon ...
⚠️  Missing privacy manifest file!
API usage analysis result(s): 3
[0] NSPrivacyAccessedAPICategoryFileTimestamp:stat,NSURLContentModificationDateKey:/Users/marcin.pawlowski/projects/flut/yosensi-mobile-flutter/ios/Pods/MLKitCommon/Frameworks/MLKitCommon.framework/MLKitCommon
[1] NSPrivacyAccessedAPICategoryDiskSpace:NSFileSystemFreeSize:/Users/marcin.pawlowski/projects/flut/yosensi-mobile-flutter/ios/Pods/MLKitCommon/Frameworks/MLKitCommon.framework/MLKitCommon
[2] NSPrivacyAccessedAPICategoryUserDefaults:NSUserDefaults:/Users/marcin.pawlowski/projects/flut/yosensi-mobile-flutter/ios/Pods/MLKitCommon/Frameworks/MLKitCommon.framework/MLKitCommon
🛠️  Descriptions for the following required API reason(s) may be missing: 3
[0] NSPrivacyAccessedAPICategoryFileTimestamp
[1] NSPrivacyAccessedAPICategoryDiskSpace
[2] NSPrivacyAccessedAPICategoryUserDefaults
navaronbracke commented 1 month ago

The February MLKit release https://developers.google.com/ml-kit/release-notes#february_20_2024 does have the privacy manifest.