From ca27b2eb5637f9e5b113969a6ee3b113b418ef97 Mon Sep 17 00:00:00 2001 From: Sergio Belda Galbis Date: Thu, 12 Dec 2024 18:54:53 +0100 Subject: [PATCH] Enable Gradle feature TYPESAFE_PROJECT_ACCESSORS (#223) --- android/build.gradle.kts | 4 ++-- ios/build.gradle.kts | 8 ++++---- settings.gradle.kts | 2 ++ shared-ui/build.gradle.kts | 2 +- 4 files changed, 9 insertions(+), 7 deletions(-) diff --git a/android/build.gradle.kts b/android/build.gradle.kts index bebac21c..463377b6 100644 --- a/android/build.gradle.kts +++ b/android/build.gradle.kts @@ -75,8 +75,8 @@ kotlin { } dependencies { - implementation(project(":shared")) - implementation(project(":shared-ui")) + implementation(projects.shared) + implementation(projects.sharedUi) implementation(libs.androidx.core.splashscreen) implementation(libs.koin.core) diff --git a/ios/build.gradle.kts b/ios/build.gradle.kts index 6686af72..abf76243 100644 --- a/ios/build.gradle.kts +++ b/ios/build.gradle.kts @@ -31,8 +31,8 @@ kotlin { implementation(compose.material) implementation(compose.runtime) - api(project(":shared")) - api(project(":shared-ui")) + api(projects.shared) + api(projects.sharedUi) api(libs.kermit) api(libs.kermit.simple) api(libs.hyperdrive.multiplatformx.api) @@ -61,8 +61,8 @@ kotlin { export(libs.kermit) export(libs.kermit.simple) export(libs.hyperdrive.multiplatformx.api) - export(project(":shared")) - export(project(":shared-ui")) + export(projects.shared) + export(projects.sharedUi) } } } diff --git a/settings.gradle.kts b/settings.gradle.kts index a94d8087..55116d7d 100644 --- a/settings.gradle.kts +++ b/settings.gradle.kts @@ -24,3 +24,5 @@ plugins { include(":shared", ":shared-ui", ":android", ":ios") rootProject.name = "Droidcon" + +enableFeaturePreview("TYPESAFE_PROJECT_ACCESSORS") diff --git a/shared-ui/build.gradle.kts b/shared-ui/build.gradle.kts index a5ed24e0..9828407a 100644 --- a/shared-ui/build.gradle.kts +++ b/shared-ui/build.gradle.kts @@ -71,7 +71,7 @@ kotlin { sourceSets { commonMain.dependencies { - implementation(project(":shared")) + implementation(projects.shared) api(libs.kermit) api(libs.kermit.crashlytics)