From f9a534a61850cb651e851a9bba4da2af311b2dee Mon Sep 17 00:00:00 2001 From: Theodoro Loureiro mota Date: Tue, 23 Jan 2024 07:35:58 -0500 Subject: [PATCH] Adding Type-safe project accessors (#194) * replace the windowInsetsPadding for navigationBarsPadding + statusBarsPadding * Enabling TYPESAFE_PROJECT_ACCESSORS * Adding typesafe project accessors in the app module * Adding typesafe project accessors in the core module * Adding typesafe project accessors in the core-metadata module * Adding typesafe project accessors in the data module * Adding typesafe project accessors in the domain module * Adding typesafe project accessors in the presentation-core module * Adding typesafe project accessors in the presentation-widget module * Adding typesafe project accessors in the source-local module * Adding typesafe project accessors in the source-api module * Rolling back * Changing TYPESAFE_PROJECT_ACCESSORS line * Removing extra spaces (cherry picked from commit e17d87f35749715946a96dc0e654792227c6722d) --- app/build.gradle.kts | 4 ++-- core/build.gradle.kts | 2 +- settings.gradle.kts | 2 ++ 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/app/build.gradle.kts b/app/build.gradle.kts index b8e021f001..56fb0e6c9a 100644 --- a/app/build.gradle.kts +++ b/app/build.gradle.kts @@ -87,8 +87,8 @@ android { } dependencies { - implementation(project(":constants")) - implementation(project(":core")) + implementation(projects.constants) + implementation(projects.core) implementation(androidx.core.kts) implementation(kotlinx.bundles.kotlin) diff --git a/core/build.gradle.kts b/core/build.gradle.kts index e016d570ac..d57780945f 100644 --- a/core/build.gradle.kts +++ b/core/build.gradle.kts @@ -10,7 +10,7 @@ android { } dependencies { - implementation(project(":constants")) + implementation(projects.constants) implementation(androidx.preferencektx) implementation(kotlinx.coroutines.core) implementation(kotlinx.serialization.json) diff --git a/settings.gradle.kts b/settings.gradle.kts index 3d89ad25b3..cbeba59e1e 100644 --- a/settings.gradle.kts +++ b/settings.gradle.kts @@ -26,6 +26,8 @@ dependencyResolutionManagement { } } +enableFeaturePreview("TYPESAFE_PROJECT_ACCESSORS") + rootProject.name = "Neko" include(":app") include(":core")