citygovernance/baselib/build.gradle
2021-10-19 18:04:07 +08:00

99 lines
4.0 KiB
Groovy
Executable File
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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(),
"room.schemaLocation": "$projectDir/schemas".toString()]
}
}
}
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.3.1'
implementation 'androidx.constraintlayout:constraintlayout:2.0.4'
testImplementation 'junit:junit:4.13.2'
androidTestImplementation 'androidx.test.ext:junit:1.1.2'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.3.0'
implementation 'com.google.android.material:material:1.2.1'
api "com.youth.banner:banner:${rootProject.ext.bannerVersion}"
//SmartRefreshLayout
api "com.scwang.smart:refresh-layout-kernel:$rootProject.ext.gSmartRefreshLayoutVersion"
api "com.scwang.smart:refresh-footer-classics:$rootProject.ext.gSmartRefreshLayoutVersion"
//经典加载
//okhttp3
api "com.squareup.okhttp3:okhttp:$rootProject.ext.gOkHttp3Version"
//Gson
api "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
api "com.squareup.retrofit2:retrofit:$rootProject.ext.gRetrofitVersion"
api "com.squareup.retrofit2:converter-gson:$rootProject.ext.gRxReAdapter"
api "com.squareup.retrofit2:adapter-rxjava3:$rootProject.ext.gRxReAdapter"
//Rxjava
api "io.reactivex.rxjava3:rxjava:$rootProject.ext.gRxJavaVersion"
api "io.reactivex.rxjava3:rxandroid:$rootProject.ext.gRxAndroid"
//Glide
api "com.github.bumptech.glide:glide:${rootProject.ext.supportGlide}"
annotationProcessor "com.github.bumptech.glide:compiler:${rootProject.ext.supportGlide}"
//butterknife
api "com.jakewharton:butterknife:$rootProject.ext.gButterKnifeVersion"
////选择器
api "com.contrarywind:Android-PickerView:${rootProject.ext.pickerViewVersion}"
api "com.contrarywind:wheelview:${rootProject.ext.wheelVersion}"
//recyclerview
api 'androidx.recyclerview:recyclerview:1.2.1'
//选择器
api "com.nightonke:boommenu:$rootProject.ext.gBoomMenu"
// 基础依赖包,必须要依赖
api 'com.gyf.immersionbar:immersionbar:3.0.0'
// fragment快速实现可选
api 'com.gyf.immersionbar:immersionbar-components:3.0.0'
//room
api "androidx.room:room-runtime:$rootProject.room_version"
annotationProcessor "androidx.room:room-compiler:$rootProject.room_version"
api "androidx.room:room-rxjava2:$rootProject.room_version"
api "androidx.room:room-guava:$rootProject.room_version"
//base popup window
api "io.github.razerdp:BasePopup:$rootProject.popup_version"
// 选择器
api 'io.github.lucksiege:pictureselector:v2.7.3-rc08'
api 'me.rosuh:AndroidFilePicker:0.7.0-x'
//toast
api 'com.github.getActivity:ToastUtils:9.5'
//图片压缩
api "top.zibin:Luban:$rootProject.ext.lubanVersio"
}