mirror of
https://github.com/RevenueCat/purchases-ios
synced 2026-11-09 22:35:56 +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>