164 lines
4.3 KiB
Groovy
164 lines
4.3 KiB
Groovy
plugins {
|
|
id 'com.android.library'
|
|
id 'kotlin-android'
|
|
id 'kotlin-android-extensions'
|
|
id 'kotlin-kapt'
|
|
}
|
|
|
|
android {
|
|
|
|
compileSdkVersion rootProject.ext.compileSdkVersion
|
|
|
|
defaultConfig {
|
|
minSdkVersion rootProject.ext.minSdkVersion
|
|
targetSdkVersion rootProject.ext.targetSdkVersion
|
|
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
|
flavorDimensions "versionCode"
|
|
|
|
multiDexEnabled true
|
|
|
|
}
|
|
|
|
kapt {
|
|
arguments {
|
|
arg("AROUTER_MODULE_NAME", project.getName())
|
|
}
|
|
}
|
|
|
|
buildTypes {
|
|
release {
|
|
minifyEnabled false
|
|
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
|
|
buildConfigField "int", "runTimeMode", runTimeMode
|
|
}
|
|
debug {
|
|
minifyEnabled false
|
|
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
|
|
buildConfigField "int", "runTimeMode", runTimeMode
|
|
}
|
|
}
|
|
|
|
buildFeatures {
|
|
dataBinding = true
|
|
}
|
|
|
|
compileOptions {
|
|
sourceCompatibility JavaVersion.VERSION_11
|
|
targetCompatibility JavaVersion.VERSION_11
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
api fileTree(dir: 'libs', include: ['*.jar'])
|
|
api 'androidx.appcompat:appcompat:1.2.0'
|
|
api 'androidx.constraintlayout:constraintlayout:2.0.4'
|
|
api 'com.google.android.material:material:1.2.1'
|
|
api 'androidx.recyclerview:recyclerview:1.1.0'
|
|
|
|
testImplementation 'junit:junit:4.13.1'
|
|
androidTestImplementation 'androidx.test.ext:junit:1.1.2'
|
|
androidTestImplementation 'androidx.test.espresso:espresso-core:3.3.0'
|
|
|
|
//kotlin
|
|
api "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
|
|
api 'androidx.core:core-ktx:1.3.2'
|
|
|
|
// ViewModel
|
|
implementation 'androidx.lifecycle:lifecycle-viewmodel-ktx:2.4.0'
|
|
// api "androidx.lifecycle:lifecycle-viewmodel-ktx:$lifecycle_version"
|
|
|
|
// LiveData
|
|
api "androidx.lifecycle:lifecycle-livedata-ktx:$lifecycle_version"
|
|
|
|
// api "androidx.lifecycle:lifecycle-viewmodel-ktx:$lifecycle_version"
|
|
api "androidx.lifecycle:lifecycle-extensions:$lifecycle_version"
|
|
|
|
|
|
//协程
|
|
api 'org.jetbrains.kotlinx:kotlinx-coroutines-android:1.3.7'
|
|
|
|
//litePal
|
|
api 'org.litepal.guolindev:core:3.2.3'
|
|
|
|
//WorkManager
|
|
api "androidx.work:work-runtime-ktx:2.4.0"
|
|
|
|
//网络请求
|
|
api 'com.squareup.retrofit2:retrofit:2.9.0'
|
|
api 'com.squareup.retrofit2:converter-gson:2.9.0'
|
|
api 'com.squareup.okhttp3:logging-interceptor:4.7.2'
|
|
|
|
//图片加载
|
|
api 'com.github.bumptech.glide:glide:4.11.0'
|
|
api 'jp.wasabeef:glide-transformations:4.3.0'
|
|
kapt 'com.github.bumptech.glide:compiler:4.11.0'
|
|
|
|
//日志打印
|
|
api 'com.orhanobut:logger:2.2.0'
|
|
|
|
//flow标签布局
|
|
api 'com.beloo.widget:ChipsLayoutManager:0.3.7@aar'
|
|
|
|
//adapter
|
|
api 'com.github.CymChad:BaseRecyclerViewAdapterHelper:3.0.4'
|
|
|
|
//下拉刷新
|
|
api 'com.scwang.smart:refresh-layout-kernel:2.0.1'
|
|
|
|
//lottie动画
|
|
api 'com.airbnb.android:lottie:3.4.4'
|
|
|
|
//ShadowLayout
|
|
api 'com.github.lihangleo2:ShadowLayout:3.1.0'
|
|
|
|
//roundedImageView
|
|
api 'com.makeramen:roundedimageview:2.3.0'
|
|
|
|
//PhotoView
|
|
api 'com.github.chrisbanes:PhotoView:2.3.0'
|
|
|
|
//长图、大图加载
|
|
api 'com.davemorrissey.labs:subsampling-scale-image-view-androidx:3.10.0'
|
|
|
|
//eventBus
|
|
api 'org.greenrobot:eventbus:3.2.0'
|
|
|
|
//网页加载进度条
|
|
api 'com.github.youlookwhat:WebProgress:1.1.0'
|
|
|
|
//时间 日期 选择器
|
|
api 'com.contrarywind:Android-PickerView:4.1.8'
|
|
|
|
//权限
|
|
api 'com.hjq:xxpermissions:9.6'
|
|
|
|
//toast
|
|
api 'com.hjq:toast:8.8'
|
|
|
|
//轮播
|
|
api 'com.github.zhpanvip:BannerViewPager:3.5.0'
|
|
|
|
//应用更新
|
|
api 'com.azhon:appupdateX:3.0.3'
|
|
|
|
//腾讯bugly
|
|
api 'com.tencent.bugly:crashreport:latest.release'
|
|
api 'com.tencent.bugly:nativecrashreport:latest.release'
|
|
|
|
//AppLifecycle
|
|
api 'com.github.hufeiyang.Android-AppLifecycleMgr:applifecycle-api:1.0.4'
|
|
|
|
//player
|
|
api 'cn.jiajunhui:exoplayer:342_2132_019'
|
|
|
|
//路由
|
|
api 'com.alibaba:arouter-api:1.5.2'
|
|
kapt 'com.alibaba:arouter-compiler:1.5.2'
|
|
|
|
//图片选择库
|
|
api 'com.ypx.yimagepicker:androidx:3.1.4'
|
|
|
|
//图片压缩
|
|
api 'com.github.forJrking:KLuban:1.0.7'
|
|
}
|