42 lines
1.8 KiB
Groovy
42 lines
1.8 KiB
Groovy
|
apply plugin: 'com.android.library'
|
||
|
android {
|
||
|
compileSdkVersion rootProject.ext.gCompileSdkVersion
|
||
|
defaultConfig {
|
||
|
minSdkVersion rootProject.ext.gMinSdkVersion
|
||
|
targetSdkVersion rootProject.ext.gTargetSdkVersion
|
||
|
versionCode rootProject.ext.gVersionCode
|
||
|
versionName rootProject.ext.gVersionName
|
||
|
vectorDrawables.useSupportLibrary = true
|
||
|
javaCompileOptions {
|
||
|
annotationProcessorOptions {
|
||
|
arguments = [AROUTER_MODULE_NAME: project.getName()]
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
|
||
|
compileOptions {
|
||
|
sourceCompatibility JavaVersion.VERSION_1_8
|
||
|
targetCompatibility JavaVersion.VERSION_1_8
|
||
|
}
|
||
|
}
|
||
|
|
||
|
dependencies {
|
||
|
implementation fileTree(include: ['*.jar'], dir: 'libs')
|
||
|
implementation "com.android.support:appcompat-v7:$rootProject.ext.gAppcompatVersion_v7"
|
||
|
implementation "com.android.support:design:$rootProject.ext.gAppcompatVersion_v7"
|
||
|
implementation "com.android.support:support-vector-drawable:$rootProject.ext.gAppcompatVersion_v7"
|
||
|
implementation project(':cm_utils')
|
||
|
//Zxing
|
||
|
implementation "com.google.zxing:core:$rootProject.ext.gZXingVersion"
|
||
|
implementation "com.google.zxing:android-core:$rootProject.ext.gZXingVersion"
|
||
|
//Arouter
|
||
|
annotationProcessor "com.alibaba:arouter-compiler:$rootProject.ext.gRouterCompileVersion"
|
||
|
//Retrofit
|
||
|
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"
|
||
|
}
|