91 lines
2.6 KiB
Groovy
91 lines
2.6 KiB
Groovy
plugins {
|
|
id 'com.android.library'
|
|
id 'kotlin-android'
|
|
id 'kotlin-android-extensions'
|
|
id 'kotlin-kapt'
|
|
id 'com.google.protobuf'
|
|
}
|
|
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'
|
|
}
|
|
}
|
|
sourceSets {
|
|
main {
|
|
java {
|
|
srcDir 'src/main/java'
|
|
}
|
|
}
|
|
}
|
|
|
|
compileOptions {
|
|
sourceCompatibility JavaVersion.VERSION_1_8
|
|
targetCompatibility JavaVersion.VERSION_1_8
|
|
}
|
|
|
|
lintOptions {
|
|
abortOnError false
|
|
}
|
|
|
|
protobuf {
|
|
protoc {
|
|
artifact = rootProject.ext.dependencies.protoc
|
|
}
|
|
generateProtoTasks {
|
|
all().each { task ->
|
|
task.builtins {
|
|
java {}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
dependencies {
|
|
implementation fileTree(dir: 'libs', include: ['*.jar'])
|
|
implementation rootProject.ext.dependencies.kotlinstdlib
|
|
implementation rootProject.ext.dependencies.androidxappcompat
|
|
|
|
implementation rootProject.ext.dependencies.gson
|
|
|
|
implementation rootProject.ext.dependencies.arouter
|
|
kapt rootProject.ext.dependencies.aroutercompiler
|
|
implementation rootProject.ext.dependencies.androidxroomruntime
|
|
implementation rootProject.ext.dependencies.androidxroomktx
|
|
kapt rootProject.ext.dependencies.androidxroomcompiler
|
|
|
|
implementation rootProject.ext.dependencies.protobuf_java
|
|
implementation rootProject.ext.dependencies.protobuf_java_util
|
|
|
|
implementation project(':core:mogo-core-res')
|
|
api 'com.zhidaoauto.machine:mapdata:1.0.0.3'
|
|
api project(":libraries:mogo-adas-data")
|
|
api project(':core:mogo-core-utils')
|
|
}
|
|
|
|
apply from: new File(rootProject.rootDir, "gradle/upload.gradle").toString()
|