Skip to content

Commit a159bb9

Browse files
authored
Fix missing native library on Android (#265)
1 parent 4dea227 commit a159bb9

File tree

5 files changed

+10
-8
lines changed

5 files changed

+10
-8
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Changelog
22

3+
## 1.6.1
4+
5+
* Fix `dlopen failed: library "libpowersync.so.so" not found` errors on Android.
6+
37
## 1.6.0
48

59
* Remove internal SQLDelight and SQLiter dependencies.

core/build.gradle.kts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,7 @@ kotlin {
171171
androidMain {
172172
dependsOn(commonJava)
173173
dependencies {
174+
api(libs.powersync.sqlite.core.android)
174175
implementation(libs.ktor.client.okhttp)
175176
implementation(libs.androidx.sqlite.bundled)
176177
}
@@ -255,11 +256,6 @@ android {
255256
consumerProguardFiles("proguard-rules.pro")
256257
}
257258

258-
sourceSets {
259-
getByName("main") {
260-
jniLibs.srcDirs("src/androidMain/jni", "src/main/jni", "src/jniLibs")
261-
}
262-
}
263259
ndkVersion = "27.1.12297006"
264260
}
265261

core/proguard-rules.pro

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# Temporary workaround for https://issuetracker.google.com/issues/442489402
2+
-keepclasseswithmembers class androidx.sqlite.driver.bundled.** { native <methods>; }

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ development=true
1919
RELEASE_SIGNING_ENABLED=true
2020
# Library config
2121
GROUP=com.powersync
22-
LIBRARY_VERSION=1.6.0
22+
LIBRARY_VERSION=1.6.1
2323
GITHUB_REPO=https://github.com/powersync-ja/powersync-kotlin.git
2424
# POM
2525
POM_URL=https://github.com/powersync-ja/powersync-kotlin/

gradle/libs.versions.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,9 @@ compose = "1.8.2" # This is for the multiplatform compose
3030
androidCompose = "2025.08.00"
3131
compose-preview = "1.9.0"
3232
compose-lifecycle = "2.9.2"
33-
androidxSqlite = "2.6.0-rc02"
33+
androidxSqlite = "2.6.0"
3434
androidxSplashscreen = "1.0.1"
35-
room = "2.8.0-rc02"
35+
room = "2.8.0"
3636
sqldelight = "2.1.0"
3737

3838
# plugins

0 commit comments

Comments
 (0)