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
44import PackageDescription
@@ -20,9 +20,7 @@ let encryption = true
2020// a binary target.
2121// With a local SDK, we point to a `Package.swift` within the Kotlin SDK containing a target pointing
2222// towards a local framework build
23- var conditionalDependencies : [ Package . Dependency ] = [
24- ]
25-
23+ var conditionalDependencies : [ Package . Dependency ] = [ ]
2624var conditionalTargets : [ Target ] = [ ]
2725var kotlinTargetDependency = Target . Dependency. target ( name: " PowerSyncKotlin " )
2826
@@ -40,11 +38,13 @@ if let kotlinSdkPath = localKotlinSdkOverride {
4038 kotlinTargetDependency = . product( name: " PowerSyncKotlin " , package : " PowerSyncKotlin " )
4139} else {
4240 // Not using a local build, so download from releases
43- conditionalTargets. append ( . binaryTarget(
44- name: " PowerSyncKotlin " ,
45- url: " https://github.com/powersync-ja/powersync-kotlin/releases/download/v1.8.0/PowersyncKotlinRelease.zip " ,
46- checksum: " 31ac7c5e11d747e11bceb0b34f30438d37033e700c621b0a468aa308d887587f "
47- ) )
41+ conditionalTargets. append (
42+ . binaryTarget(
43+ name: " PowerSyncKotlin " ,
44+ url:
45+ " https://github.com/powersync-ja/powersync-kotlin/releases/download/v1.9.0/PowersyncKotlinRelease.zip " ,
46+ checksum: " 6d9847391ab2bbbca1f6a7abe163f0682ddca4a559ef5a1d2567b3e62e7d9979 "
47+ ) )
4848}
4949
5050var corePackageName = " powersync-sqlite-core-swift "
@@ -53,18 +53,19 @@ if let corePath = localCoreExtension {
5353 corePackageName = " powersync-sqlite-core "
5454} else {
5555 // Not using a local build, so download from releases
56- conditionalDependencies. append ( . package (
57- url: " https://github.com/powersync-ja/powersync-sqlite-core-swift.git " ,
58- exact: " 0.4.8 "
59- ) )
56+ conditionalDependencies. append (
57+ . package (
58+ url: " https://github.com/powersync-ja/powersync-sqlite-core-swift.git " ,
59+ exact: " 0.4.10 "
60+ ) )
6061}
6162
6263let package = Package (
6364 name: packageName,
6465 platforms: [
6566 . iOS( . v15) ,
6667 . macOS( . v12) ,
67- . watchOS( . v9)
68+ . watchOS( . v9) ,
6869 ] ,
6970 products: [
7071 // Products define the executables and libraries a package produces, making them visible to other packages.
@@ -88,7 +89,8 @@ let package = Package(
8889 )
8990 ] ,
9091 dependencies: conditionalDependencies + [
91- . package ( url: " https://github.com/groue/GRDB.swift.git " , from: " 7.7.0 " )
92+ . package ( url: " https://github.com/groue/GRDB.swift.git " , from: " 7.7.0 " ) ,
93+ . package ( url: " git@github.com:powersync-ja/CSQLite.git " , revision: " init " )
9294 ] ,
9395 targets: [
9496 // Targets are the basic building blocks of a package, defining a module or a test suite.
@@ -108,7 +110,6 @@ let package = Package(
108110 dependencies: [
109111 . target( name: " PowerSync " ) ,
110112 . product( name: " GRDB " , package : " GRDB.swift " )
111-
112113 ]
113114 ) ,
114115 . testTarget(
0 commit comments