72 lines
2.5 KiB
Groovy
72 lines
2.5 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 {
|
|
arguments {
|
|
arg("AROUTER_MODULE_NAME", project.getName())
|
|
}
|
|
}
|
|
}
|
|
|
|
buildTypes {
|
|
release {
|
|
minifyEnabled false
|
|
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
|
|
}
|
|
}
|
|
|
|
compileOptions {
|
|
targetCompatibility 1.8
|
|
sourceCompatibility 1.8
|
|
}
|
|
|
|
kotlinOptions {
|
|
jvmTarget = "1.8"
|
|
}
|
|
|
|
}
|
|
|
|
dependencies {
|
|
implementation fileTree(dir: 'libs', include: ['*.jar'])
|
|
// 小智语音,免唤醒词等服务
|
|
compileOnly rootProject.ext.dependencies.mogomap
|
|
compileOnly rootProject.ext.dependencies.mogoutils
|
|
compileOnly rootProject.ext.dependencies.mogocommons
|
|
compileOnly rootProject.ext.dependencies.mogoserviceapi
|
|
compileOnly rootProject.ext.dependencies.modulecommon
|
|
compileOnly rootProject.ext.dependencies.androidxconstraintlayout
|
|
compileOnly rootProject.ext.dependencies.arouter
|
|
compileOnly rootProject.ext.dependencies.aiassist
|
|
kapt rootProject.ext.dependencies.aroutercompiler
|
|
compileOnly rootProject.ext.dependencies.androidxrecyclerview
|
|
implementation rootProject.ext.dependencies.androidxappcompat
|
|
implementation rootProject.ext.dependencies.kotlinstdlibjdk7
|
|
implementation rootProject.ext.dependencies.androidxccorektx
|
|
implementation rootProject.ext.dependencies.litezxing
|
|
implementation rootProject.ext.dependencies.androidxroomruntime
|
|
implementation rootProject.ext.dependencies.androidxroomktx
|
|
kapt rootProject.ext.dependencies.androidxroomcompiler
|
|
|
|
if( Boolean.valueOf(RELEASE) ){
|
|
implementation rootProject.ext.dependencies.modulepushbase
|
|
} else {
|
|
implementation project(":modules:mogo-module-push-base")
|
|
}
|
|
}
|
|
|
|
apply from: new File(rootProject.rootDir, "gradle/upload.gradle").toString()
|