73 lines
2.9 KiB
Groovy
73 lines
2.9 KiB
Groovy
apply plugin: 'com.android.library'
|
||
apply plugin: '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'
|
||
|
||
javaCompileOptions {
|
||
annotationProcessorOptions {
|
||
arguments = [AROUTER_MODULE_NAME: project.getName()]
|
||
}
|
||
}
|
||
}
|
||
|
||
buildTypes {
|
||
release {
|
||
minifyEnabled false
|
||
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
|
||
}
|
||
}
|
||
|
||
compileOptions {
|
||
sourceCompatibility JavaVersion.VERSION_1_8
|
||
targetCompatibility JavaVersion.VERSION_1_8
|
||
}
|
||
|
||
}
|
||
|
||
dependencies {
|
||
implementation fileTree(dir: 'libs', include: ['*.aar'])
|
||
|
||
annotationProcessor rootProject.ext.dependencies.aroutercompiler
|
||
implementation rootProject.ext.dependencies.arouter
|
||
implementation rootProject.ext.dependencies.rxandroid
|
||
implementation rootProject.ext.dependencies.androidxappcompat
|
||
implementation rootProject.ext.dependencies.androidxconstraintlayout
|
||
|
||
// 爱趣听sdk上传到了公司的maven,用来规避RELEASE时ClassDefNotFound异常,后续若爱趣听有新的sdk也需要上传maven
|
||
implementation "com.mogo.tencent.wecarflow:mogo-wecarflow:+@aar"
|
||
implementation "com.mogo.kwmusic:mogo-kwmusic:+"
|
||
|
||
implementation rootProject.ext.dependencies.callchatprovider
|
||
|
||
if (Boolean.valueOf(RELEASE)) {
|
||
implementation rootProject.ext.dependencies.mogomap
|
||
implementation rootProject.ext.dependencies.mogoutils
|
||
implementation rootProject.ext.dependencies.mogocommons
|
||
implementation rootProject.ext.dependencies.mogoserviceapi
|
||
implementation rootProject.ext.dependencies.mogoservice
|
||
implementation rootProject.ext.dependencies.moduleservice
|
||
implementation rootProject.ext.dependencies.modulecommon
|
||
implementation rootProject.ext.dependencies.mogomoduleauth
|
||
} else {
|
||
implementation project(":libraries:mogo-map")
|
||
implementation project(":foudations:mogo-utils")
|
||
implementation project(":foudations:mogo-commons")
|
||
implementation project(':services:mogo-service-api')
|
||
implementation project(':services:mogo-service')
|
||
implementation project(':modules:mogo-module-common')
|
||
implementation project(':modules:mogo-module-service')
|
||
implementation project(':modules:mogo-module-authorize')
|
||
}
|
||
}
|
||
|
||
apply from: new File(rootProject.rootDir, "gradle/upload.gradle").toString() |