mirror of
https://github.com/mihonapp/mihon.git
synced 2024-11-14 20:39:59 -05:00
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
This commit is contained in:
parent
de75561402
commit
e17d87f357
10 changed files with 30 additions and 28 deletions
|
@ -139,15 +139,15 @@ android {
|
|||
}
|
||||
|
||||
dependencies {
|
||||
implementation(project(":i18n"))
|
||||
implementation(project(":core"))
|
||||
implementation(project(":core-metadata"))
|
||||
implementation(project(":source-api"))
|
||||
implementation(project(":source-local"))
|
||||
implementation(project(":data"))
|
||||
implementation(project(":domain"))
|
||||
implementation(project(":presentation-core"))
|
||||
implementation(project(":presentation-widget"))
|
||||
implementation(projects.i18n)
|
||||
implementation(projects.core)
|
||||
implementation(projects.coreMetadata)
|
||||
implementation(projects.sourceApi)
|
||||
implementation(projects.sourceLocal)
|
||||
implementation(projects.data)
|
||||
implementation(projects.domain)
|
||||
implementation(projects.presentationCore)
|
||||
implementation(projects.presentationWidget)
|
||||
|
||||
// Compose
|
||||
implementation(platform(compose.bom))
|
||||
|
|
|
@ -14,7 +14,7 @@ android {
|
|||
}
|
||||
|
||||
dependencies {
|
||||
implementation(project(":source-api"))
|
||||
implementation(projects.sourceApi)
|
||||
|
||||
implementation(kotlinx.bundles.serialization)
|
||||
}
|
||||
|
|
|
@ -17,7 +17,7 @@ android {
|
|||
}
|
||||
|
||||
dependencies {
|
||||
implementation(project(":i18n"))
|
||||
implementation(projects.i18n)
|
||||
|
||||
api(libs.logcat)
|
||||
|
||||
|
|
|
@ -24,9 +24,9 @@ android {
|
|||
}
|
||||
|
||||
dependencies {
|
||||
implementation(project(":source-api"))
|
||||
implementation(project(":domain"))
|
||||
implementation(project(":core"))
|
||||
implementation(projects.sourceApi)
|
||||
implementation(projects.domain)
|
||||
implementation(projects.core)
|
||||
|
||||
api(libs.bundles.sqldelight)
|
||||
}
|
||||
|
|
|
@ -14,8 +14,8 @@ android {
|
|||
}
|
||||
|
||||
dependencies {
|
||||
implementation(project(":source-api"))
|
||||
implementation(project(":core"))
|
||||
implementation(projects.sourceApi)
|
||||
implementation(projects.core)
|
||||
|
||||
implementation(platform(kotlinx.coroutines.bom))
|
||||
implementation(kotlinx.bundles.coroutines)
|
||||
|
|
|
@ -21,8 +21,8 @@ android {
|
|||
}
|
||||
|
||||
dependencies {
|
||||
api(project(":core"))
|
||||
api(project(":i18n"))
|
||||
api(projects.core)
|
||||
api(projects.i18n)
|
||||
|
||||
// Compose
|
||||
implementation(platform(compose.bom))
|
||||
|
|
|
@ -21,10 +21,10 @@ android {
|
|||
}
|
||||
|
||||
dependencies {
|
||||
implementation(project(":core"))
|
||||
implementation(project(":domain"))
|
||||
implementation(project(":presentation-core"))
|
||||
api(project(":i18n"))
|
||||
implementation(projects.core)
|
||||
implementation(projects.domain)
|
||||
implementation(projects.presentationCore)
|
||||
api(projects.i18n)
|
||||
|
||||
implementation(compose.glance)
|
||||
lintChecks(compose.lintchecks)
|
||||
|
|
|
@ -35,6 +35,8 @@ dependencyResolutionManagement {
|
|||
}
|
||||
}
|
||||
|
||||
enableFeaturePreview("TYPESAFE_PROJECT_ACCESSORS")
|
||||
|
||||
rootProject.name = "Mihon"
|
||||
include(":app")
|
||||
include(":i18n")
|
||||
|
|
|
@ -17,7 +17,7 @@ kotlin {
|
|||
}
|
||||
val androidMain by getting {
|
||||
dependencies {
|
||||
implementation(project(":core"))
|
||||
implementation(projects.core)
|
||||
api(libs.preferencektx)
|
||||
|
||||
// Workaround for https://youtrack.jetbrains.com/issue/KT-57605
|
||||
|
|
|
@ -8,8 +8,8 @@ kotlin {
|
|||
sourceSets {
|
||||
val commonMain by getting {
|
||||
dependencies {
|
||||
implementation(project(":source-api"))
|
||||
api(project(":i18n"))
|
||||
implementation(projects.sourceApi)
|
||||
api(projects.i18n)
|
||||
|
||||
implementation(libs.unifile)
|
||||
implementation(libs.junrar)
|
||||
|
@ -17,11 +17,11 @@ kotlin {
|
|||
}
|
||||
val androidMain by getting {
|
||||
dependencies {
|
||||
implementation(project(":core"))
|
||||
implementation(project(":core-metadata"))
|
||||
implementation(projects.core)
|
||||
implementation(projects.coreMetadata)
|
||||
|
||||
// Move ChapterRecognition to separate module?
|
||||
implementation(project(":domain"))
|
||||
implementation(projects.domain)
|
||||
|
||||
implementation(kotlinx.bundles.serialization)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue