53 lines
1.5 KiB
Groovy
53 lines
1.5 KiB
Groovy
plugins {
|
|
id 'com.android.library'
|
|
id 'org.jetbrains.kotlin.android'
|
|
id 'kotlin-kapt'
|
|
}
|
|
|
|
android {
|
|
compileSdkVersion 32
|
|
|
|
defaultConfig {
|
|
minSdkVersion 21
|
|
targetSdkVersion 32
|
|
|
|
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_1_8
|
|
targetCompatibility JavaVersion.VERSION_1_8
|
|
}
|
|
kotlinOptions {
|
|
jvmTarget = '1.8'
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
implementation fileTree(dir: 'libs', include: ['*.jar','*.aar'])
|
|
implementation 'androidx.appcompat:appcompat:1.3.0'
|
|
implementation 'com.google.android.material:material:1.4.0'
|
|
testImplementation 'junit:junit:4.13.2'
|
|
androidTestImplementation 'androidx.test.ext:junit:1.1.3'
|
|
androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0'
|
|
|
|
//room
|
|
implementation 'androidx.room:room-runtime:2.2.5'
|
|
kapt "androidx.room:room-compiler:2.2.5"
|
|
|
|
//json解析
|
|
api 'com.squareup.retrofit2:converter-gson:2.7.1'
|
|
|
|
//网络请求框架
|
|
api 'com.squareup.okio:okio:2.3.0'
|
|
api 'com.squareup.okhttp3:okhttp:4.1.0'
|
|
api 'com.squareup.retrofit2:retrofit:2.7.1'
|
|
api 'com.squareup.retrofit2:converter-scalars:2.7.1'
|
|
} |