69 lines
2.3 KiB
Groovy
69 lines
2.3 KiB
Groovy
apply plugin: 'com.android.library'
|
|
apply plugin: 'kotlin-android'
|
|
apply plugin: 'kotlin-android-extensions'
|
|
apply plugin: 'kotlin-kapt'
|
|
|
|
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"
|
|
|
|
kapt {
|
|
useBuildCache = false
|
|
arguments {
|
|
arg("AROUTER_MODULE_NAME", "shuttle"+project.getName())
|
|
}
|
|
}
|
|
}
|
|
|
|
compileOptions {
|
|
sourceCompatibility JavaVersion.VERSION_1_8
|
|
targetCompatibility JavaVersion.VERSION_1_8
|
|
}
|
|
|
|
lintOptions {
|
|
abortOnError false
|
|
}
|
|
|
|
buildTypes {
|
|
release {
|
|
minifyEnabled false
|
|
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
|
|
}
|
|
debug {
|
|
minifyEnabled false
|
|
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
dependencies {
|
|
implementation fileTree(dir: "libs", include: ["*.jar"])
|
|
implementation rootProject.ext.dependencies.kotlinstdlib
|
|
implementation rootProject.ext.dependencies.androidxappcompat
|
|
implementation rootProject.ext.dependencies.arouter
|
|
kapt rootProject.ext.dependencies.aroutercompiler
|
|
implementation rootProject.ext.dependencies.androidxconstraintlayout
|
|
implementation rootProject.ext.dependencies.amapnavi3dmap
|
|
|
|
implementation rootProject.ext.dependencies.rxjava
|
|
implementation rootProject.ext.dependencies.rxandroid
|
|
implementation rootProject.ext.dependencies.androidxrecyclerview
|
|
compileOnly rootProject.ext.dependencies.recyclerviewadapterhelper
|
|
|
|
implementation project(":OCH:common:common")
|
|
implementation project(":OCH:common:data")
|
|
compileOnly project(":libraries:mogo-map")
|
|
|
|
}
|
|
|
|
apply from: new File(rootProject.rootDir, "gradle/upload.gradle").toString() |