65 lines
2.2 KiB
Groovy
65 lines
2.2 KiB
Groovy
apply plugin: 'com.android.library'
|
|
apply plugin: 'kotlin-android'
|
|
|
|
android {
|
|
namespace 'com.migu.libdata'
|
|
compileSdkVersion app_android.compileSdkVersion
|
|
buildFeatures {
|
|
buildConfig = true
|
|
}
|
|
defaultConfig {
|
|
minSdkVersion app_android.minSdkVersion
|
|
targetSdkVersion app_android.targetSdkVersion
|
|
versionCode app_android.versionCode
|
|
versionName app_android.versionName
|
|
multiDexEnabled app_android.multiDexEnabled
|
|
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
|
consumerProguardFiles "consumer-rules.pro"
|
|
}
|
|
|
|
buildTypes {
|
|
release {
|
|
minifyEnabled false
|
|
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
|
|
}
|
|
preview {
|
|
minifyEnabled false
|
|
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
|
|
}
|
|
debug {
|
|
minifyEnabled false
|
|
zipAlignEnabled false
|
|
shrinkResources false
|
|
}
|
|
}
|
|
compileOptions {
|
|
sourceCompatibility JavaVersion.VERSION_17
|
|
targetCompatibility JavaVersion.VERSION_17
|
|
}
|
|
kotlinOptions {
|
|
jvmTarget = '17'
|
|
}
|
|
resourcePrefix "libdata_"
|
|
}
|
|
|
|
dependencies {
|
|
app_base_dependencies.each {k, v ->implementation v}
|
|
app_base_android_test_dependencies.each {k, v ->androidTestImplementation v}
|
|
app_base_test_dependencies.each {k, v ->testImplementation v}
|
|
// okHttp网络请求框架===================================
|
|
implementation 'com.squareup.okhttp3:logging-interceptor:3.12.0'
|
|
implementation 'com.squareup.okhttp3:okhttp:3.12.0'
|
|
//retrofit网络请求框架
|
|
implementation 'com.squareup.retrofit2:retrofit:2.9.0'
|
|
//retrofit添加Json解析返回数据
|
|
implementation 'com.squareup.retrofit2:converter-scalars:2.9.0'
|
|
implementation 'com.squareup.retrofit2:converter-gson:2.9.0'
|
|
//retrofit添加RxJava支持
|
|
implementation 'com.squareup.retrofit2:adapter-rxjava3:2.9.0'
|
|
|
|
api "io.reactivex.rxjava3:rxjava:3.0.13"
|
|
api 'io.reactivex.rxjava3:rxandroid:3.0.0'
|
|
implementation 'androidx.leanback:leanback:1.0.0'
|
|
|
|
implementation project(':libcore')
|
|
} |