80 lines
3.4 KiB
Groovy
80 lines
3.4 KiB
Groovy
apply plugin: 'com.android.application'
|
||
apply plugin: 'com.jakewharton.butterknife'
|
||
android {
|
||
buildToolsVersion rootProject.ext.gBuildToolsVersion
|
||
compileSdkVersion rootProject.ext.gCompileSdkVersion
|
||
defaultConfig {
|
||
applicationId "com.tengshisoft.course"
|
||
minSdkVersion rootProject.ext.gMinSdkVersion
|
||
targetSdkVersion rootProject.ext.gCompileSdkVersion
|
||
versionCode rootProject.ext.gVersionCode
|
||
versionName rootProject.ext.gVersionName
|
||
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
||
multiDexEnabled true
|
||
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(dir: 'libs', include: ['*.jar'])
|
||
|
||
implementation 'androidx.appcompat:appcompat:1.2.0'
|
||
implementation 'androidx.constraintlayout:constraintlayout:2.0.0'
|
||
testImplementation 'junit:junit:4.12'
|
||
androidTestImplementation 'androidx.test.ext:junit:1.1.1'
|
||
androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'
|
||
implementation 'androidx.multidex:multidex:2.0.1'
|
||
implementation 'androidx.recyclerview:recyclerview:1.1.0'
|
||
implementation 'com.google.android.material:material:1.1.0'
|
||
//viewPage2
|
||
implementation 'androidx.viewpager2:viewpager2:1.1.0-alpha01'
|
||
//Arouter
|
||
annotationProcessor "com.alibaba:arouter-compiler:${rootProject.ext.gRouterCompileVersion}"
|
||
//butterknife
|
||
annotationProcessor "com.jakewharton:butterknife-compiler:${rootProject.ext.gButterKnifeVersion}"
|
||
// 基础依赖包,必须要依赖
|
||
implementation 'com.gyf.immersionbar:immersionbar:3.0.0'
|
||
// fragment快速实现(可选)
|
||
implementation 'com.gyf.immersionbar:immersionbar-components:3.0.0'
|
||
//banner
|
||
implementation "com.youth.banner:banner:${rootProject.ext.bannerVersion}"
|
||
//glide
|
||
implementation "com.github.bumptech.glide:glide:${rootProject.ext.supportGlide}"
|
||
annotationProcessor "com.github.bumptech.glide:compiler:${rootProject.ext.supportGlide}"
|
||
implementation project(':cm_utils')
|
||
implementation project(':moduleijkplayer')
|
||
//bottomNav
|
||
implementation 'com.github.ittianyu:BottomNavigationViewEx:2.0.4'
|
||
// implementation "com.android.support:design:28.0.0"
|
||
//Rxjava
|
||
implementation "io.reactivex.rxjava2:rxjava:${rootProject.ext.gRxJavaVersion}"
|
||
implementation "io.reactivex.rxjava2:rxandroid:${rootProject.ext.gRxAndroid}"
|
||
//RxJava
|
||
implementation "com.squareup.retrofit2:retrofit:${rootProject.ext.gRetrofitVersion}"
|
||
//Gson
|
||
implementation "com.google.code.gson:gson:${rootProject.ext.gGsonVersion}"
|
||
//SmartRefreshLayout
|
||
implementation "com.scwang.smartrefresh:SmartRefreshLayout:${rootProject.ext.gSmartRefreshLayoutVersion}"
|
||
//图片压缩
|
||
implementation "top.zibin:Luban:$rootProject.ext.lubanVersio"
|
||
//选择器
|
||
implementation "com.contrarywind:Android-PickerView:${rootProject.ext.pickerViewVersion}"
|
||
implementation "com.contrarywind:wheelview:${rootProject.ext.wheelVersion}"
|
||
}
|