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 8b4768c
Showing 1 changed file with 13 additions and 5 deletions.
18 changes: 13 additions & 5 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 {
#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
underlyingRenewalInfo.currencyCode
}
#endif
}
}

0 comments on commit 8b4768c

Please sign in to comment.