66 lines
2.2 KiB
Groovy
Executable File
66 lines
2.2 KiB
Groovy
Executable File
plugins {
|
|
id 'com.android.library'
|
|
}
|
|
android {
|
|
namespace 'com.pukka.libcore'
|
|
compileSdkVersion app_android.compileSdkVersion
|
|
buildFeatures {
|
|
buildConfig = true
|
|
}
|
|
defaultConfig {
|
|
minSdkVersion app_android.minSdkVersion
|
|
targetSdkVersion app_android.targetSdkVersion
|
|
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
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
|
|
implementation 'androidx.appcompat:appcompat:1.3.0'
|
|
implementation 'com.google.android.material:material:1.4.0'
|
|
api 'androidx.lifecycle:lifecycle-process:2.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'
|
|
|
|
//阿里 json 解析
|
|
api 'com.alibaba:fastjson:1.2.62'
|
|
api 'com.facebook.fresco:imagepipeline-okhttp3:3.1.3'
|
|
api 'com.facebook.fresco:fresco:3.1.3'
|
|
api 'com.facebook.fresco:animated-gif:3.1.3'
|
|
// okHttp网络请求框架===================================
|
|
api 'com.squareup.okhttp3:logging-interceptor:3.12.0'
|
|
api 'com.squareup.okhttp3:okhttp:3.12.0'
|
|
//retrofit网络请求框架
|
|
api 'com.squareup.retrofit2:retrofit:2.9.0'
|
|
//retrofit添加Json解析返回数据
|
|
api 'com.squareup.retrofit2:converter-scalars:2.9.0'
|
|
api 'com.squareup.retrofit2:converter-gson:2.9.0'
|
|
api 'com.squareup.retrofit2:converter-simplexml:2.9.0'
|
|
//retrofit添加RxJava支持
|
|
api 'com.squareup.retrofit2:adapter-rxjava3:2.9.0'
|
|
api 'com.google.code.gson:gson:2.8.8'
|
|
} |