Skip to content

Commit

Permalink
Adding Type-safe project accessors (#194)
Browse files Browse the repository at this point in the history
* 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)
  • Loading branch information
theolm authored and nonproto committed Jan 24, 2024
1 parent bb92dd0 commit f9a534a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
4 changes: 2 additions & 2 deletions app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion core/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ android {
}

dependencies {
implementation(project(":constants"))
implementation(projects.constants)
implementation(androidx.preferencektx)
implementation(kotlinx.coroutines.core)
implementation(kotlinx.serialization.json)
Expand Down
2 changes: 2 additions & 0 deletions settings.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ dependencyResolutionManagement {
}
}

enableFeaturePreview("TYPESAFE_PROJECT_ACCESSORS")

rootProject.name = "Neko"
include(":app")
include(":core")
Expand Down

0 comments on commit f9a534a

Please sign in to comment.