Skip to content

Commit a7d3956

Browse files
committed
Update package
1 parent d838df3 commit a7d3956

File tree

3 files changed

+17
-25
lines changed

3 files changed

+17
-25
lines changed

Package.swift

Lines changed: 17 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,23 @@
11
// swift-tools-version:5.5
2-
// The swift-tools-version declares the minimum version of Swift required to build this package.
32

43
import PackageDescription
54

65
let package = Package(
7-
name: "Twift",
8-
products: [
9-
// Products define the executables and libraries a package produces, and make them visible to other packages.
10-
.library(
11-
name: "Twift",
12-
targets: ["Twift"]),
13-
],
14-
dependencies: [
15-
// Dependencies declare other packages that this package depends on.
16-
// .package(url: /* package url */, from: "1.0.0"),
17-
],
18-
targets: [
19-
// Targets are the basic building blocks of a package. A target can define a module or a test suite.
20-
// Targets can depend on other targets in this package, and on products in packages this package depends on.
21-
.target(
22-
name: "Twift",
23-
dependencies: []),
24-
.testTarget(
25-
name: "TwiftTests",
26-
dependencies: ["Twift"]),
27-
]
6+
name: "Twift",
7+
platforms: [
8+
.macOS(.v12), .iOS(.v15)
9+
],
10+
products: [
11+
.library(
12+
name: "Twift",
13+
targets: ["Twift"]),
14+
],
15+
targets: [
16+
.target(
17+
name: "Twift",
18+
path: "Sources"),
19+
.testTarget(
20+
name: "TwiftTests",
21+
dependencies: ["Twift"]),
22+
]
2823
)

Sources/Twift/Twift+Errors.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import Foundation
22

3-
@available(macOS 12.0, *)
43
extension Twift {
54
enum TwiftError: Error {
65
case CallbackURLError

Sources/Twift/Twift.swift

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ struct OAuthToken: Codable {
1212
}
1313
}
1414

15-
@available(macOS 12.0, *)
1615
@MainActor
1716
class Twift: NSObject, ObservableObject {
1817
var clientCredentials: OAuthToken
@@ -162,7 +161,6 @@ extension String {
162161
}
163162
}
164163

165-
@available(macOS 12.0, *)
166164
extension Twift: ASWebAuthenticationPresentationContextProviding {
167165
func presentationAnchor(for session: ASWebAuthenticationSession) -> ASPresentationAnchor {
168166
return ASPresentationAnchor()

0 commit comments

Comments
 (0)