hmlongco / Factory

A new approach to Container-Based Dependency Injection for Swift and SwiftUI.
MIT License
1.7k stars 107 forks source link

Privacy manifest file #177

Closed danielepantaleone closed 5 months ago

danielepantaleone commented 6 months ago

Starting from Spring 2024 Apple requires apps and third party SDKs to include a Privacy manifest file. Would it be possible to include it in the next release of Factory?

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

hmlongco commented 5 months ago

yes

hmlongco commented 5 months ago

Or not. Without spending a ton of time on this. I can provide a file... that's empty. Factory doesn't track any user info, data, position data, or other PII.

Anyone know of what to do in this situation?

danielepantaleone commented 5 months ago

I believe you should add a PrivacyInfo.xcprivacy file with just NSPrivacyTracking set to false.

EDIT: I can obviously open a pull request if you prefer, ~although I'm not quite sure how to handle this file in Package.swift as I usually with Cocoapods while integrating dependencies.~ https://github.com/realm/realm-swift/commit/65269e499f882a2f8bc7ebe3e5a36a1ed7be48dc (might give an idea)