Skip to content

Commit

Permalink
fix coroutines-extensions tests build failing because of SQLiter not …
Browse files Browse the repository at this point in the history
…available for androidNative
  • Loading branch information
IlyaGulya committed Mar 25, 2024
1 parent b3df135 commit f3fbc73
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 18 deletions.
37 changes: 19 additions & 18 deletions extensions/coroutines-extensions/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -11,30 +11,31 @@ archivesBaseName = 'sqldelight-coroutines-extensions'

kotlin {
applyDefaultHierarchyTemplate {
it.group("testableNative") {
it.withApple()
it.withLinux()
it.withMingw()
// https://github.com/touchlab/SQLiter/issues/117
// it.withAndroidNative()
it.common {
it.group("testableNative") {
it.withApple()
it.withLinux()
it.withMingw()
// https://github.com/touchlab/SQLiter/issues/117
// it.withAndroidNative()
}
}
}

sourceSets {
commonMain {
dependencies {
api projects.runtime
api libs.kotlin.coroutines.core
implementation project(":extensions:async-extensions")
}
commonMain.dependencies {
api projects.runtime
api libs.kotlin.coroutines.core
implementation project(":extensions:async-extensions")
}
commonTest {
dependencies {
implementation libs.kotlin.coroutines.test
implementation libs.kotlin.test
implementation libs.turbine
}

commonTest.dependencies {
implementation libs.kotlin.coroutines.test
implementation libs.kotlin.test
implementation libs.turbine
implementation libs.stately.concurrency
}

jvmTest {
dependencies {
implementation libs.kotlin.test.junit
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
/*
* Copyright (C) 2018 Square, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

package app.cash.sqldelight.coroutines

import app.cash.sqldelight.db.SqlDriver

actual suspend fun testDriver(): SqlDriver {
TODO("Sqliter does not support androidNative yet: https://github.com/touchlab/SQLiter/issues/117")
}

0 comments on commit f3fbc73

Please sign in to comment.