diff --git a/app/build.gradle.kts b/app/build.gradle.kts index fb634eea..c0db9c7e 100644 --- a/app/build.gradle.kts +++ b/app/build.gradle.kts @@ -128,14 +128,14 @@ dependencies { implementation(libs.androidx.window) - implementation(project(":feature:camera")) - implementation(project(":feature:creation")) - implementation(project(":feature:home")) - implementation(project(":feature:results")) + implementation(projects.feature.camera) + implementation(projects.feature.creation) + implementation(projects.feature.home) + implementation(projects.feature.results) - implementation(project(":core:theme")) + implementation(projects.core.theme) - baselineProfile(project(":benchmark")) + baselineProfile(projects.benchmark) // Android Instrumented Tests androidTestImplementation(platform(libs.androidx.compose.bom)) @@ -143,7 +143,7 @@ dependencies { androidTestImplementation(libs.androidx.junit) androidTestImplementation(libs.androidx.espresso.core) androidTestImplementation(libs.hilt.android.testing) - androidTestImplementation(project(":core:testing")) + androidTestImplementation(projects.core.testing) kspAndroidTest(libs.hilt.compiler) debugImplementation(libs.androidx.ui.test.manifest) diff --git a/benchmark/build.gradle.kts b/benchmark/build.gradle.kts index 00510b64..2c7e9dd7 100644 --- a/benchmark/build.gradle.kts +++ b/benchmark/build.gradle.kts @@ -95,5 +95,5 @@ dependencies { implementation(libs.androidx.uiautomator) implementation(libs.androidx.benchmark.macro.junit4) implementation(libs.hilt.android.testing) - implementation(project(":core:testing")) + implementation(projects.core.testing) } diff --git a/core/network/build.gradle.kts b/core/network/build.gradle.kts index 18f595dd..12c459fa 100644 --- a/core/network/build.gradle.kts +++ b/core/network/build.gradle.kts @@ -77,12 +77,12 @@ dependencies { } implementation(libs.firebase.app.check) implementation(libs.firebase.config) - implementation(project(":core:util")) + implementation(projects.core.util) implementation(libs.firebase.config.ktx) ksp(libs.hilt.compiler) androidTestImplementation(libs.androidx.ui.test.junit4) androidTestImplementation(libs.hilt.android.testing) - androidTestImplementation(project(":core:testing")) + androidTestImplementation(projects.core.testing) kspAndroidTest(libs.hilt.compiler) } diff --git a/core/testing/build.gradle.kts b/core/testing/build.gradle.kts index 47b8b914..3d316635 100644 --- a/core/testing/build.gradle.kts +++ b/core/testing/build.gradle.kts @@ -55,9 +55,9 @@ dependencies { implementation(libs.hilt.android) implementation(libs.androidx.runner) implementation(libs.hilt.android.testing) - implementation(project(":data")) - implementation(project(":core:network")) - implementation(project(":core:util")) + implementation(projects.data) + implementation(projects.core.network) + implementation(projects.core.util) ksp(libs.hilt.compiler) androidTestImplementation(platform(libs.androidx.compose.bom)) diff --git a/core/theme/build.gradle.kts b/core/theme/build.gradle.kts index ee14bbf8..5740fc0e 100644 --- a/core/theme/build.gradle.kts +++ b/core/theme/build.gradle.kts @@ -56,7 +56,7 @@ dependencies { implementation(platform(libs.androidx.compose.bom)) implementation(libs.androidx.ui.tooling.preview) implementation(libs.androidx.material3) - implementation(project(":core:util")) + implementation(projects.core.util) implementation(libs.androidx.adaptive) implementation(libs.androidx.adaptive.layout) @@ -70,7 +70,7 @@ dependencies { androidTestImplementation(libs.androidx.junit) androidTestImplementation(libs.androidx.espresso.core) androidTestImplementation(libs.hilt.android.testing) - androidTestImplementation(project(":core:testing")) + androidTestImplementation(projects.core.testing) debugImplementation(libs.androidx.ui.test.manifest) } diff --git a/data/build.gradle.kts b/data/build.gradle.kts index 434f15b2..cab95799 100644 --- a/data/build.gradle.kts +++ b/data/build.gradle.kts @@ -45,8 +45,8 @@ androidComponents { } dependencies { - implementation(project(":core:network")) - implementation(project(":core:util")) + implementation(projects.core.network) + implementation(projects.core.util) implementation(libs.kotlinx.serialization.json) implementation(libs.retrofit) diff --git a/feature/camera/build.gradle.kts b/feature/camera/build.gradle.kts index a8043c85..ac4af4d7 100644 --- a/feature/camera/build.gradle.kts +++ b/feature/camera/build.gradle.kts @@ -71,9 +71,9 @@ dependencies { implementation(libs.androidx.ui.tooling) debugImplementation(libs.androidx.ui.tooling.preview) - implementation(project(":core:theme")) - implementation(project(":core:util")) - implementation(project(":data")) + implementation(projects.core.theme) + implementation(projects.core.util) + implementation(projects.data) // Android Instrumented Tests androidTestImplementation(platform(libs.androidx.compose.bom)) @@ -81,7 +81,7 @@ dependencies { androidTestImplementation(libs.androidx.junit) androidTestImplementation(libs.androidx.espresso.core) androidTestImplementation(libs.hilt.android.testing) - androidTestImplementation(project(":core:testing")) + androidTestImplementation(projects.core.testing) kspAndroidTest(libs.hilt.compiler) debugImplementation(libs.androidx.ui.test.manifest) diff --git a/feature/creation/build.gradle.kts b/feature/creation/build.gradle.kts index c7288832..1fee66fc 100644 --- a/feature/creation/build.gradle.kts +++ b/feature/creation/build.gradle.kts @@ -74,13 +74,13 @@ dependencies { implementation(libs.androidx.ui.tooling) debugImplementation(libs.androidx.ui.tooling.preview) - implementation(project(":core:theme")) - implementation(project(":core:util")) - implementation(project(":data")) - implementation(project(":feature:results")) + implementation(projects.core.theme) + implementation(projects.core.util) + implementation(projects.data) + implementation(projects.feature.results) testImplementation(libs.hilt.android.testing) testImplementation(libs.robolectric) - testImplementation(project(":core:testing")) + testImplementation(projects.core.testing) testImplementation(kotlin("test")) // Android Instrumented Tests @@ -89,7 +89,7 @@ dependencies { androidTestImplementation(libs.androidx.junit) androidTestImplementation(libs.androidx.espresso.core) androidTestImplementation(libs.hilt.android.testing) - androidTestImplementation(project(":core:testing")) + androidTestImplementation(projects.core.testing) kspAndroidTest(libs.hilt.compiler) debugImplementation(libs.androidx.ui.test.manifest) diff --git a/feature/home/build.gradle.kts b/feature/home/build.gradle.kts index bbefb7b5..857cb716 100644 --- a/feature/home/build.gradle.kts +++ b/feature/home/build.gradle.kts @@ -68,12 +68,12 @@ dependencies { implementation(libs.androidx.ui.tooling) debugImplementation(libs.androidx.ui.tooling.preview) - implementation(project(":core:theme")) - implementation(project(":core:util")) - implementation(project(":data")) + implementation(projects.core.theme) + implementation(projects.core.util) + implementation(projects.data) testImplementation(libs.hilt.android.testing) testImplementation(libs.robolectric) - testImplementation(project(":core:testing")) + testImplementation(projects.core.testing) // Android Instrumented Tests androidTestImplementation(platform(libs.androidx.compose.bom)) @@ -81,7 +81,7 @@ dependencies { androidTestImplementation(libs.androidx.junit) androidTestImplementation(libs.androidx.espresso.core) androidTestImplementation(libs.hilt.android.testing) - androidTestImplementation(project(":core:testing")) + androidTestImplementation(projects.core.testing) kspAndroidTest(libs.hilt.compiler) debugImplementation(libs.androidx.ui.test.manifest) diff --git a/feature/results/build.gradle.kts b/feature/results/build.gradle.kts index c2784439..5c422f1a 100644 --- a/feature/results/build.gradle.kts +++ b/feature/results/build.gradle.kts @@ -64,12 +64,12 @@ dependencies { testImplementation(libs.hilt.android.testing) testImplementation(libs.robolectric) - testImplementation(project(":core:testing")) - implementation(project(":core:network")) + testImplementation(projects.core.testing) + implementation(projects.core.network) - implementation(project(":core:theme")) - implementation(project(":core:util")) - implementation(project(":data")) + implementation(projects.core.theme) + implementation(projects.core.util) + implementation(projects.data) testImplementation(kotlin("test")) // Android Instrumented Tests @@ -78,7 +78,7 @@ dependencies { androidTestImplementation(libs.androidx.junit) androidTestImplementation(libs.androidx.espresso.core) androidTestImplementation(libs.hilt.android.testing) - androidTestImplementation(project(":core:testing")) + androidTestImplementation(projects.core.testing) kspAndroidTest(libs.hilt.compiler) debugImplementation(libs.androidx.ui.test.manifest) diff --git a/settings.gradle.kts b/settings.gradle.kts index f6bb20f4..5417978f 100644 --- a/settings.gradle.kts +++ b/settings.gradle.kts @@ -28,6 +28,8 @@ dependencyResolutionManagement { } } +enableFeaturePreview("TYPESAFE_PROJECT_ACCESSORS") + rootProject.name = "Androidify" include(":app")