File tree Expand file tree Collapse file tree 4 files changed +25
-8
lines changed
commonMain/kotlin/com/powersync/sqlite3 Expand file tree Collapse file tree 4 files changed +25
-8
lines changed Original file line number Diff line number Diff line change @@ -12,14 +12,13 @@ import org.jetbrains.kotlin.konan.target.PlatformManager
1212plugins {
1313 alias(libs.plugins.kotlinMultiplatform)
1414 alias(libs.plugins.downloadPlugin)
15+ alias(libs.plugins.kotlinter)
1516 id(" com.powersync.plugins.sonatype" )
1617}
1718
1819val sqliteVersion = " 3490100"
1920val sqliteReleaseYear = " 2025"
2021
21- setupGithubRepository()
22-
2322val downloads = layout.buildDirectory.dir(" downloads" )
2423val sqliteSrcFolder = downloads.map { it.dir(" sqlite3" ) }
2524
@@ -155,6 +154,7 @@ kotlin {
155154 iosSimulatorArm64()
156155
157156 applyDefaultHierarchyTemplate()
157+ explicitApi()
158158
159159 sourceSets {
160160 all {
@@ -187,3 +187,5 @@ kotlin {
187187 }
188188 }
189189}
190+
191+ setupGithubRepository()
Original file line number Diff line number Diff line change 1+ POM_ARTIFACT_ID =static-sqlite-driver
2+ POM_NAME =Statically linked SQLite
3+ POM_DESCRIPTION =A Kotlin-multiplatform bundle containing a static library for SQLite without Kotlin code.
Original file line number Diff line number Diff line change 1+ package com.powersync.sqlite3
2+
3+ /* *
4+ * An empty Kotlin object.
5+ *
6+ * This package needs to provide a source to be published correctly. The only purpose of this package is to provide
7+ * build scripts linking SQLite statically however, so this empty object is defined for publishing only.
8+ */
9+ public object StaticSqliteDriver
Original file line number Diff line number Diff line change @@ -6,12 +6,15 @@ import kotlin.test.assertEquals
66class SmokeTest {
77 @Test
88 fun canUseSqlite () {
9- val manager = createDatabaseManager(DatabaseConfiguration (
10- name = " test" ,
11- version = 1 ,
12- create = {},
13- inMemory = true ,
14- ))
9+ val manager =
10+ createDatabaseManager(
11+ DatabaseConfiguration (
12+ name = " test" ,
13+ version = 1 ,
14+ create = {},
15+ inMemory = true ,
16+ ),
17+ )
1518 val db = manager.createSingleThreadedConnection()
1619 val stmt = db.createStatement(" SELECT sqlite_version();" )
1720 val cursor = stmt.query()
You can’t perform that action at this time.
0 commit comments