Skip to content

Commit c0eff8f

Browse files
stevensJourneysimolus3
authored andcommitted
use git dependency for csqlite
1 parent 5b8dbaf commit c0eff8f

File tree

2 files changed

+28
-16
lines changed

2 files changed

+28
-16
lines changed

Package.resolved

Lines changed: 10 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Package.swift

Lines changed: 18 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// swift-tools-version: 6.1
1+
// swift-tools-version: 5.9
22
// The swift-tools-version declares the minimum version of Swift required to build this package.
33

44
import PackageDescription
@@ -30,11 +30,13 @@ if let kotlinSdkPath = localKotlinSdkOverride {
3030
kotlinTargetDependency = .product(name: "PowerSyncKotlin", package: "PowerSyncKotlin")
3131
} else {
3232
// Not using a local build, so download from releases
33-
conditionalTargets.append(.binaryTarget(
34-
name: "PowerSyncKotlin",
35-
url: "https://github.com/powersync-ja/powersync-kotlin/releases/download/v1.9.0/PowersyncKotlinRelease.zip",
36-
checksum: "6d9847391ab2bbbca1f6a7abe163f0682ddca4a559ef5a1d2567b3e62e7d9979"
37-
))
33+
conditionalTargets.append(
34+
.binaryTarget(
35+
name: "PowerSyncKotlin",
36+
url:
37+
"https://github.com/powersync-ja/powersync-kotlin/releases/download/v1.9.0/PowersyncKotlinRelease.zip",
38+
checksum: "6d9847391ab2bbbca1f6a7abe163f0682ddca4a559ef5a1d2567b3e62e7d9979"
39+
))
3840
}
3941

4042
var corePackageName = "powersync-sqlite-core-swift"
@@ -43,18 +45,19 @@ if let corePath = localCoreExtension {
4345
corePackageName = "powersync-sqlite-core"
4446
} else {
4547
// Not using a local build, so download from releases
46-
conditionalDependencies.append(.package(
47-
url: "https://github.com/powersync-ja/powersync-sqlite-core-swift.git",
48-
exact: "0.4.10"
49-
))
48+
conditionalDependencies.append(
49+
.package(
50+
url: "https://github.com/powersync-ja/powersync-sqlite-core-swift.git",
51+
exact: "0.4.10"
52+
))
5053
}
5154

5255
let package = Package(
5356
name: packageName,
5457
platforms: [
5558
.iOS(.v15),
5659
.macOS(.v12),
57-
.watchOS(.v9)
60+
.watchOS(.v9),
5861
],
5962
products: [
6063
// Products define the executables and libraries a package produces, making them visible to other packages.
@@ -71,10 +74,10 @@ let package = Package(
7174
// Dynamic linking is particularly important for XCode previews.
7275
type: .dynamic,
7376
targets: ["PowerSync"]
74-
)
77+
),
7578
],
7679
dependencies: conditionalDependencies + [
77-
.package(path: "/Users/simon/src/CSQLite")
80+
.package(url: "git@github.com:powersync-ja/CSQLite.git", revision: "init")
7881
],
7982
targets: [
8083
// Targets are the basic building blocks of a package, defining a module or a test suite.
@@ -84,12 +87,12 @@ let package = Package(
8487
dependencies: [
8588
kotlinTargetDependency,
8689
.product(name: "PowerSyncSQLiteCore", package: corePackageName),
87-
.product(name: "CSQLite", package: "CSQLite")
90+
.product(name: "CSQLite", package: "CSQLite"),
8891
]
8992
),
9093
.testTarget(
9194
name: "PowerSyncTests",
9295
dependencies: ["PowerSync"]
93-
)
96+
),
9497
] + conditionalTargets
9598
)

0 commit comments

Comments
 (0)