Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[EXTERNAL] Cocoapods support for privacy manifest #3772

Merged

Conversation

sdurban
Copy link
Contributor

@sdurban sdurban commented Mar 19, 2024

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

Thank you guys for Revenuecat ❤️ !

@aboedo aboedo self-assigned this Mar 26, 2024
@aboedo aboedo added the fix A bug fix label Mar 26, 2024
@aboedo aboedo self-requested a review March 26, 2024 21:29
@aboedo aboedo changed the title Cocoapods support for privacy manifest [External] Cocoapods support for privacy manifest Mar 26, 2024
@aboedo aboedo changed the title [External] Cocoapods support for privacy manifest [EXTERNAL] Cocoapods support for privacy manifest Mar 26, 2024
Copy link
Member

@aboedo aboedo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@sdurban thanks so much for doing this! I tested this locally and it's working as expected.

I'll get it merged and integrated ASAP

@aboedo aboedo changed the base branch from main to privacy_manifest_cocoapods_compatibility March 26, 2024 21:32
@aboedo aboedo merged commit ed3aa96 into RevenueCat:privacy_manifest_cocoapods_compatibility Mar 26, 2024
aboedo added a commit that referenced this pull request Mar 27, 2024
#3775)

### 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

Co-authored-by: Sergio Durban Belmonte <sergio@durban.cat>
vegaro pushed a commit that referenced this pull request Apr 1, 2024
**This is an automatic release.**

### New Features
* [EXTERNAL] Cocoapods support for privacy manifest (#3772) via @sdurban
(#3775) via Andy Boedo (@aboedo)
@dmitry-salnikov
Copy link

looking forward for this to be integrated with purchases-capacitor aswell!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
fix A bug fix
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants