From dc7a1132b8971c70ae08798de457427805b32ec1 Mon Sep 17 00:00:00 2001 From: Benoit Marty Date: Thu, 16 Mar 2023 11:24:05 +0100 Subject: [PATCH] Create `allServicesImpl()` --- app/build.gradle.kts | 5 ++--- plugins/src/main/kotlin/extension/DependencyHandleScope.kt | 4 ++++ 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/app/build.gradle.kts b/app/build.gradle.kts index ab9b27397f..a7d44ac510 100644 --- a/app/build.gradle.kts +++ b/app/build.gradle.kts @@ -19,6 +19,7 @@ import com.android.build.api.variant.FilterConfiguration.FilterType.ABI import extension.allFeaturesImpl import extension.allLibrariesImpl +import extension.allServicesImpl // TODO: Remove once https://youtrack.jetbrains.com/issue/KTIJ-19369 is fixed @Suppress("DSL_SCOPE_VIOLATION") @@ -201,15 +202,13 @@ knit { dependencies { allLibrariesImpl() + allServicesImpl() allFeaturesImpl() implementation(projects.tests.uitests) implementation(projects.anvilannotations) implementation(projects.appnav) anvil(projects.anvilcodegen) - // TODO Create allServiceImpl() - implementation(projects.services.appnavstate.impl) - // https://developer.android.com/studio/write/java8-support#library-desugaring-versions coreLibraryDesugaring("com.android.tools:desugar_jdk_libs:2.0.2") implementation(libs.appyx.core) diff --git a/plugins/src/main/kotlin/extension/DependencyHandleScope.kt b/plugins/src/main/kotlin/extension/DependencyHandleScope.kt index 9800914a26..426be4fcdb 100644 --- a/plugins/src/main/kotlin/extension/DependencyHandleScope.kt +++ b/plugins/src/main/kotlin/extension/DependencyHandleScope.kt @@ -63,6 +63,10 @@ fun DependencyHandlerScope.allLibrariesImpl() { } +fun DependencyHandlerScope.allServicesImpl() { + implementation(project(":services:appnavstate:impl")) +} + fun DependencyHandlerScope.allFeaturesApi() { implementation(project(":features:onboarding:api")) implementation(project(":features:login:api"))