Files
purchases-ios/RevenueCat.podspec
T
Andy BoedoandSergio Durban Belmonte cc651268b3 [EXTERNAL] Cocoapods support for privacy manifest (#3772) via @sdurban (#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.

https://github.com/CocoaPods/CocoaPods/issues/10325#issuecomment-1718723762

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
https://github.com/SDWebImage/SDWebImage/pull/3649
https://github.com/flutter/packages/pull/5846
https://github.com/Baseflow/flutter-permission-handler/pull/1291
https://github.com/Baseflow/flutter-geolocator/pull/1462

Co-authored-by: Sergio Durban Belmonte <sergio@durban.cat>
2024-03-27 11:12:31 -03:00

36 lines
1.4 KiB
Ruby

Pod::Spec.new do |s|
s.name = "RevenueCat"
s.version = "4.40.0-SNAPSHOT"
s.summary = "Subscription and in-app-purchase backend service."
s.description = <<-DESC
Save yourself the hassle of implementing a subscriptions backend. Use RevenueCat instead https://www.revenuecat.com/
DESC
s.homepage = "https://www.revenuecat.com/"
s.license = { :type => 'MIT' }
s.author = { "RevenueCat, Inc." => "support@revenuecat.com" }
s.source = { :git => "https://github.com/revenuecat/purchases-ios.git", :tag => s.version.to_s }
s.documentation_url = "https://docs.revenuecat.com/"
s.framework = 'StoreKit'
s.swift_version = '5.7'
s.ios.deployment_target = '11.0'
s.watchos.deployment_target = '6.2'
s.tvos.deployment_target = '11.0'
s.osx.deployment_target = '10.13'
s.visionos.deployment_target = '1.0'
s.pod_target_xcconfig = {
'DEFINES_MODULE' => 'YES',
'SWIFT_ACTIVE_COMPILATION_CONDITIONS[sdk=xros*]' => '$(inherited) VISION_OS',
'SWIFT_ACTIVE_COMPILATION_CONDITIONS[sdk=xrsimulator*]' => '$(inherited) VISION_OS',
}
s.source_files = 'Sources/**/*.swift'
s.exclude_files = 'Sources/LocalReceiptParsing/ReceiptParser-only-files/**'
s.resource_bundles = {'RevenueCat' => ['Sources/PrivacyInfo.xcprivacy']}
end