Android-only project, so Timber (the de-facto Android logging lib) fits better than the KMP-oriented Kermit. - Catalog: kermit -> timber (com.jakewharton.timber:timber 5.0.1). - core:data: Ktor Logging bridged to Timber; safeCall logs via Timber. - app: plant Timber.DebugTree() in debug only (buildConfig enabled for BuildConfig.DEBUG).
23 lines
562 B
Kotlin
23 lines
562 B
Kotlin
plugins {
|
|
alias(libs.plugins.architecture.android.library)
|
|
alias(libs.plugins.architecture.ktor)
|
|
alias(libs.plugins.architecture.koin)
|
|
}
|
|
|
|
android {
|
|
namespace = "com.example.architecture.core.data"
|
|
|
|
buildFeatures {
|
|
buildConfig = true
|
|
}
|
|
defaultConfig {
|
|
// The no-key Rick & Morty API. constructRoute() reads this BuildConfig field.
|
|
buildConfigField("String", "BASE_URL", "\"https://rickandmortyapi.com/api\"")
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
implementation(project(":core:domain"))
|
|
implementation(libs.timber)
|
|
}
|