mirror of
https://github.com/RevenueCat/purchases-ios
synced 2026-11-11 22:55:55 +05:45
* Send X-Installation-Method header in all API requests Detect at compile time which package manager was used to integrate the SDK (SPM, CocoaPods, or prebuilt XCFramework) and send it as a new X-Installation-Method header on every HTTP request. This helps the backend understand how customers integrate the SDK. Made-with: Cursor * Add installation method assertions to installation tests Expose installationMethod via @_spi(Internal) on Purchases and verify the correct value in each installation test project (SPM, CocoaPods, Carthage, Xcode direct, and XCFramework). Made-with: Cursor * [skip ci] Generating new test snapshots (#6433) * [skip ci] Generating new test snapshots (#6435) * [skip ci] Generating new test snapshots (#6434) * [skip ci] Generating new test snapshots (#6440) * [skip ci] Generating new test snapshots (#6436) * [skip ci] Generating new test snapshots (#6437) * [skip ci] Generating new test snapshots (#6438) * [skip ci] Generating new test snapshots (#6439) * [skip ci] Generating new test snapshots (#6443) * Fix missing COCOAPODS_INSTALLATION flag on CocoaPods test targets The flag was only set on the app target, not on the test targets, so the #if COCOAPODS_INSTALLATION branches in InstallationTests.swift were never compiled for CocoaPods tests. Add OTHER_SWIFT_FLAGS with -DCOCOAPODS_INSTALLATION to all four CocoaPods test target configs. Made-with: Cursor --------- Co-authored-by: RevenueCat Git Bot <72824662+RCGitBot@users.noreply.github.com>
37 lines
1.4 KiB
Ruby
37 lines
1.4 KiB
Ruby
Pod::Spec.new do |s|
|
|
s.name = "RevenueCat"
|
|
s.version = "5.63.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.8'
|
|
|
|
s.ios.deployment_target = '13.0'
|
|
s.watchos.deployment_target = '6.2'
|
|
s.tvos.deployment_target = '13.0'
|
|
s.osx.deployment_target = '10.15'
|
|
s.visionos.deployment_target = '1.0'
|
|
|
|
s.pod_target_xcconfig = {
|
|
'DEFINES_MODULE' => 'YES',
|
|
'SWIFT_ACTIVE_COMPILATION_CONDITIONS' => '$(inherited) COCOAPODS',
|
|
'SWIFT_ACTIVE_COMPILATION_CONDITIONS[sdk=xros*]' => '$(inherited) COCOAPODS VISION_OS',
|
|
'SWIFT_ACTIVE_COMPILATION_CONDITIONS[sdk=xrsimulator*]' => '$(inherited) COCOAPODS VISION_OS',
|
|
}
|
|
|
|
s.source_files = 'Sources/**/*.swift'
|
|
s.exclude_files = 'Sources/LocalReceiptParsing/ReceiptParser-only-files/**'
|
|
|
|
s.resource_bundles = {'RevenueCat' => ['Sources/PrivacyInfo.xcprivacy']}
|
|
end
|