Files
AndroidJetpack/PokeCardCompose/data/build.gradle
T
coco 723ce1af5c a
2026-07-03 15:12:48 +08:00

83 lines
2.1 KiB
Groovy

plugins {
id 'com.android.library'
id 'kotlin-android'
id 'kotlinx-serialization'
id 'com.google.devtools.ksp'
id 'org.jlleitschuh.gradle.ktlint'
id 'com.github.ben-manes.versions'
id 'com.adarshr.test-logger'
}
android {
compileSdkVersion androidCompileSdkVersion
namespace 'com.mikhaellopez.data'
defaultConfig {
minSdk androidMinSdkVersion
targetSdk androidTargetSdkVersion
testInstrumentationRunner packageAndroidJUnitRunner
consumerProguardFiles kotlinRules, modelRules, logRules, okhttp3Rules, ktorLoggingRules
}
buildTypes {
release {
minifyEnabled true
}
}
libraryVariants.all { variant ->
// KSP - To use generated sources
variant.addJavaSourceFoldersToModel(file("build/generated/ksp/${variant.name}/kotlin"))
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
kotlinOptions {
jvmTarget = '1.8'
}
}
ktlint {
verbose = true
android = true
}
dependencies {
// MODULE
implementation project(':domain')
// KOTLIN
implementation kotlinStdlib
// SUPPORT
api androidXCore
// COMPONENTS
implementation room
ksp roomCompiler
// KOIN
implementation koinCore
implementation koinAndroid
implementation koinAnnotations
ksp(koinCompiler)
// WEBSERVICES
implementation ktorClientCore
implementation ktorClientOkHttp
implementation ktorSerializationJson
implementation ktorContentNegotiation
// DEBUG TOOLS
implementation ktorClientLogging
debugApi chuckerDebug
releaseApi chuckerRelease
// TEST
testImplementation junit
testImplementation mockitoInline
testImplementation mockitoKotlin
testImplementation kotlinxCoroutinesTest
// ANDROID TEST
androidTestImplementation androidXTestRunner
androidTestImplementation androidXTestJunit
androidTestImplementation kotlinxCoroutinesTest
// DEPENDENCY CHECK STRATEGY
dependencyUpdates.resolutionStrategy dependencyUpdatesStrategy
}