Skip to content

Commit a842943

Browse files
committed
Update dependencies
1 parent 27f305f commit a842943

1 file changed

Lines changed: 6 additions & 29 deletions

File tree

‎Package.swift‎

Lines changed: 6 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -2,21 +2,6 @@
22
import PackageDescription
33
import Foundation
44

5-
// Android has no system libsqlite3, so it needs SQLite.swift's embedded
6-
// copy. macOS and Linux keep SQLite.swift's own default for the platform.
7-
let isAndroid = ProcessInfo.processInfo.environment["TARGET_OS_ANDROID"] == "1"
8-
9-
let sqliteDependency: Package.Dependency = isAndroid
10-
? .package(
11-
url: "https://github.com/stephencelis/SQLite.swift.git",
12-
from: "0.16.0",
13-
traits: ["SQLiteSwiftCSQLite"]
14-
)
15-
: .package(
16-
url: "https://github.com/stephencelis/SQLite.swift.git",
17-
from: "0.16.0"
18-
)
19-
205
let package = Package(
216
name: "CoreModel-SQLite",
227
platforms: [
@@ -36,13 +21,12 @@ let package = Package(
3621
url: "https://github.com/PureSwift/CoreModel",
3722
from: "2.8.0"
3823
),
39-
sqliteDependency,
40-
// Off Apple platforms, SQLite.swift links the embedded SQLite from this package.
41-
// We depend on it directly so we can call the SQLite C API (custom functions)
42-
// where the system `SQLite3` module isn't available.
24+
// PureSwift/SQLite wraps the system SQLite3 on Apple platforms and links
25+
// an embedded SQLite (via swift-sqlcipher) everywhere else, so no separate
26+
// C SQLite dependency or per-platform branching is needed here.
4327
.package(
44-
url: "https://github.com/stephencelis/CSQLite",
45-
from: "3.50.4"
28+
url: "https://github.com/PureSwift/SQLite",
29+
branch: "master"
4630
)
4731
],
4832
targets: [
@@ -52,14 +36,7 @@ let package = Package(
5236
"CoreModel",
5337
.product(
5438
name: "SQLite",
55-
package: "SQLite.swift"
56-
),
57-
// On Apple platforms the SQLite C API comes from the system `SQLite3`
58-
// module; elsewhere it comes from SQLite.swift's embedded copy.
59-
.product(
60-
name: "SQLiteSwiftCSQLite",
61-
package: "CSQLite",
62-
condition: .when(platforms: [.linux, .android])
39+
package: "SQLite"
6340
)
6441
]
6542
),

0 commit comments

Comments
 (0)