78 lines
1.8 KiB
Plaintext
78 lines
1.8 KiB
Plaintext
// [FILE] data/build.gradle.kts
|
|
// [PURPOSE] Build script for the data module.
|
|
|
|
plugins {
|
|
id("com.android.library")
|
|
id("org.jetbrains.kotlin.android")
|
|
id("com.google.dagger.hilt.android")
|
|
id("kotlin-kapt")
|
|
}
|
|
|
|
android {
|
|
namespace = "com.homebox.lens.data"
|
|
compileSdk = Versions.compileSdk
|
|
|
|
defaultConfig {
|
|
minSdk = Versions.minSdk
|
|
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
|
|
}
|
|
|
|
buildTypes {
|
|
release {
|
|
isMinifyEnabled = false
|
|
proguardFiles(
|
|
getDefaultProguardFile("proguard-android-optimize.txt"),
|
|
"proguard-rules.pro"
|
|
)
|
|
}
|
|
}
|
|
compileOptions {
|
|
sourceCompatibility = JavaVersion.VERSION_1_8
|
|
targetCompatibility = JavaVersion.VERSION_1_8
|
|
}
|
|
kotlinOptions {
|
|
jvmTarget = "1.8"
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
// [MODULE_DEPENDENCY] Domain module
|
|
implementation(project(":domain"))
|
|
|
|
// [DEPENDENCY] AndroidX
|
|
implementation(Libs.coreKtx)
|
|
|
|
// [DEPENDENCY] Coroutines
|
|
implementation(Libs.coroutinesCore)
|
|
|
|
// [DEPENDENCY] Networking (Retrofit, Moshi)
|
|
implementation(Libs.retrofit)
|
|
implementation(Libs.converterMoshi)
|
|
implementation(Libs.okhttp)
|
|
implementation(Libs.okhttpLoggingInterceptor)
|
|
implementation(Libs.moshiKotlin)
|
|
kapt(Libs.moshiCodegen)
|
|
|
|
// [DEPENDENCY] Database (Room)
|
|
implementation(Libs.roomRuntime)
|
|
implementation(Libs.roomKtx)
|
|
kapt(Libs.roomCompiler)
|
|
|
|
// [DEPENDENCY] DI (Hilt)
|
|
implementation(Libs.hiltAndroid)
|
|
kapt(Libs.hiltCompiler)
|
|
|
|
// [DEPENDENCY] Testing
|
|
testImplementation(Libs.junit)
|
|
androidTestImplementation(Libs.extJunit)
|
|
androidTestImplementation(Libs.espressoCore)
|
|
|
|
|
|
}
|
|
|
|
kapt {
|
|
correctErrorTypes = true
|
|
}
|
|
|
|
// [END_FILE_data/build.gradle.kts]
|