81 lines
3.0 KiB
Groovy
81 lines
3.0 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")
|
|
|
|
javaCompileOptions {
|
|
annotationProcessorOptions {
|
|
arguments = [AROUTER_MODULE_NAME: project.getName()]
|
|
}
|
|
}
|
|
|
|
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
|
consumerProguardFiles 'consumer-rules.pro'
|
|
}
|
|
|
|
buildTypes {
|
|
release {
|
|
minifyEnabled false
|
|
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
|
|
}
|
|
}
|
|
|
|
compileOptions {
|
|
targetCompatibility 1.8
|
|
sourceCompatibility 1.8
|
|
}
|
|
|
|
sourceSets {
|
|
main {
|
|
res.srcDirs = ['src/main/res', 'src/main/res-light']
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
dependencies {
|
|
implementation fileTree(dir: 'libs', include: ['*.jar'])
|
|
implementation rootProject.ext.dependencies.androidxcardview
|
|
implementation rootProject.ext.dependencies.androidxappcompat
|
|
implementation rootProject.ext.dependencies.androidxconstraintlayout
|
|
implementation rootProject.ext.dependencies.arouter
|
|
annotationProcessor rootProject.ext.dependencies.aroutercompiler
|
|
implementation rootProject.ext.dependencies.rxjava
|
|
implementation rootProject.ext.dependencies.rxandroid
|
|
implementation rootProject.ext.dependencies.livesdk
|
|
|
|
if (Boolean.valueOf(RELEASE)) {
|
|
api rootProject.ext.dependencies.mogomap
|
|
api rootProject.ext.dependencies.mogomapapi
|
|
api rootProject.ext.dependencies.mogoutils
|
|
api rootProject.ext.dependencies.mogocommons
|
|
api rootProject.ext.dependencies.mogoserviceapi
|
|
implementation rootProject.ext.dependencies.modulecommon
|
|
implementation rootProject.ext.dependencies.moduleshare
|
|
implementation rootProject.ext.dependencies.moduleservice
|
|
|
|
// implementation rootProject.ext.dependencies.moduleventpanel
|
|
// implementation rootProject.ext.dependencies.mogomoduleauth
|
|
} else {
|
|
api project(":libraries:mogo-map")
|
|
api project(":libraries:mogo-map-api")
|
|
api project(":foudations:mogo-utils")
|
|
api project(":foudations:mogo-commons")
|
|
api project(':services:mogo-service-api')
|
|
implementation project(':modules:mogo-module-common')
|
|
implementation project(':modules:mogo-module-share')
|
|
implementation project(':modules:mogo-module-service')
|
|
// implementation project(':modules:mogo-module-event-panel')
|
|
// implementation project(':modules:mogo-module-authorize')
|
|
}
|
|
}
|
|
|
|
apply from: new File(rootProject.rootDir, "gradle/upload.gradle").toString()
|