126 lines
5.0 KiB
Groovy
126 lines
5.0 KiB
Groovy
plugins {
|
|
id 'com.android.library'
|
|
id 'kotlin-android'
|
|
id 'kotlin-android-extensions'
|
|
id 'kotlin-kapt'
|
|
id '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'
|
|
//ARouter apt 参数
|
|
kapt {
|
|
useBuildCache = false
|
|
arguments {
|
|
arg("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
|
|
}
|
|
|
|
kotlinOptions {
|
|
jvmTarget = "1.8"
|
|
}
|
|
|
|
}
|
|
|
|
dependencies {
|
|
implementation fileTree(dir: 'libs', include: ['*.jar'])
|
|
implementation rootProject.ext.dependencies.kotlinstdlibjdk7
|
|
implementation rootProject.ext.dependencies.androidxccorektx
|
|
implementation rootProject.ext.dependencies.androidxappcompat
|
|
implementation rootProject.ext.dependencies.androidxconstraintlayout
|
|
implementation rootProject.ext.dependencies.androidxrecyclerview
|
|
implementation rootProject.ext.dependencies.flexbox
|
|
|
|
implementation rootProject.ext.dependencies.rxandroid
|
|
implementation rootProject.ext.dependencies.mogoaicloudtrafficlive
|
|
implementation rootProject.ext.dependencies.material
|
|
|
|
kapt rootProject.ext.dependencies.androidxroomcompiler
|
|
implementation rootProject.ext.dependencies.androidxroomruntime
|
|
implementation rootProject.ext.dependencies.androidxroomktx
|
|
|
|
//Crash日志收集
|
|
// implementation rootProject.ext.dependencies.crashSdk
|
|
implementation rootProject.ext.dependencies.boostmultidex
|
|
|
|
// debugImplementation rootProject.ext.dependencies.debugleakcanary
|
|
// releaseImplementation rootProject.ext.dependencies.releaseleakcanary
|
|
|
|
implementation rootProject.ext.dependencies.arouter
|
|
kapt rootProject.ext.dependencies.aroutercompiler
|
|
|
|
implementation rootProject.ext.dependencies.mogoami
|
|
|
|
implementation rootProject.ext.dependencies.android_start_up
|
|
implementation rootProject.ext.dependencies.cicle_indicator
|
|
implementation rootProject.ext.dependencies.koomnative
|
|
implementation rootProject.ext.dependencies.koomxhook
|
|
if (Boolean.valueOf(USE_MAVEN_PACKAGE)) {
|
|
api rootProject.ext.dependencies.mogoaicloudservicesdk
|
|
api rootProject.ext.dependencies.mogocommons
|
|
api rootProject.ext.dependencies.mogomap
|
|
api rootProject.ext.dependencies.crashreportupgrade
|
|
|
|
api rootProject.ext.dependencies.mogo_core_res
|
|
api rootProject.ext.dependencies.mogo_core_data
|
|
api rootProject.ext.dependencies.mogo_core_utils
|
|
api rootProject.ext.dependencies.mogo_core_network
|
|
api rootProject.ext.dependencies.mogo_core_function_obu_mogo
|
|
api rootProject.ext.dependencies.mogo_core_function_bindingcar
|
|
api rootProject.ext.dependencies.mogo_core_function_map
|
|
api rootProject.ext.dependencies.mogo_core_function_v2x
|
|
api rootProject.ext.dependencies.mogo_core_function_monitoring
|
|
api rootProject.ext.dependencies.mogo_core_function_devatools
|
|
api rootProject.ext.dependencies.mogo_core_function_call
|
|
|
|
implementation project(':libraries:map-usbcamera')
|
|
} else {
|
|
api project(':foudations:mogo-aicloud-services-sdk')
|
|
api project(':foudations:mogo-commons')
|
|
api project(':test:crashreport-upgrade')
|
|
api project(':test:crashreport-apmbyte')
|
|
|
|
api project(':core:mogo-core-res')
|
|
api project(':core:mogo-core-data')
|
|
api project(':core:mogo-core-utils')
|
|
api project(':core:function-impl:mogo-core-function-obu-mogo')
|
|
api project(':core:function-impl:mogo-core-function-map')
|
|
api project(':core:function-impl:mogo-core-function-v2x')
|
|
api project(':core:function-impl:mogo-core-function-monitoring')
|
|
api project(':core:function-impl:mogo-core-function-devatools')
|
|
api project(':core:function-impl:mogo-core-function-chat')
|
|
api project(':core:function-impl:mogo-core-function-bindingcar')
|
|
api project(':core:function-impl:mogo-core-function-datacenter')
|
|
api project(':core:function-impl:mogo-core-function-biz')
|
|
|
|
api project(':core:mogo-core-function-call')
|
|
api project(':libraries:mogo-adas')
|
|
api project(':libraries:map-usbcamera')
|
|
}
|
|
}
|
|
|
|
apply from: new File(rootProject.rootDir, "gradle/upload.gradle").toString()
|