97 lines
3.2 KiB
Groovy
97 lines
3.2 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
|
|
}
|
|
|
|
sourceSets {
|
|
main {
|
|
res.srcDirs = [
|
|
'src/main/res',// 默认资源目录
|
|
]
|
|
}
|
|
}
|
|
}
|
|
|
|
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.androidxrecyclerview
|
|
implementation rootProject.ext.dependencies.androidxconstraintlayout
|
|
|
|
implementation rootProject.ext.dependencies.arouter
|
|
kapt rootProject.ext.dependencies.aroutercompiler
|
|
|
|
|
|
api rootProject.ext.dependencies.mogoaicloudrealtime
|
|
|
|
implementation rootProject.ext.dependencies.coroutinesandroid
|
|
implementation rootProject.ext.dependencies.coroutinescore
|
|
|
|
implementation rootProject.ext.dependencies.mogoobu
|
|
|
|
annotationProcessor 'com.elegant.spi:compiler:1.0.3'
|
|
|
|
if (Boolean.valueOf(RELEASE)) {
|
|
api rootProject.ext.dependencies.mogomap
|
|
api rootProject.ext.dependencies.mogomapapi
|
|
api rootProject.ext.dependencies.mogoutils
|
|
api rootProject.ext.dependencies.mogocommons
|
|
api rootProject.ext.dependencies.mogoserviceapi
|
|
implementation rootProject.ext.dependencies.callchatprovider
|
|
|
|
implementation rootProject.ext.dependencies.mogo_core_data
|
|
implementation rootProject.ext.dependencies.mogo_core_function_call
|
|
} else {
|
|
api project(":libraries:mogo-map")
|
|
api project(":libraries:mogo-map-api")
|
|
api project(":foudations:mogo-utils")
|
|
api project(":foudations:mogo-commons")
|
|
api project(':services:mogo-service-api')
|
|
implementation project(':modules:mogo-module-carchattingprovider')
|
|
|
|
implementation project(':core:mogo-core-data')
|
|
implementation project(':core:mogo-core-function-call')
|
|
}
|
|
|
|
}
|
|
|
|
apply from: new File(rootProject.rootDir, "gradle/upload.gradle").toString()
|