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)
This commit is contained in:
parent
b210491db5
commit
78c7facf6c
@ -140,18 +140,18 @@ android {
|
|||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
implementation(project(":i18n"))
|
implementation(projects.i18n)
|
||||||
// SY -->
|
// SY -->
|
||||||
implementation(project(":i18n-sy"))
|
implementation(projects.i18nSy)
|
||||||
// SY <--
|
// SY <--
|
||||||
implementation(project(":core"))
|
implementation(projects.core)
|
||||||
implementation(project(":core-metadata"))
|
implementation(projects.coreMetadata)
|
||||||
implementation(project(":source-api"))
|
implementation(projects.sourceApi)
|
||||||
implementation(project(":source-local"))
|
implementation(projects.sourceLocal)
|
||||||
implementation(project(":data"))
|
implementation(projects.data)
|
||||||
implementation(project(":domain"))
|
implementation(projects.domain)
|
||||||
implementation(project(":presentation-core"))
|
implementation(projects.presentationCore)
|
||||||
implementation(project(":presentation-widget"))
|
implementation(projects.presentationWidget)
|
||||||
|
|
||||||
// Compose
|
// Compose
|
||||||
implementation(platform(compose.bom))
|
implementation(platform(compose.bom))
|
||||||
|
@ -14,7 +14,7 @@ android {
|
|||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
implementation(project(":source-api"))
|
implementation(projects.sourceApi)
|
||||||
|
|
||||||
implementation(kotlinx.bundles.serialization)
|
implementation(kotlinx.bundles.serialization)
|
||||||
}
|
}
|
||||||
|
@ -18,9 +18,9 @@ android {
|
|||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
implementation(project(":i18n"))
|
implementation(projects.i18n)
|
||||||
// SY -->
|
// SY -->
|
||||||
implementation(project(":i18n-sy"))
|
implementation(projects.i18nSy)
|
||||||
// SY <--
|
// SY <--
|
||||||
|
|
||||||
api(libs.logcat)
|
api(libs.logcat)
|
||||||
|
@ -24,9 +24,9 @@ android {
|
|||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
implementation(project(":source-api"))
|
implementation(projects.sourceApi)
|
||||||
implementation(project(":domain"))
|
implementation(projects.domain)
|
||||||
implementation(project(":core"))
|
implementation(projects.core)
|
||||||
|
|
||||||
api(libs.bundles.sqldelight)
|
api(libs.bundles.sqldelight)
|
||||||
}
|
}
|
||||||
|
@ -14,8 +14,8 @@ android {
|
|||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
implementation(project(":source-api"))
|
implementation(projects.sourceApi)
|
||||||
implementation(project(":core"))
|
implementation(projects.core)
|
||||||
|
|
||||||
implementation(platform(kotlinx.coroutines.bom))
|
implementation(platform(kotlinx.coroutines.bom))
|
||||||
implementation(kotlinx.bundles.coroutines)
|
implementation(kotlinx.bundles.coroutines)
|
||||||
|
@ -21,10 +21,10 @@ android {
|
|||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
api(project(":core"))
|
api(projects.core)
|
||||||
api(project(":i18n"))
|
api(projects.i18n)
|
||||||
// SY -->
|
// SY -->
|
||||||
api(project(":i18n-sy"))
|
api(projects.i18nSy)
|
||||||
// SY <--
|
// SY <--
|
||||||
|
|
||||||
// Compose
|
// Compose
|
||||||
|
@ -21,10 +21,10 @@ android {
|
|||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
implementation(project(":core"))
|
implementation(projects.core)
|
||||||
implementation(project(":domain"))
|
implementation(projects.domain)
|
||||||
implementation(project(":presentation-core"))
|
implementation(projects.presentationCore)
|
||||||
api(project(":i18n"))
|
api(projects.i18n)
|
||||||
|
|
||||||
implementation(compose.glance)
|
implementation(compose.glance)
|
||||||
lintChecks(compose.lintchecks)
|
lintChecks(compose.lintchecks)
|
||||||
|
@ -38,6 +38,8 @@ dependencyResolutionManagement {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
enableFeaturePreview("TYPESAFE_PROJECT_ACCESSORS")
|
||||||
|
|
||||||
rootProject.name = "TachiyomiSY"
|
rootProject.name = "TachiyomiSY"
|
||||||
include(":app")
|
include(":app")
|
||||||
include(":i18n")
|
include(":i18n")
|
||||||
|
@ -15,15 +15,15 @@ kotlin {
|
|||||||
api(libs.rxjava)
|
api(libs.rxjava)
|
||||||
api(libs.jsoup)
|
api(libs.jsoup)
|
||||||
// SY -->
|
// SY -->
|
||||||
api(project(":i18n"))
|
api(projects.i18n)
|
||||||
api(project(":i18n-sy"))
|
api(projects.i18nSy)
|
||||||
api(kotlinx.reflect)
|
api(kotlinx.reflect)
|
||||||
// SY <--
|
// SY <--
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
val androidMain by getting {
|
val androidMain by getting {
|
||||||
dependencies {
|
dependencies {
|
||||||
implementation(project(":core"))
|
implementation(projects.core)
|
||||||
api(libs.preferencektx)
|
api(libs.preferencektx)
|
||||||
|
|
||||||
// Workaround for https://youtrack.jetbrains.com/issue/KT-57605
|
// Workaround for https://youtrack.jetbrains.com/issue/KT-57605
|
||||||
|
@ -8,10 +8,10 @@ kotlin {
|
|||||||
sourceSets {
|
sourceSets {
|
||||||
val commonMain by getting {
|
val commonMain by getting {
|
||||||
dependencies {
|
dependencies {
|
||||||
implementation(project(":source-api"))
|
implementation(projects.sourceApi)
|
||||||
api(project(":i18n"))
|
api(projects.i18n)
|
||||||
// SY -->
|
// SY -->
|
||||||
api(project(":i18n-sy"))
|
api(projects.i18nSy)
|
||||||
// SY <--
|
// SY <--
|
||||||
|
|
||||||
implementation(libs.unifile)
|
implementation(libs.unifile)
|
||||||
@ -23,11 +23,11 @@ kotlin {
|
|||||||
}
|
}
|
||||||
val androidMain by getting {
|
val androidMain by getting {
|
||||||
dependencies {
|
dependencies {
|
||||||
implementation(project(":core"))
|
implementation(projects.core)
|
||||||
implementation(project(":core-metadata"))
|
implementation(projects.coreMetadata)
|
||||||
|
|
||||||
// Move ChapterRecognition to separate module?
|
// Move ChapterRecognition to separate module?
|
||||||
implementation(project(":domain"))
|
implementation(projects.domain)
|
||||||
|
|
||||||
implementation(kotlinx.bundles.serialization)
|
implementation(kotlinx.bundles.serialization)
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user