68 lines
2.9 KiB
Groovy
Executable File
68 lines
2.9 KiB
Groovy
Executable File
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 "android.support.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 "com.android.support:appcompat-v7:$rootProject.ext.gAppcompatVersion_v7_28"
|
|
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:design:$rootProject.ext.gAppcompatVersion_v7_28"
|
|
//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
|
|
implementation "com.github.bumptech.glide:glide:$rootProject.ext.gGlideVersion"
|
|
//butterknife
|
|
api "com.jakewharton:butterknife:$rootProject.ext.gButterKnifeVersion"
|
|
|
|
//recyclerview
|
|
implementation "com.android.support:recyclerview-v7:$rootProject.ext.gAppcompatVersion_v7_28"
|
|
//选择器
|
|
implementation "com.contrarywind:Android-PickerView:$rootProject.ext.gPickerViewVersion"
|
|
implementation "com.nightonke:boommenu:$rootProject.ext.gBoomMenu"
|
|
|
|
}
|