From c7a492c7c5f546f4edb1564a3eb904cc5b972335 Mon Sep 17 00:00:00 2001 From: Sergio Belda Galbis Date: Thu, 28 Mar 2024 20:15:46 +0100 Subject: [PATCH] Enable Gradle feature TYPESAFE_PROJECT_ACCESSORS --- 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 1d7011af..d3c7bce7 100644 --- a/android/build.gradle.kts +++ b/android/build.gradle.kts @@ -76,8 +76,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 f6cb9b78..797b5a08 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 90d3abf2..d7907c79 100644 --- a/settings.gradle.kts +++ b/settings.gradle.kts @@ -20,3 +20,5 @@ dependencyResolutionManagement { 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 d203ad90..3b229897 100644 --- a/shared-ui/build.gradle.kts +++ b/shared-ui/build.gradle.kts @@ -70,7 +70,7 @@ kotlin { sourceSets { commonMain.dependencies { - implementation(project(":shared")) + implementation(projects.shared) api(libs.kermit) api(libs.kermit.crashlytics)