74 lines
3.2 KiB
Groovy
74 lines
3.2 KiB
Groovy
|
if (IsModule.toBoolean()) {
|
||
|
apply plugin: 'com.android.library'
|
||
|
} else {
|
||
|
apply plugin: 'com.android.application'
|
||
|
}
|
||
|
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 "android.support.test.runner.AndroidJUnitRunner"
|
||
|
|
||
|
javaCompileOptions {
|
||
|
annotationProcessorOptions {
|
||
|
arguments = [AROUTER_MODULE_NAME: project.getName()]
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
lintOptions {
|
||
|
disable 'GoogleAppIndexingWarning'
|
||
|
}
|
||
|
buildTypes {
|
||
|
debug {
|
||
|
minifyEnabled false
|
||
|
}
|
||
|
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 'com.android.support.constraint:constraint-layout:1.1.3'
|
||
|
testImplementation 'junit:junit:4.12'
|
||
|
androidTestImplementation 'com.android.support.test:runner:1.0.2'
|
||
|
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
|
||
|
implementation "com.android.support:appcompat-v7:$rootProject.ext.gAppcompatVersion_v7"
|
||
|
implementation "com.android.support.constraint:constraint-layout:$rootProject.ext.gConstraint_layout"
|
||
|
implementation project(':cm_utils')
|
||
|
implementation project(':modulesupertools')
|
||
|
//Arouter
|
||
|
annotationProcessor "com.alibaba:arouter-compiler:$rootProject.ext.gRouterCompileVersion"
|
||
|
//butterknife
|
||
|
annotationProcessor "com.jakewharton:butterknife-compiler:$rootProject.ext.gButterKnifeVersion"
|
||
|
//RxJava
|
||
|
implementation "io.reactivex.rxjava2:rxandroid:$rootProject.ext.gRxAndroid"
|
||
|
implementation "io.reactivex.rxjava2:rxjava:$rootProject.ext.gRxJavaVersion"
|
||
|
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"
|
||
|
//Gson
|
||
|
implementation "com.google.code.gson:gson:$rootProject.ext.gGsonVersion"
|
||
|
//OkHttp
|
||
|
implementation "com.squareup.okhttp3:okhttp:$rootProject.ext.gOkHttp3Version"
|
||
|
implementation "com.android.support:recyclerview-v7:$rootProject.ext.gAppcompatVersion_v7"
|
||
|
//选择器
|
||
|
implementation "com.contrarywind:Android-PickerView:$rootProject.ext.gPickerViewVersion"
|
||
|
implementation "com.android.support:design:$rootProject.ext.gAppcompatVersion_v7"
|
||
|
implementation "com.jcodecraeer:xrecyclerview:$rootProject.ext.gXRecyclerViewVersion"
|
||
|
//Glide
|
||
|
implementation "com.github.bumptech.glide:glide:$rootProject.ext.gGlideVersion"
|
||
|
//filepicker
|
||
|
implementation "com.leon:lfilepickerlibrary:$rootProject.ext.gFilePicker"
|
||
|
}
|