Skip to content

Commit 5dd5f28

Browse files
committed
Link core framework again
1 parent eea8fc4 commit 5dd5f28

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

core/build.gradle.kts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -179,8 +179,7 @@ kotlin {
179179

180180
if (konanTarget.family == Family.IOS && konanTarget.name.contains("simulator")) {
181181
binaries.withType<TestExecutable>().configureEach {
182-
/*
183-
linkTaskProvider.dependsOn(unzipPowersyncFramework)
182+
linkTaskProvider.configure { dependsOn(unzipPowersyncFramework) }
184183
linkerOpts("-framework", "powersync-sqlite-core")
185184
val frameworkRoot =
186185
binariesFolder
@@ -189,7 +188,7 @@ kotlin {
189188
.asFile.path
190189

191190
linkerOpts("-F", frameworkRoot)
192-
linkerOpts("-rpath", frameworkRoot)*/
191+
linkerOpts("-rpath", frameworkRoot)
193192
}
194193
}
195194
/*

core/src/iosMain/kotlin/com/powersync/DatabaseDriverFactory.ios.kt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ import kotlinx.cinterop.alloc
2222
import kotlinx.cinterop.asStableRef
2323
import kotlinx.cinterop.nativeHeap
2424
import kotlinx.cinterop.ptr
25-
import kotlinx.cinterop.reinterpret
2625
import kotlinx.cinterop.staticCFunction
2726
import kotlinx.cinterop.toKString
2827
import kotlinx.cinterop.value
@@ -179,7 +178,7 @@ public actual class DatabaseDriverFactory {
179178
val basePtr = connection.getDbPointer().getPointer(MemScope())
180179

181180
sqlite3_update_hook(
182-
basePtr.reinterpret(),
181+
basePtr,
183182
null,
184183
null,
185184
)

0 commit comments

Comments
 (0)