66 lines
2.2 KiB
Groovy
66 lines
2.2 KiB
Groovy
apply plugin: 'com.android.library'
|
||
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")
|
||
|
||
javaCompileOptions {
|
||
annotationProcessorOptions {
|
||
arguments = [AROUTER_MODULE_NAME: project.getName()]
|
||
}
|
||
}
|
||
|
||
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
||
consumerProguardFiles 'consumer-rules.pro'
|
||
}
|
||
|
||
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 rootProject.ext.dependencies.androidxappcompat
|
||
implementation rootProject.ext.dependencies.androidxconstraintlayout
|
||
implementation rootProject.ext.dependencies.arouter
|
||
|
||
|
||
annotationProcessor rootProject.ext.dependencies.aroutercompiler
|
||
|
||
// 现有的ADAS的通讯SDK,需要将里面的东西融合到我们项目中
|
||
compileOnly rootProject.ext.dependencies.adasapi
|
||
|
||
api "com.zhidao.support.adas:high:1.1.8.3"
|
||
|
||
annotationProcessor rootProject.ext.dependencies.aroutercompiler
|
||
if (Boolean.valueOf(RELEASE)) {
|
||
api rootProject.ext.dependencies.mogoutils
|
||
api rootProject.ext.dependencies.mogocommons
|
||
api rootProject.ext.dependencies.mogoserviceapi
|
||
api
|
||
implementation rootProject.ext.dependencies.modulecommon
|
||
} else {
|
||
api project(":foudations:mogo-utils")
|
||
api project(":foudations:mogo-commons")
|
||
api project(':services:mogo-service-api')
|
||
implementation project(':modules:mogo-module-common')
|
||
|
||
}
|
||
}
|
||
|
||
apply from: new File(rootProject.rootDir, "gradle/upload.gradle").toString() |