2020-05-27 13:32:22 +08:00
|
|
|
|
apply plugin: 'com.android.library'
|
|
|
|
|
apply plugin: 'com.jakewharton.butterknife'
|
|
|
|
|
android {
|
|
|
|
|
compileSdkVersion rootProject.ext.gCompileSdkVersion
|
|
|
|
|
defaultConfig {
|
|
|
|
|
minSdkVersion rootProject.ext.gMinSdkVersion
|
|
|
|
|
targetSdkVersion rootProject.ext.gTargetSdkVersion
|
|
|
|
|
versionCode rootProject.ext.gVersionCode
|
|
|
|
|
versionName rootProject.ext.gVersionName
|
|
|
|
|
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
|
|
|
|
|
|
|
|
|
javaCompileOptions {
|
|
|
|
|
annotationProcessorOptions {
|
|
|
|
|
arguments = [AROUTER_MODULE_NAME: project.getName()]
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
buildTypes {
|
|
|
|
|
release {
|
|
|
|
|
minifyEnabled false
|
|
|
|
|
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
compileOptions {
|
|
|
|
|
sourceCompatibility JavaVersion.VERSION_1_8
|
|
|
|
|
targetCompatibility JavaVersion.VERSION_1_8
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
dependencies {
|
|
|
|
|
implementation fileTree(include: ['*.jar'], dir: 'libs')
|
|
|
|
|
//noinspection GradleCompatible
|
|
|
|
|
implementation 'androidx.appcompat:appcompat:1.1.0'
|
|
|
|
|
implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
|
|
|
|
|
testImplementation 'junit:junit:4.12'
|
|
|
|
|
androidTestImplementation 'androidx.test.ext:junit:1.1.1'
|
|
|
|
|
androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'
|
|
|
|
|
implementation 'com.google.android.material:material:1.1.0'
|
|
|
|
|
|
|
|
|
|
implementation "com.youth.banner:banner:${rootProject.ext.bannerVersion}"
|
|
|
|
|
//SmartRefreshLayout
|
2022-02-15 16:20:31 +08:00
|
|
|
|
// implementation "com.scwang.smartrefresh:SmartRefreshLayout:${rootProject.ext.gSmartRefreshLayoutVersion}"
|
|
|
|
|
//SmartRefreshLayout
|
|
|
|
|
api "com.scwang.smart:refresh-layout-kernel:$rootProject.ext.gSmartRefreshLayoutVersion"
|
|
|
|
|
api "com.scwang.smart:refresh-footer-classics:$rootProject.ext.gSmartRefreshLayoutVersion"
|
2020-05-27 13:32:22 +08:00
|
|
|
|
//okhttp3
|
|
|
|
|
implementation "com.squareup.okhttp3:okhttp:$rootProject.ext.gOkHttp3Version"
|
|
|
|
|
//Gson
|
|
|
|
|
implementation "com.google.code.gson:gson:$rootProject.ext.gGsonVersion"
|
|
|
|
|
//butterknife
|
|
|
|
|
annotationProcessor "com.jakewharton:butterknife-compiler:$rootProject.ext.gButterKnifeVersion"
|
|
|
|
|
//Arouter
|
|
|
|
|
annotationProcessor "com.alibaba:arouter-compiler:$rootProject.ext.gRouterCompileVersion"
|
|
|
|
|
api "com.alibaba:arouter-api:$rootProject.ext.gRouterApiVersion"
|
|
|
|
|
//Retrofit2
|
|
|
|
|
implementation "com.squareup.retrofit2:retrofit:$rootProject.ext.gRetrofitVersion"
|
|
|
|
|
implementation "com.squareup.retrofit2:converter-gson:$rootProject.ext.gRetrofitVersion"
|
|
|
|
|
implementation "com.squareup.retrofit2:adapter-rxjava2:$rootProject.ext.gRetrofitVersion"
|
|
|
|
|
//Rxjava
|
|
|
|
|
implementation "io.reactivex.rxjava2:rxjava:$rootProject.ext.gRxJavaVersion"
|
|
|
|
|
implementation "io.reactivex.rxjava2:rxandroid:$rootProject.ext.gRxAndroid"
|
|
|
|
|
//Glide
|
2020-06-08 10:09:08 +08:00
|
|
|
|
implementation "com.github.bumptech.glide:glide:${rootProject.ext.supportGlide}"
|
|
|
|
|
annotationProcessor "com.github.bumptech.glide:compiler:${rootProject.ext.supportGlide}"
|
2020-05-27 13:32:22 +08:00
|
|
|
|
//butterknife
|
|
|
|
|
api "com.jakewharton:butterknife:$rootProject.ext.gButterKnifeVersion"
|
2022-02-09 11:29:14 +08:00
|
|
|
|
////选择器
|
2020-06-08 10:09:08 +08:00
|
|
|
|
implementation "com.contrarywind:Android-PickerView:${rootProject.ext.pickerViewVersion}"
|
|
|
|
|
implementation "com.contrarywind:wheelview:${rootProject.ext.wheelVersion}"
|
2020-05-27 13:32:22 +08:00
|
|
|
|
//recyclerview
|
|
|
|
|
implementation 'androidx.recyclerview:recyclerview:1.1.0'
|
|
|
|
|
//选择器
|
|
|
|
|
implementation "com.nightonke:boommenu:$rootProject.ext.gBoomMenu"
|
2020-06-08 10:09:08 +08:00
|
|
|
|
// 基础依赖包,必须要依赖
|
|
|
|
|
implementation 'com.gyf.immersionbar:immersionbar:3.0.0'
|
2020-07-20 15:51:07 +08:00
|
|
|
|
// fragment快速实现(可选)
|
2020-06-08 10:09:08 +08:00
|
|
|
|
implementation 'com.gyf.immersionbar:immersionbar-components:3.0.0'
|
2022-02-09 11:29:14 +08:00
|
|
|
|
api 'jp.wasabeef:glide-transformations:4.3.0'
|
|
|
|
|
// If you want to use the GPU Filters
|
|
|
|
|
// implementation 'jp.co.cyberagent.android:gpuimage:2.1.0'
|
2020-05-27 13:32:22 +08:00
|
|
|
|
|
|
|
|
|
}
|