diff --git a/Package.swift b/Package.swift index 9cadbc8..5b3bde5 100644 --- a/Package.swift +++ b/Package.swift @@ -1,9 +1,9 @@ -// swift-tools-version: 5.8 +// swift-tools-version: 5.9 import PackageDescription let package = Package( name: "ReviewKit", - platforms: [.iOS(.v11), .macOS(.v10_14), .macCatalyst(.v14)], + platforms: [.iOS(.v12), .macOS(.v10_14), .macCatalyst(.v14), .visionOS(.v1)], products: [.library(name: "ReviewKit", targets: ["ReviewKit"])], dependencies: [], targets: [.target(name: "ReviewKit", dependencies: [])] diff --git a/Sources/ReviewKit/ReviewKit.swift b/Sources/ReviewKit/ReviewKit.swift index d6d6252..24fad70 100644 --- a/Sources/ReviewKit/ReviewKit.swift +++ b/Sources/ReviewKit/ReviewKit.swift @@ -43,7 +43,7 @@ public enum ReviewKit { } else { SKStoreReviewController.requestReview() } - #else + #elseif os(macOS) SKStoreReviewController.requestReview() #endif }