95 lines
3.4 KiB
Groovy
95 lines
3.4 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
|
|
zipAlignEnabled true
|
|
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.androidxappcompat
|
|
implementation rootProject.ext.dependencies.androidxccorektx
|
|
implementation rootProject.ext.dependencies.aiassist
|
|
implementation rootProject.ext.dependencies.okhttpinterceptor
|
|
implementation 'com.zhidaoauto.controller:api:1.0.8'
|
|
implementation 'com.zhidao.cosupload:cosuploadsdk:1.1.6', {
|
|
exclude group: 'com.zhidao.utils', module: 'utils'
|
|
}
|
|
implementation 'com.zhidao.video:video-processor:1.0.2.1'
|
|
implementation rootProject.ext.dependencies.eventbus
|
|
implementation rootProject.ext.dependencies.coroutinescore
|
|
implementation rootProject.ext.dependencies.coroutinesandroid
|
|
implementation rootProject.ext.dependencies.retrofit
|
|
implementation rootProject.ext.dependencies.retrofitconvertergson
|
|
implementation rootProject.ext.dependencies.gson
|
|
implementation rootProject.ext.dependencies.rxjava
|
|
implementation rootProject.ext.dependencies.rxandroid
|
|
implementation rootProject.ext.dependencies.analytics
|
|
|
|
implementation rootProject.ext.dependencies.arouter
|
|
kapt rootProject.ext.dependencies.aroutercompiler
|
|
|
|
implementation rootProject.ext.dependencies.mogoaicloudtanlu
|
|
|
|
|
|
if (Boolean.valueOf(USE_MAVEN_PACKAGE)) {
|
|
implementation rootProject.ext.dependencies.mogoutils
|
|
implementation rootProject.ext.dependencies.modulecommon
|
|
implementation rootProject.ext.dependencies.mogomap
|
|
implementation rootProject.ext.dependencies.mogoserviceapi
|
|
|
|
implementation rootProject.ext.dependencies.mogo_core_data
|
|
} else {
|
|
implementation project(":foudations:mogo-utils")
|
|
implementation project(':modules:mogo-module-common')
|
|
implementation project(':libraries:mogo-map')
|
|
implementation project(':services:mogo-service-api')
|
|
|
|
implementation project(':core:mogo-core-data')
|
|
}
|
|
}
|
|
|
|
apply from: new File(rootProject.rootDir, "gradle/upload.gradle").toString()
|