1- // swift-tools-version: 5.7
1+ // swift-tools-version: 6.1
22// The swift-tools-version declares the minimum version of Swift required to build this package.
33
44import PackageDescription
@@ -18,14 +18,20 @@ let localCoreExtension: String? = nil
1818// a binary target.
1919// With a local SDK, we point to a `Package.swift` within the Kotlin SDK containing a target pointing
2020// towards a local framework build
21- var conditionalDependencies : [ Package . Dependency ] = [ ]
21+ var conditionalDependencies : [ Package . Dependency ] = [
22+ . package (
23+ url: " https://github.com/sbooth/CSQLite.git " ,
24+ from: " 3.50.4 " ,
25+ traits: [ " ENABLE_SESSION " ]
26+ )
27+ ]
2228var conditionalTargets : [ Target ] = [ ]
2329var kotlinTargetDependency = Target . Dependency. target ( name: " PowerSyncKotlin " )
2430
2531if let kotlinSdkPath = localKotlinSdkOverride {
2632 // We can't depend on local XCFrameworks outside of this project's root, so there's a Package.swift
2733 // in the PowerSyncKotlin project pointing towards a local build.
28- conditionalDependencies. append ( . package ( path: " \( kotlinSdkPath) /PowerSyncKotlin " ) )
34+ conditionalDependencies. append ( . package ( path: " \( kotlinSdkPath) /internal/ PowerSyncKotlin " ) )
2935
3036 kotlinTargetDependency = . product( name: " PowerSyncKotlin " , package : " PowerSyncKotlin " )
3137} else {
@@ -81,7 +87,8 @@ let package = Package(
8187 name: packageName,
8288 dependencies: [
8389 kotlinTargetDependency,
84- . product( name: " PowerSyncSQLiteCore " , package : corePackageName)
90+ . product( name: " PowerSyncSQLiteCore " , package : corePackageName) ,
91+ . product( name: " CSQLite " , package : " CSQLite " )
8592 ]
8693 ) ,
8794 . testTarget(
0 commit comments