|
1 | | -// swift-tools-version: 6.1 |
| 1 | +// swift-tools-version: 6.2.1 |
2 | 2 |
|
3 | 3 | import PackageDescription |
4 | 4 |
|
5 | 5 | let package = Package( |
6 | | - name: "sqlite-data", |
7 | | - platforms: [ |
8 | | - .macOS(.v15), |
9 | | - ], |
10 | | - products: [ |
11 | | - .library( |
12 | | - name: "SQLiteData", |
13 | | - targets: ["SQLiteData"] |
14 | | - ), |
15 | | - .library( |
16 | | - name: "SQLiteDataTestSupport", |
17 | | - targets: ["SQLiteDataTestSupport"] |
18 | | - ), |
19 | | - ], |
20 | | - traits: [ |
21 | | - .trait( |
22 | | - name: "SQLiteDataTagged", |
23 | | - description: "Introduce SQLiteData conformances to the swift-tagged package." |
24 | | - ) |
25 | | - ], |
26 | | - dependencies: [ |
27 | | - .package(url: "https://github.com/apple/swift-collections", from: "1.0.0"), |
28 | | - .package(url: "https://github.com/groue/GRDB.swift", from: "7.6.0"), |
29 | | - .package(url: "https://github.com/pointfreeco/swift-concurrency-extras", from: "1.0.0"), |
30 | | - .package(url: "https://github.com/pointfreeco/swift-custom-dump", from: "1.3.3"), |
31 | | - .package(url: "https://github.com/pointfreeco/swift-dependencies", from: "1.9.0"), |
32 | | - .package(url: "https://github.com/pointfreeco/swift-sharing", from: "2.3.0"), |
33 | | - .package(url: "https://github.com/pointfreeco/swift-snapshot-testing", from: "1.18.4"), |
34 | | - .package( |
35 | | - url: "https://github.com/pointfreeco/swift-structured-queries", |
36 | | - from: "0.24.0", |
37 | | - traits: [ |
38 | | - .trait(name: "StructuredQueriesTagged", condition: .when(traits: ["SQLiteDataTagged"])) |
39 | | - ] |
40 | | - ), |
41 | | - .package(url: "https://github.com/pointfreeco/swift-tagged", from: "0.10.0"), |
42 | | - .package(url: "https://github.com/pointfreeco/xctest-dynamic-overlay", from: "1.5.0"), |
43 | | - ], |
44 | | - targets: [ |
45 | | - .target( |
46 | | - name: "SQLiteData", |
47 | | - dependencies: [ |
48 | | - .product(name: "ConcurrencyExtras", package: "swift-concurrency-extras"), |
49 | | - .product(name: "Dependencies", package: "swift-dependencies"), |
50 | | - .product(name: "GRDB", package: "GRDB.swift"), |
51 | | - .product(name: "IssueReporting", package: "xctest-dynamic-overlay"), |
52 | | - .product(name: "OrderedCollections", package: "swift-collections"), |
53 | | - .product(name: "Sharing", package: "swift-sharing"), |
54 | | - .product(name: "StructuredQueriesSQLite", package: "swift-structured-queries"), |
55 | | - .product( |
56 | | - name: "Tagged", |
57 | | - package: "swift-tagged", |
58 | | - condition: .when(traits: ["SQLiteDataTagged"]) |
| 6 | + name: "sqlite-data", |
| 7 | + platforms: [ |
| 8 | + .macOS(.v26) |
| 9 | + ], |
| 10 | + products: [ |
| 11 | + .library( |
| 12 | + name: "SQLiteData", |
| 13 | + targets: ["SQLiteData"] |
| 14 | + ), |
| 15 | + .library( |
| 16 | + name: "SQLiteDataTestSupport", |
| 17 | + targets: ["SQLiteDataTestSupport"] |
| 18 | + ), |
| 19 | + ], |
| 20 | + traits: [ |
| 21 | + .trait( |
| 22 | + name: "SQLiteDataTagged", |
| 23 | + description: "Introduce SQLiteData conformances to the swift-tagged package." |
| 24 | + ) |
| 25 | + ], |
| 26 | + dependencies: [ |
| 27 | + .package(url: "https://github.com/apple/swift-collections", from: "1.0.0"), |
| 28 | + .package(name: "GRDB.swift", path: "../GRDB-swift"), |
| 29 | + .package(url: "https://github.com/pointfreeco/swift-concurrency-extras", from: "1.0.0"), |
| 30 | + .package(url: "https://github.com/pointfreeco/swift-custom-dump", from: "1.3.3"), |
| 31 | + .package(url: "https://github.com/pointfreeco/swift-dependencies", from: "1.9.0"), |
| 32 | + .package(url: "https://github.com/pointfreeco/swift-sharing", from: "2.3.0"), |
| 33 | + .package(url: "https://github.com/pointfreeco/swift-snapshot-testing", from: "1.18.4"), |
| 34 | + .package( |
| 35 | + path: "../swift-structured-queries", |
| 36 | + traits: [ |
| 37 | + .trait( |
| 38 | + name: "StructuredQueriesTagged", |
| 39 | + condition: .when(traits: ["SQLiteDataTagged"])) |
| 40 | + ] |
| 41 | + ), |
| 42 | + .package(url: "https://github.com/pointfreeco/swift-tagged", from: "0.10.0"), |
| 43 | + .package(url: "https://github.com/pointfreeco/xctest-dynamic-overlay", from: "1.5.0"), |
| 44 | + ], |
| 45 | + targets: [ |
| 46 | + .target( |
| 47 | + name: "SQLiteData", |
| 48 | + dependencies: [ |
| 49 | + .product(name: "ConcurrencyExtras", package: "swift-concurrency-extras"), |
| 50 | + .product(name: "Dependencies", package: "swift-dependencies"), |
| 51 | + .product(name: "GRDB", package: "GRDB.swift"), |
| 52 | + .product(name: "IssueReporting", package: "xctest-dynamic-overlay"), |
| 53 | + .product(name: "OrderedCollections", package: "swift-collections"), |
| 54 | + .product(name: "Sharing", package: "swift-sharing"), |
| 55 | + .product(name: "StructuredQueriesSQLite", package: "swift-structured-queries"), |
| 56 | + .product( |
| 57 | + name: "Tagged", |
| 58 | + package: "swift-tagged", |
| 59 | + condition: .when(traits: ["SQLiteDataTagged"]) |
| 60 | + ), |
| 61 | + ] |
59 | 62 | ), |
60 | | - ] |
61 | | - ), |
62 | | - .target( |
63 | | - name: "SQLiteDataTestSupport", |
64 | | - dependencies: [ |
65 | | - "SQLiteData", |
66 | | - .product(name: "ConcurrencyExtras", package: "swift-concurrency-extras"), |
67 | | - .product(name: "CustomDump", package: "swift-custom-dump"), |
68 | | - .product(name: "Dependencies", package: "swift-dependencies"), |
69 | | - .product(name: "InlineSnapshotTesting", package: "swift-snapshot-testing"), |
70 | | - .product(name: "StructuredQueriesTestSupport", package: "swift-structured-queries"), |
71 | | - ] |
72 | | - ), |
73 | | - .testTarget( |
74 | | - name: "SQLiteDataTests", |
75 | | - dependencies: [ |
76 | | - "SQLiteData", |
77 | | - "SQLiteDataTestSupport", |
78 | | - .product(name: "DependenciesTestSupport", package: "swift-dependencies"), |
79 | | - .product(name: "InlineSnapshotTesting", package: "swift-snapshot-testing"), |
80 | | - .product(name: "SnapshotTestingCustomDump", package: "swift-snapshot-testing"), |
81 | | - .product(name: "StructuredQueries", package: "swift-structured-queries"), |
82 | | - ] |
83 | | - ), |
84 | | - ], |
85 | | - swiftLanguageModes: [.v6] |
| 63 | + .target( |
| 64 | + name: "SQLiteDataTestSupport", |
| 65 | + dependencies: [ |
| 66 | + "SQLiteData", |
| 67 | + .product(name: "ConcurrencyExtras", package: "swift-concurrency-extras"), |
| 68 | + .product(name: "CustomDump", package: "swift-custom-dump"), |
| 69 | + .product(name: "Dependencies", package: "swift-dependencies"), |
| 70 | + .product(name: "InlineSnapshotTesting", package: "swift-snapshot-testing"), |
| 71 | + .product(name: "StructuredQueriesTestSupport", package: "swift-structured-queries"), |
| 72 | + ] |
| 73 | + ), |
| 74 | + .testTarget( |
| 75 | + name: "SQLiteDataTests", |
| 76 | + dependencies: [ |
| 77 | + "SQLiteData", |
| 78 | + "SQLiteDataTestSupport", |
| 79 | + .product(name: "DependenciesTestSupport", package: "swift-dependencies"), |
| 80 | + .product(name: "InlineSnapshotTesting", package: "swift-snapshot-testing"), |
| 81 | + .product(name: "SnapshotTestingCustomDump", package: "swift-snapshot-testing"), |
| 82 | + .product(name: "StructuredQueries", package: "swift-structured-queries"), |
| 83 | + ] |
| 84 | + ), |
| 85 | + ], |
| 86 | + swiftLanguageModes: [.v6] |
86 | 87 | ) |
87 | 88 |
|
88 | 89 | let swiftSettings: [SwiftSetting] = [ |
89 | | - .enableUpcomingFeature("MemberImportVisibility") |
90 | | - // .unsafeFlags([ |
91 | | - // "-Xfrontend", |
92 | | - // "-warn-long-function-bodies=50", |
93 | | - // "-Xfrontend", |
94 | | - // "-warn-long-expression-type-checking=50", |
95 | | - // ]) |
| 90 | + .enableUpcomingFeature("MemberImportVisibility") |
| 91 | + // .unsafeFlags([ |
| 92 | + // "-Xfrontend", |
| 93 | + // "-warn-long-function-bodies=50", |
| 94 | + // "-Xfrontend", |
| 95 | + // "-warn-long-expression-type-checking=50", |
| 96 | + // ]) |
96 | 97 | ] |
97 | 98 |
|
98 | 99 | for index in package.targets.indices { |
99 | | - package.targets[index].swiftSettings = swiftSettings |
| 100 | + package.targets[index].swiftSettings = swiftSettings |
100 | 101 | } |
101 | 102 |
|
102 | 103 | #if !os(Windows) |
103 | | - // Add the documentation compiler plugin if possible |
104 | | - package.dependencies.append( |
105 | | - .package(url: "https://github.com/apple/swift-docc-plugin", from: "1.0.0") |
106 | | - ) |
| 104 | + // Add the documentation compiler plugin if possible |
| 105 | + package.dependencies.append( |
| 106 | + .package(url: "https://github.com/apple/swift-docc-plugin", from: "1.0.0") |
| 107 | + ) |
107 | 108 | #endif |
0 commit comments