Skip to content

Commit ed3aa96

Browse files
authored
[EXTERNAL] Cocoapods support for privacy manifest (#3772)
### Motivation The library already includes Privacy.xcprivacy in SPM, but when used with CocoaPods (mandatory in Flutter), these files are not exported as the podspec does not include that file as a resource bundle. ### Description Listing the PrivacyInfo.xcprivacy file inside the resource_bundles specification in the podspec allows to distribute the file correctly. Ref. CocoaPods/CocoaPods#10325 (comment) This GitHub issue contains the entire discussion on how to add these xcprivacy files and is referenced in multiple places; many libraries already follow this approach: https://github.com/firebase/firebase-ios-sdk/blob/main/FirebaseCrashlytics.podspec SDWebImage/SDWebImage#3649 flutter/packages#5846 Baseflow/flutter-permission-handler#1291 Baseflow/flutter-geolocator#1462
1 parent bf81b25 commit ed3aa96

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

RevenueCat.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,5 +31,5 @@ Pod::Spec.new do |s|
3131
s.source_files = 'Sources/**/*.swift'
3232
s.exclude_files = 'Sources/LocalReceiptParsing/ReceiptParser-only-files/**'
3333

34-
34+
s.resource_bundles = {'RevenueCat' => ['Sources/PrivacyInfo.xcprivacy']}
3535
end

0 commit comments

Comments
 (0)