diff --git a/connectors/build.gradle.kts b/connectors/build.gradle.kts index 509b0bbc..952fe585 100644 --- a/connectors/build.gradle.kts +++ b/connectors/build.gradle.kts @@ -2,6 +2,7 @@ plugins { alias(libs.plugins.kotlinMultiplatform) alias(libs.plugins.kotlinSerialization) alias(libs.plugins.androidLibrary) + id("module.publication") } kotlin { diff --git a/convention-plugins/settings.gradle.kts b/convention-plugins/settings.gradle.kts index db65525c..ffb42e8a 100644 --- a/convention-plugins/settings.gradle.kts +++ b/convention-plugins/settings.gradle.kts @@ -18,6 +18,4 @@ dependencyResolutionManagement { from(files("../gradle/libs.versions.toml")) } } -} - -enableFeaturePreview("TYPESAFE_PROJECT_ACCESSORS") \ No newline at end of file +} \ No newline at end of file diff --git a/core/build.gradle.kts b/core/build.gradle.kts index 3c72c639..4566f7f2 100644 --- a/core/build.gradle.kts +++ b/core/build.gradle.kts @@ -5,6 +5,7 @@ plugins { alias(libs.plugins.kotlinSerialization) alias(libs.plugins.androidLibrary) alias(libs.plugins.sqldelight) + id("module.publication") } kotlin { @@ -57,6 +58,10 @@ kotlin { implementation(libs.ktor.client.ios) implementation(libs.sqldelight.driver.ios) } + + commonTest.dependencies { + implementation(libs.kotlin.test) + } } } diff --git a/core/src/androidMain/kotlin/co/powersync/db/DatabaseDriverFactory.android.kt b/core/src/androidMain/kotlin/co/powersync/db/DatabaseDriverFactory.android.kt index 48c5a952..f7a6193b 100644 --- a/core/src/androidMain/kotlin/co/powersync/db/DatabaseDriverFactory.android.kt +++ b/core/src/androidMain/kotlin/co/powersync/db/DatabaseDriverFactory.android.kt @@ -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, diff --git a/core/src/commonMain/kotlin/co/powersync/db/DatabaseDriverFactory.kt b/core/src/commonMain/kotlin/co/powersync/db/DatabaseDriverFactory.kt index 2c942fb2..10981d61 100644 --- a/core/src/commonMain/kotlin/co/powersync/db/DatabaseDriverFactory.kt +++ b/core/src/commonMain/kotlin/co/powersync/db/DatabaseDriverFactory.kt @@ -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, diff --git a/core/src/commonTest/kotlin/FoobarTest.kt b/core/src/commonTest/kotlin/FoobarTest.kt new file mode 100644 index 00000000..690c878a --- /dev/null +++ b/core/src/commonTest/kotlin/FoobarTest.kt @@ -0,0 +1,10 @@ +import kotlin.test.Test +import kotlin.test.assertEquals + +class FoobarTest { + + @Test + fun `test true`() { + assertEquals(true, true) + } +} \ No newline at end of file diff --git a/core/src/iosMain/kotlin/co/powersync/db/DatabaseDriverFactory.ios.kt b/core/src/iosMain/kotlin/co/powersync/db/DatabaseDriverFactory.ios.kt index 59e47aa6..1d0f95f5 100644 --- a/core/src/iosMain/kotlin/co/powersync/db/DatabaseDriverFactory.ios.kt +++ b/core/src/iosMain/kotlin/co/powersync/db/DatabaseDriverFactory.ios.kt @@ -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 {