26 lines
784 B
Kotlin
26 lines
784 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)
|
|
// `api`: the public inline HttpClient.get/post/delete helpers are inlined into consumer modules,
|
|
// so those modules need the Ktor request/response types on their compile classpath.
|
|
api(libs.ktor.client.core)
|
|
}
|