initial commit
This commit is contained in:
73
data/build.gradle.kts
Normal file
73
data/build.gradle.kts
Normal file
@@ -0,0 +1,73 @@
|
||||
// [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, Gson)
|
||||
implementation(Libs.retrofit)
|
||||
implementation(Libs.converterGson)
|
||||
implementation(Libs.okhttp)
|
||||
implementation(Libs.okhttpLoggingInterceptor)
|
||||
|
||||
// [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]
|
||||
Reference in New Issue
Block a user