75 lines
2.4 KiB
Groovy
75 lines
2.4 KiB
Groovy
apply plugin: 'com.android.library'
|
|
apply plugin: 'kotlin-android'
|
|
apply plugin: 'kotlin-android-extensions'
|
|
|
|
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'
|
|
|
|
javaCompileOptions {
|
|
annotationProcessorOptions {
|
|
arguments = [AROUTER_MODULE_NAME: project.getName()]
|
|
}
|
|
}
|
|
}
|
|
|
|
buildTypes {
|
|
release {
|
|
minifyEnabled false
|
|
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
|
|
}
|
|
}
|
|
|
|
compileOptions {
|
|
sourceCompatibility 1.8
|
|
targetCompatibility 1.8
|
|
}
|
|
|
|
packagingOptions {
|
|
exclude 'META-INF/proguard/coroutines.pro'
|
|
exclude 'META-INF/*'
|
|
}
|
|
|
|
lintOptions {
|
|
abortOnError false
|
|
}
|
|
|
|
}
|
|
|
|
dependencies {
|
|
implementation fileTree(dir: 'libs', include: ['*.jar'])
|
|
|
|
implementation rootProject.ext.dependencies.androidxappcompat
|
|
|
|
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
|
|
implementation rootProject.ext.dependencies.arouter
|
|
annotationProcessor rootProject.ext.dependencies.aroutercompiler
|
|
|
|
// api rootProject.ext.dependencies.amapnavi3dmap
|
|
// api rootProject.ext.dependencies.amapsearch
|
|
// api rootProject.ext.dependencies.amaplocation
|
|
|
|
if (Boolean.valueOf(RELEASE)) {
|
|
implementation rootProject.ext.dependencies.mogoutils
|
|
implementation rootProject.ext.dependencies.mogomapapi
|
|
implementation rootProject.ext.dependencies.mogocommons
|
|
} else {
|
|
implementation project(':foudations:mogo-utils')
|
|
implementation project(':libraries:mogo-map-api')
|
|
implementation project(':foudations:mogo-commons')
|
|
}
|
|
|
|
implementation 'com.zhidaoauto.machine:map:1.0.0-vr-7.9.7'
|
|
// implementation 'com.zhidaoauto.machine:map:1.0.0-vr-test-3.4'
|
|
}
|
|
|
|
apply from: new File(rootProject.rootDir, "gradle/upload.gradle").toString()
|