From 5aa28bbe0038c729330c16f7c65d415b2194bb45 Mon Sep 17 00:00:00 2001 From: Mateusz Armatys Date: Wed, 23 Apr 2025 13:14:34 +0200 Subject: [PATCH] build(device-migration): Optimize project dependencies. --- device-migration/data/build.gradle.kts | 1 + device-migration/domain/build.gradle.kts | 5 ++- .../presentation/build.gradle.kts | 41 +++++++++++++++---- 3 files changed, 38 insertions(+), 9 deletions(-) diff --git a/device-migration/data/build.gradle.kts b/device-migration/data/build.gradle.kts index 04e4be0ea..cc3f4e471 100644 --- a/device-migration/data/build.gradle.kts +++ b/device-migration/data/build.gradle.kts @@ -40,6 +40,7 @@ dependencies { project(Module.deviceMigrationDomain), project(Module.domain), project(Module.featureFlagDomain), + project(Module.userDomain), project(Module.userSettingsDomain), ) diff --git a/device-migration/domain/build.gradle.kts b/device-migration/domain/build.gradle.kts index 3cee5ff9f..82de84140 100644 --- a/device-migration/domain/build.gradle.kts +++ b/device-migration/domain/build.gradle.kts @@ -27,12 +27,15 @@ publishOption.shouldBePublishedAsLib = true dependencies { api( project(Module.authDomain), + project(Module.cryptoCommon), project(Module.domain), project(Module.networkDomain), + `coroutines-core`, + `javax-inject`, ) implementation( - project(Module.cryptoCommon), + project(Module.kotlinUtil), ) testImplementation( diff --git a/device-migration/presentation/build.gradle.kts b/device-migration/presentation/build.gradle.kts index 424608e55..391b2640d 100644 --- a/device-migration/presentation/build.gradle.kts +++ b/device-migration/presentation/build.gradle.kts @@ -39,9 +39,24 @@ android { dependencies { api( + project(Module.accountDomain), + project(Module.accountManagerDomain), + project(Module.authDomain), + project(Module.biometricData), + project(Module.cryptoCommon), project(Module.deviceMigrationDomain), - project(Module.networkPresentation), + project(Module.domain), + project(Module.kotlinUtil), + project(Module.networkDomain), + project(Module.observabilityDomain), + project(Module.presentation), + project(Module.presentationCompose), + project(Module.userDomain), activity, + `coroutines-core`, + fragment, + `lifecycle-savedState`, + `zxing-embedded`, ) debugImplementation( @@ -49,27 +64,37 @@ dependencies { ) implementation( - project(Module.accountManagerDomain), - project(Module.biometricData), + project(Module.biometricDomain), project(Module.biometricPresentation), - project(Module.observabilityDomain), - project(Module.presentation), - project(Module.presentationCompose), `accompanist-permissions`, + `activity-compose`, + `androidx-core`, `androidx-core-ktx`, + `androidx-navigation-common`, + `android-annotation`, + `compose-animation`, + `compose-foundation`, + `compose-foundation-layout`, + `compose-material`, `compose-runtime`, + `compose-ui`, + `compose-ui-graphics`, + `compose-ui-text`, `compose-ui-tooling-preview`, `compose-ui-unit`, `hilt-navigation-compose`, - `lifecycle-savedState`, + `lifecycle-common`, + `lifecycle-runtime-compose`, `lifecycle-viewModel`, + `lifecycle-viewModel-compose`, + `navigation-compose`, `zxing-core`, - `zxing-embedded`, ) testImplementation( project(Module.kotlinTest), `coroutines-test`, + junit, `kotlin-test`, mockk, turbine,