Skip to content

Commit c76aa47

Browse files
authored
Merge pull request #12 from tikhop/fix/watchos
fix: WatchOS compilation issue
2 parents 665da7d + 02f2cab commit c76aa47

File tree

3 files changed

+13
-3
lines changed

3 files changed

+13
-3
lines changed

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,13 @@
11
CHANGELOG
22
=========
33

4+
Mercato 1.0.1
5+
---------
6+
7+
### Fixed
8+
* Compilation issue on WatchOS
9+
* Example iOS application issue
10+
411
Mercato 1.0.0
512
---------
613

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ StoreKit 2 wrapper for In-App Purchases.
1515
### Swift Package Manager
1616

1717
```swift
18-
.package(url: "https://github.com/tikhop/Mercato.git", .upToNextMajor(from: "1.0.0"))
18+
.package(url: "https://github.com/tikhop/Mercato.git", .upToNextMajor(from: "1.0.1"))
1919
```
2020

2121
## Requirements
@@ -134,4 +134,4 @@ Contributions are welcome. Please feel free to submit a Pull Request.
134134

135135
## License
136136

137-
MIT. See [LICENSE](LICENSE) for details.
137+
MIT. See [LICENSE](LICENSE) for details.

Sources/Mercato/Mercato+Extras.swift

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,10 @@ extension Mercato {
139139
///
140140
/// - Note: `PurchaseIntent` objects can help you manage unfinished purchases or gather
141141
/// information on user purchase intentions to improve the purchase flow experience.
142-
@available(iOS 16.4, macOS 14.4, tvOS 16.4, watchOS 9.4, *)
142+
@available(iOS 16.4, macOS 14.4, *)
143+
@available(tvOS, unavailable)
144+
@available(watchOS, unavailable)
145+
@available(visionOS, unavailable)
143146
public static var purchaseIntents: PurchaseIntent.PurchaseIntents {
144147
PurchaseIntent.intents
145148
}

0 commit comments

Comments
 (0)