diff --git a/core/ui-test/build.gradle.kts b/core/ui-test/build.gradle.kts index a584ad81..350274f9 100644 --- a/core/ui-test/build.gradle.kts +++ b/core/ui-test/build.gradle.kts @@ -7,7 +7,7 @@ android { } dependencies { - implementation(project(":core:ui")) + implementation(project(path = ":core:ui", configuration = "productionTumDebugApiElements")) implementation(libs.koin.core) implementation(libs.kotlinx.coroutines.core) diff --git a/core/ui-test/src/main/kotlin/de/tum/informatics/www1/artemis/native_app/core/ui/test/ArtemisImageProviderStub.kt b/core/ui-test/src/main/kotlin/de/tum/informatics/www1/artemis/native_app/core/ui/test/ArtemisImageProviderStub.kt index 2c61eedd..a9b13fb3 100644 --- a/core/ui-test/src/main/kotlin/de/tum/informatics/www1/artemis/native_app/core/ui/test/ArtemisImageProviderStub.kt +++ b/core/ui-test/src/main/kotlin/de/tum/informatics/www1/artemis/native_app/core/ui/test/ArtemisImageProviderStub.kt @@ -1,6 +1,13 @@ package de.tum.informatics.www1.artemis.native_app.core.ui.test -import android.graphics.Insets.add +import androidx.compose.runtime.Composable +import androidx.compose.ui.platform.LocalContext +import coil3.ImageLoader +import coil3.SingletonImageLoader +import coil3.request.ImageRequest +import coil3.test.FakeImage +import coil3.test.FakeImageLoaderEngine +import de.tum.informatics.www1.artemis.native_app.core.ui.remote_images.ArtemisImageProvider class ArtemisImageProviderStub : ArtemisImageProvider { diff --git a/core/ui-test/src/main/kotlin/de/tum/informatics/www1/artemis/native_app/core/ui/test/ui_test_module.kt b/core/ui-test/src/main/kotlin/de/tum/informatics/www1/artemis/native_app/core/ui/test/ui_test_module.kt index ce478537..d3522bb0 100644 --- a/core/ui-test/src/main/kotlin/de/tum/informatics/www1/artemis/native_app/core/ui/test/ui_test_module.kt +++ b/core/ui-test/src/main/kotlin/de/tum/informatics/www1/artemis/native_app/core/ui/test/ui_test_module.kt @@ -1,6 +1,6 @@ package de.tum.informatics.www1.artemis.native_app.core.ui.test - +import de.tum.informatics.www1.artemis.native_app.core.ui.remote_images.ArtemisImageProvider import org.koin.dsl.module val uiTestModule = module {