35 lines
973 B
Groovy
35 lines
973 B
Groovy
plugins {
|
|
alias(libs.plugins.androidLibrary)
|
|
}
|
|
|
|
android {
|
|
namespace 'com.police.network'
|
|
compileSdk 34
|
|
|
|
defaultConfig {
|
|
minSdk 24
|
|
|
|
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
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
implementation libs.appcompat
|
|
implementation libs.material
|
|
implementation 'com.squareup.okhttp3:okhttp:4.8.1' // OkHttp库
|
|
implementation 'com.squareup.retrofit2:converter-gson:2.9.0' // 如果你使用 Gson 进行 JSON 转换
|
|
implementation 'com.squareup.okhttp3:logging-interceptor:4.7.2'
|
|
implementation project(':base')
|
|
} |