Skip to content

Commit

Permalink
wip: add foobar test and publication id
Browse files Browse the repository at this point in the history
  • Loading branch information
Manrich121 committed Jan 30, 2024
1 parent b9359cc commit 9b244e0
Show file tree
Hide file tree
Showing 7 changed files with 20 additions and 3 deletions.
1 change: 1 addition & 0 deletions connectors/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ plugins {
alias(libs.plugins.kotlinMultiplatform)
alias(libs.plugins.kotlinSerialization)
alias(libs.plugins.androidLibrary)
id("module.publication")
}

kotlin {
Expand Down
4 changes: 1 addition & 3 deletions convention-plugins/settings.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,4 @@ dependencyResolutionManagement {
from(files("../gradle/libs.versions.toml"))
}
}
}

enableFeaturePreview("TYPESAFE_PROJECT_ACCESSORS")
}
5 changes: 5 additions & 0 deletions core/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ plugins {
alias(libs.plugins.kotlinSerialization)
alias(libs.plugins.androidLibrary)
alias(libs.plugins.sqldelight)
id("module.publication")
}

kotlin {
Expand Down Expand Up @@ -57,6 +58,10 @@ kotlin {
implementation(libs.ktor.client.ios)
implementation(libs.sqldelight.driver.ios)
}

commonTest.dependencies {
implementation(libs.kotlin.test)
}
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import co.powersync.db.schema.Schema
import io.requery.android.database.sqlite.RequerySQLiteOpenHelperFactory
import io.requery.android.database.sqlite.SQLiteCustomExtension

@Suppress("EXPECT_ACTUAL_CLASSIFIERS_ARE_IN_BETA_WARNING")
actual class DatabaseDriverFactory(private val context: Context) {
actual fun createDriver(
schema: Schema,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import app.cash.sqldelight.db.SqlDriver
import co.powersync.db.schema.Schema


@Suppress("EXPECT_ACTUAL_CLASSIFIERS_ARE_IN_BETA_WARNING")
expect class DatabaseDriverFactory {
fun createDriver(
schema: Schema,
Expand Down
10 changes: 10 additions & 0 deletions core/src/commonTest/kotlin/FoobarTest.kt
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import kotlin.test.Test
import kotlin.test.assertEquals

class FoobarTest {

@Test
fun `test true`() {
assertEquals(true, true)
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import co.powersync.db.schema.Schema
import kotlinx.cinterop.ExperimentalForeignApi
import co.powersync.sqlite.core.init_powersync_sqlite_extension

@Suppress("EXPECT_ACTUAL_CLASSIFIERS_ARE_IN_BETA_WARNING")
@OptIn(ExperimentalForeignApi::class)
actual class DatabaseDriverFactory {

Expand Down

0 comments on commit 9b244e0

Please sign in to comment.