Skip to content

Commit

Permalink
Fix api availability.
Browse files Browse the repository at this point in the history
  • Loading branch information
rocxteady committed Jun 5, 2024
1 parent d7bc2d1 commit 3859d59
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 6 deletions.
4 changes: 2 additions & 2 deletions Package.swift
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
// swift-tools-version: 5.9
// swift-tools-version: 5.8
// The swift-tools-version declares the minimum version of Swift required to build this package.

import PackageDescription

let package = Package(
name: "WPSwift",
defaultLocalization: "en",
platforms: [.iOS(.v15), .macOS(.v12), .watchOS(.v8), .tvOS(.v15)],
platforms: [.iOS(.v16), .macOS(.v13), .watchOS(.v9), .tvOS(.v16)],
products: [
// Products define the executables and libraries a package produces, making them visible to other packages.
.library(
Expand Down
1 change: 0 additions & 1 deletion Sources/WPSwift/Extensions/URL+Configuration.swift
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@

import Foundation

@available(macOS 13.0, *)
extension String {
static func initialize(with endpoint: String) throws -> String {
let configuration = try WPSwift.configuration
Expand Down
2 changes: 1 addition & 1 deletion Sources/WPSwift/Repositories/PostsRepository.swift
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

import Foundation
import Resting
@available(macOS 14.0, *)

public struct PostsRepository {
public func getPostsClient() throws -> WPClient<EmptyModel, [Post]> {
try .init(.init(endpoint: WPEndpoint.Posts.posts.path, parameters: nil))
Expand Down
1 change: 0 additions & 1 deletion Tests/WPSwiftTests/APITests/APIClientTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ import XCTest
@testable import WPSwift
import Combine

@available(macOS 14.0, *)
final class APIClientTests: XCTestCase {
private struct Mocked: Decodable {
let title: String
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
import XCTest
@testable import WPSwift

@available(macOS 14.0, *)
final class PostsRepositoryTests: XCTestCase {

override func setUpWithError() throws {
Expand Down

0 comments on commit 3859d59

Please sign in to comment.