85 lines
3.1 KiB
Groovy
85 lines
3.1 KiB
Groovy
apply plugin: 'com.android.library'
|
|
apply plugin: 'kotlin-android'
|
|
apply plugin: 'kotlin-android-extensions'
|
|
apply plugin: 'com.alibaba.arouter'
|
|
|
|
android {
|
|
compileSdkVersion rootProject.ext.android.compileSdkVersion
|
|
// buildToolsVersion rootProject.ext.android.buildToolsVersion
|
|
defaultConfig {
|
|
minSdkVersion rootProject.ext.android.minSdkVersion
|
|
targetSdkVersion rootProject.ext.android.targetSdkVersion
|
|
versionCode Integer.valueOf(VERSION_CODE)
|
|
versionName getValueFromRootProperties("${project.name.replace("-", "_").toUpperCase()}_VERSION")
|
|
|
|
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
|
consumerProguardFiles 'consumer-rules.pro'
|
|
|
|
javaCompileOptions {
|
|
annotationProcessorOptions {
|
|
arguments = [AROUTER_MODULE_NAME: project.getName()]
|
|
}
|
|
}
|
|
}
|
|
|
|
buildTypes {
|
|
release {
|
|
minifyEnabled false
|
|
zipAlignEnabled true
|
|
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
|
|
}
|
|
}
|
|
|
|
compileOptions {
|
|
sourceCompatibility JavaVersion.VERSION_1_8
|
|
targetCompatibility JavaVersion.VERSION_1_8
|
|
}
|
|
|
|
lintOptions {
|
|
abortOnError false
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
implementation fileTree(dir: 'libs', include: ['*.jar'])
|
|
implementation rootProject.ext.dependencies.androidxccorektx
|
|
implementation rootProject.ext.dependencies.kotlinstdlibjdk7
|
|
implementation rootProject.ext.dependencies.androidxrecyclerview
|
|
implementation rootProject.ext.dependencies.androidxappcompat
|
|
implementation rootProject.ext.dependencies.arouter
|
|
annotationProcessor rootProject.ext.dependencies.aroutercompiler
|
|
implementation rootProject.ext.dependencies.androidxconstraintlayout
|
|
implementation rootProject.ext.dependencies.rxjava
|
|
implementation rootProject.ext.dependencies.rxandroid
|
|
implementation rootProject.ext.dependencies.localbroadcastmanager
|
|
|
|
if (Boolean.valueOf(RELEASE)) {
|
|
compileOnly rootProject.ext.dependencies.mogomap
|
|
compileOnly rootProject.ext.dependencies.mogoutils
|
|
compileOnly rootProject.ext.dependencies.mogocommons
|
|
compileOnly rootProject.ext.dependencies.mogoserviceapi
|
|
compileOnly rootProject.ext.dependencies.modulecommon
|
|
compileOnly rootProject.ext.dependencies.moduleshare
|
|
}else{
|
|
compileOnly project(":libraries:mogo-map")
|
|
compileOnly project(":foudations:mogo-utils")
|
|
compileOnly project(":foudations:mogo-commons")
|
|
compileOnly project(":services:mogo-service-api")
|
|
compileOnly project(":modules:mogo-module-common")
|
|
compileOnly project(":modules:mogo-module-share")
|
|
}
|
|
compileOnly rootProject.ext.dependencies.carcallprovider
|
|
|
|
implementation rootProject.ext.dependencies.eventbus
|
|
|
|
|
|
// if( Boolean.valueOf(RELEASE)){
|
|
// implementation rootProject.ext.dependencies.moduletanlulib
|
|
// } else {
|
|
// implementation project(":tanlulib")
|
|
// }
|
|
}
|
|
apply from: new File(rootProject.rootDir, "gradle/upload.gradle").toString()
|
|
repositories {
|
|
mavenCentral()
|
|
} |