Skip to content

Commit

Permalink
Fix GitHub Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
ns-vasilev committed Oct 18, 2024
1 parent af8d8ac commit 79e38af
Showing 1 changed file with 14 additions and 6 deletions.
20 changes: 14 additions & 6 deletions Sources/Flare/Classes/Models/Internal/SK2RenewalInfo.swift
Original file line number Diff line number Diff line change
Expand Up @@ -68,14 +68,22 @@ extension SK2RenewalInfo: IRenewalInfo {
}

var renewalPrice: Decimal? {
underlyingRenewalInfo.renewalPrice
#if swift(>=6.0)
underlyingRenewalInfo.renewalPrice
#else
nil
#endif
}

var currency: String? {
if #available(iOS 16.0, macOS 13.0, watchOS 9.0, tvOS 16.0, *) {
underlyingRenewalInfo.currency?.identifier
} else {
underlyingRenewalInfo.currencyCode
}
#if swift(>=6.0)
if #available(iOS 16.0, macOS 13.0, watchOS 9.0, tvOS 16.0, *) {
underlyingRenewalInfo.currency?.identifier
} else {
underlyingRenewalInfo.currencyCode
}
#else
nil
#endif
}
}

0 comments on commit 79e38af

Please sign in to comment.