plugins {
|
id 'com.android.library'
|
}
|
|
android {
|
namespace 'com.android.app_base'
|
compileSdk 33
|
|
defaultConfig {
|
minSdk 24
|
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_1_8
|
targetCompatibility JavaVersion.VERSION_1_8
|
}
|
buildFeatures{
|
dataBinding = true
|
}
|
}
|
|
dependencies {
|
|
api fileTree(include: ['*.jar'], dir: 'libs')
|
implementation 'androidx.appcompat:appcompat:1.6.1'
|
implementation 'com.google.android.material:material:1.8.0'
|
testImplementation 'junit:junit:4.13.2'
|
androidTestImplementation 'androidx.test.ext:junit:1.1.5'
|
androidTestImplementation 'androidx.test.espresso:espresso-core:3.5.1'
|
|
//blankj工具类
|
api 'com.blankj:utilcodex:1.31.1'
|
|
//Retrofit+Okhttp+Rxjava(Retrofit2内置了okhttp)
|
api 'com.squareup.retrofit2:retrofit:2.9.0'
|
api 'com.squareup.retrofit2:converter-gson:2.9.0'//gson转换和
|
api 'com.squareup.retrofit2:adapter-rxjava2:2.4.0'//对Rxjava适配
|
api 'com.squareup.retrofit2:retrofit-converters:2.4.0'//数据解析器
|
api 'com.squareup.retrofit2:retrofit-adapters:2.4.0'//相关适配
|
api 'com.squareup.okhttp3:okhttp:4.10.0'
|
api 'com.squareup.okhttp3:logging-interceptor:4.10.0'
|
api "io.reactivex.rxjava2:rxjava:2.2.21"
|
api 'io.reactivex.rxjava2:rxandroid:2.1.1'
|
|
//Cookie 持久化
|
api 'com.github.franmontiel:PersistentCookieJar:v1.0.1'
|
|
// 标题栏框架:https://github.com/getActivity/TitleBar
|
api 'com.github.getActivity:TitleBar:10.0'
|
|
// 基础依赖包,必须要依赖
|
api 'com.geyifeng.immersionbar:immersionbar:3.2.2'
|
// kotlin扩展(可选)
|
// implementation 'com.geyifeng.immersionbar:immersionbar-ktx:3.2.2'
|
//图片相关
|
api 'com.github.bumptech.glide:glide:4.11.0'
|
//内存泄露工具
|
debugImplementation 'com.squareup.leakcanary:leakcanary-android:2.9.1'
|
|
}
|