Files
coco 723ce1af5c a
2026-07-03 15:12:48 +08:00

63 lines
2.0 KiB
Groovy

plugins {
id 'com.android.library'
id 'org.jetbrains.kotlin.android'
id 'kotlin-kapt'
id 'com.google.dagger.hilt.android'
id 'kotlinx-serialization'
}
android {
namespace 'com.el3asas.data'
compileSdkVersion 33
defaultConfig {
minSdk 21
targetSdk 33
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
consumerProguardFiles "consumer-rules.pro"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_11
targetCompatibility JavaVersion.VERSION_11
}
kotlinOptions {
jvmTarget = '11'
}
}
dependencies {
implementation 'androidx.core:core-ktx:1.9.0'
implementation 'androidx.appcompat:appcompat:1.5.1'
implementation 'com.google.android.material:material:1.7.0'
testImplementation 'junit:junit:4.13.2'
androidTestImplementation 'androidx.test.ext:junit:1.1.3'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0'
//hilt
implementation "com.google.dagger:hilt-android:2.44"
kapt "com.google.dagger:hilt-compiler:2.44"
//ktor
// implementation 'io.ktor:ktor-client-android:1.5.0'
// implementation 'io.ktor:ktor-client-serialization:1.5.0'
implementation 'org.jetbrains.kotlinx:kotlinx-serialization-json:1.3.3'
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.6.4")
implementation("io.ktor:ktor-client-core:2.1.3")
implementation("io.ktor:ktor-client-android:2.1.3")
implementation("io.ktor:ktor-client-okhttp:2.1.3")
implementation("io.ktor:ktor-client-plugins:2.1.3")
implementation("io.ktor:ktor-client-logging:2.1.3")
implementation("io.ktor:ktor-server-default-headers:2.1.3")
implementation("io.ktor:ktor-client-content-negotiation:2.1.3")
}
kapt {
correctErrorTypes true
}