将foudations包下的mogo-utils模块下的代码迁移到core包下的mogo-core-utils模块下 注:远程依赖库网约车模块目前使用的是foudations包下的mogo-utils模块下Logger, 目前看项目中无该网约车模块功能,暂时注释掉该模块
80 lines
2.9 KiB
Groovy
80 lines
2.9 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
|
||
}
|
||
}
|
||
|
||
dependencies {
|
||
|
||
implementation rootProject.ext.dependencies.androidxappcompat
|
||
implementation rootProject.ext.dependencies.androidxconstraintlayout
|
||
implementation rootProject.ext.dependencies.rxandroid
|
||
|
||
implementation rootProject.ext.dependencies.arouter
|
||
kapt rootProject.ext.dependencies.aroutercompiler
|
||
|
||
// 现有的ADAS的通讯SDK,需要将里面的东西融合到我们项目中
|
||
compileOnly rootProject.ext.dependencies.adasapi
|
||
|
||
api rootProject.ext.dependencies.adasHigh
|
||
implementation rootProject.ext.dependencies.mogoami
|
||
|
||
annotationProcessor rootProject.ext.dependencies.aroutercompiler
|
||
if (Boolean.valueOf(USE_MAVEN_PACKAGE)) {
|
||
api rootProject.ext.dependencies.mogo_core_utils
|
||
api rootProject.ext.dependencies.mogocommons
|
||
api rootProject.ext.dependencies.mogoserviceapi
|
||
implementation rootProject.ext.dependencies.modulecommon
|
||
|
||
implementation rootProject.ext.dependencies.mogo_core_data
|
||
implementation rootProject.ext.dependencies.mogo_core_utils
|
||
implementation rootProject.ext.dependencies.mogo_core_function_api
|
||
implementation rootProject.ext.dependencies.mogo_core_function_call
|
||
} else {
|
||
api project(':core:mogo-core-utils')
|
||
api project(":foudations:mogo-commons")
|
||
api project(':services:mogo-service-api')
|
||
implementation project(':modules:mogo-module-common')
|
||
|
||
implementation project(':core:mogo-core-data')
|
||
implementation project(':core:mogo-core-utils')
|
||
implementation project(':core:mogo-core-function-api')
|
||
implementation project(':core:mogo-core-function-call')
|
||
}
|
||
}
|
||
apply from: new File(rootProject.rootDir, "gradle/upload.gradle").toString()
|