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"
|
}
|
|
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'
|
|
// 网络请求框架:https://github.com/getActivity/EasyHttp
|
api 'com.github.getActivity:EasyHttp:12.0'
|
|
//Rxjava
|
api "io.reactivex.rxjava2:rxjava:2.2.21"
|
api 'io.reactivex.rxjava2:rxandroid:2.1.1'
|
//Rxjava的的生命周期管理可以使用RxLifecycle或者autodispose(二选一)
|
//autodispose
|
api 'com.uber.autodispose:autodispose:1.4.0'
|
api 'com.uber.autodispose:autodispose-android:1.4.0'
|
api 'com.uber.autodispose:autodispose-android-archcomponents:1.4.0'
|
|
|
|
//Cookie 持久化
|
api 'com.github.franmontiel:PersistentCookieJar:v1.0.1'
|
|
// 标题栏框架:https://github.com/getActivity/TitleBar
|
api 'com.github.getActivity:TitleBar:10.5'
|
|
// 屏幕适配
|
api 'com.github.JessYanCoding:AndroidAutoSize:v1.2.1'
|
|
// 沉浸式状态栏
|
api 'com.geyifeng.immersionbar:immersionbar:3.2.2' // 基础依赖包,必须要依赖
|
//implementation 'com.geyifeng.immersionbar:immersionbar-ktx:3.2.2' // kotlin扩展(可选)
|
|
//图片相关
|
api 'com.github.bumptech.glide:glide:4.15.1'
|
annotationProcessor 'com.github.bumptech.glide:compiler:4.12.0'
|
|
//内存泄露工具
|
debugImplementation 'com.squareup.leakcanary:leakcanary-android:2.9.1'
|
|
//图片选择器
|
// PictureSelector 基础 (必须)
|
api 'io.github.lucksiege:pictureselector:v3.11.1'
|
// 图片压缩 (按需引入)
|
api 'io.github.lucksiege:compress:v3.10.8'
|
// 图片裁剪 (按需引入)
|
api 'io.github.lucksiege:ucrop:v3.10.8'
|
// 自定义相机 (按需引入)
|
api 'io.github.lucksiege:camerax:v3.10.8'
|
|
// 动画解析库:https://github.com/airbnb/lottie-android
|
// 动画资源:https://lottiefiles.com、https://icons8.com/animated-icons
|
api 'com.airbnb.android:lottie:4.1.0'
|
|
// 上下拉刷新加载
|
api 'io.github.scwang90:refresh-layout-kernel:2.0.5' //核心必须依赖
|
api 'io.github.scwang90:refresh-header-classics:2.0.5' //经典刷新头
|
api 'io.github.scwang90:refresh-header-radar:2.0.5' //雷达刷新头
|
api 'io.github.scwang90:refresh-header-falsify:2.0.5' //虚拟刷新头
|
api 'io.github.scwang90:refresh-header-material:2.0.5' //谷歌刷新头
|
api 'io.github.scwang90:refresh-header-two-level:2.0.5' //二级刷新头
|
api 'io.github.scwang90:refresh-footer-ball:2.0.5' //球脉冲加载
|
api 'io.github.scwang90:refresh-footer-classics:2.0.5' //经典加载
|
|
//滚轮选择
|
api 'com.github.gzu-liyujiang.AndroidPicker:WheelPicker:4.1.11'
|
api 'com.github.gzu-liyujiang.AndroidPicker:Common:4.1.11'
|
api 'com.github.gzu-liyujiang.AndroidPicker:WheelView:4.1.11'
|
|
//图片轮播控件
|
api 'io.github.youth5201314:banner:2.2.2'
|
|
//视频播放
|
//完整版引入
|
api 'com.github.CarGuo.GSYVideoPlayer:GSYVideoPlayer:v8.4.0-release-jitpack'
|
|
//自由滚动、缩放布局
|
api "com.otaliastudios:zoomlayout:1.9.0"
|
|
}
|