Files
AndroidJetpack/DMS-Android/di/build.gradle.kts
T
coco 723ce1af5c a
2026-07-03 15:12:48 +08:00

59 lines
1.7 KiB
Kotlin

plugins {
id(BuildPlugins.ANDROID_LIBRARY_PLUGIN)
id(BuildPlugins.KOTLIN_ANDROID_PLUGIN)
id(BuildPlugins.KOTLIN_KAPT)
id(BuildPlugins.DAGGER_HILT_PLUGIN)
}
android {
namespace = "com.example.di"
compileSdk = ProjectProperties.COMPILE_SDK_VERSION
defaultConfig {
minSdk = ProjectProperties.MIN_SDK_VERSION
targetSdk = ProjectProperties.TARGET_SDK_VERSION
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
consumerProguardFiles("consumer-rules.pro")
}
buildTypes {
release {
isMinifyEnabled = false
proguardFiles(
getDefaultProguardFile("proguard-android-optimize.txt"),
"proguard-rules.pro"
)
}
}
compileOptions {
sourceCompatibility = ProjectProperties.JAVA_VERSION
targetCompatibility = ProjectProperties.JAVA_VERSION
}
kotlinOptions {
jvmTarget = "1.8"
}
}
dependencies {
implementation(project(":data"))
implementation(project(":domain"))
implementation(project(":local_database"))
implementation(project(":local_domain"))
implementation(Dependency.Retrofit.RETROFIT)
implementation(Dependency.Retrofit.RETROFIT_CONVERTER_GSON)
implementation(Dependency.Retrofit.OKHTTP_LOGGING)
implementation(Dependency.Hilt.HILT_ANDROID)
kapt(Dependency.Hilt.HILT_ANDROID_COMPILER)
implementation(Dependency.Moshi.MOSHI)
kapt(Dependency.Moshi.MOSHI_COMPILER)
implementation(Dependency.Retrofit.OKHTTP_LOGGING)
implementation(Dependency.Retrofit.LOGINTERCEPTER)
implementation(Dependency.Room.ROOM_KTX)
kapt(Dependency.Room.ROOM_COMPILER)
}