Skip to content

Commit

Permalink
Xcode 15: fixed release build (#3034)
Browse files Browse the repository at this point in the history
Fixes
#3028 (comment)
This was wrong in #3032 because `Purchases.storeKit2Setting` is only
available in `DEBUG` builds, but we didn't catch it because we have no
CI for Xcode 15 yet, which this adds as well.
  • Loading branch information
NachoSoto authored Aug 17, 2023
1 parent 7629e2a commit 91890ed
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 6 deletions.
15 changes: 13 additions & 2 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,16 @@ commands:
bundle exec fastlane update_carthage_commit
jobs:
spm-release-build:
spm-release-build-xcode-14:
<<: *base-job
steps:
- checkout
- run:
name: SPM Release Build
command: swift build -c release --target RevenueCat
no_output_timeout: 30m

spm-release-build-xcode-15:
<<: *base-job
steps:
- checkout
Expand Down Expand Up @@ -891,8 +900,10 @@ workflows:
jobs:
- lint:
xcode_version: '14.3.0'
- spm-release-build:
- spm-release-build-xcode-14:
xcode_version: '14.3.0'
- spm-release-build-xcode-15:
xcode_version: '15.0.0'
- spm-xcode-14-1:
xcode_version: '14.1.0'
- spm-custom-entitlement-computation-build:
Expand Down
8 changes: 4 additions & 4 deletions Sources/Purchasing/Purchases/Purchases.swift
Original file line number Diff line number Diff line change
Expand Up @@ -1389,6 +1389,10 @@ internal extension Purchases {
return self.paymentQueueWrapper.sk1Wrapper != nil
}

var storeKit2Setting: StoreKit2Setting {
return self.systemInfo.storeKit2Setting
}

#if DEBUG

/// - Returns: the parsed `AppleReceipt`
Expand Down Expand Up @@ -1454,10 +1458,6 @@ internal extension Purchases {
return self.backend.offlineCustomerInfoEnabled
}

var storeKit2Setting: StoreKit2Setting {
return self.systemInfo.storeKit2Setting
}

var publicKey: Signing.PublicKey? {
return self.systemInfo.responseVerificationMode.publicKey
}
Expand Down

0 comments on commit 91890ed

Please sign in to comment.