Skip to content

Commit

Permalink
Fix GitHub Actions (#88)
Browse files Browse the repository at this point in the history
* Fix GitHub Actions

* Update `CHANGELOG.md`
  • Loading branch information
ns-vasilev authored Oct 18, 2024
1 parent af8d8ac commit f011d36
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 6 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@ All notable changes to this project will be documented in this file.
- Update RenewalInfo Model with renewalPrice and currency
- Updated in Pull Request [#85](https://github.com/space-code/flare/pull/85)

## Fixed
- Fix the GitHub Actions Pipeline
- Fixed in Pull Request [#88](https://github.com/space-code/flare/pull/88)

#### 3.x Releases
- `3.0.x` Releases - [`3.0.0`](#300) | [`3.0.1`](#301) | [`3.0.2`](#302)
- `3.0.0` Release Candidates - [`3.0.0-rc.1`](#300-rc1) | [`3.0.0-rc.2`](#300-rc2)
Expand Down
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 f011d36

Please sign in to comment.