59 lines
1.7 KiB
Groovy
59 lines
1.7 KiB
Groovy
plugins {
|
|
id 'com.android.library'
|
|
}
|
|
|
|
android {
|
|
compileSdkVersion rootProject.ext.android.compileSdkVersion
|
|
|
|
defaultConfig {
|
|
minSdkVersion rootProject.ext.android.minSdkVersion
|
|
targetSdkVersion rootProject.ext.android.targetSdkVersion
|
|
versionCode Integer.valueOf(VERSION_CODE)
|
|
versionName getValueFromRootProperties("${project.name.replace("-", "_").toUpperCase()}_VERSION")
|
|
|
|
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
|
|
}
|
|
|
|
lintOptions {
|
|
abortOnError false
|
|
}
|
|
|
|
}
|
|
|
|
dependencies {
|
|
|
|
implementation rootProject.ext.dependencies.arouter
|
|
annotationProcessor rootProject.ext.dependencies.aroutercompiler
|
|
api rootProject.ext.dependencies.mogoaicloudsocket
|
|
implementation rootProject.ext.dependencies.mogoaicloudlocation
|
|
|
|
if (Boolean.valueOf(USE_MAVEN_PACKAGE)) {
|
|
implementation rootProject.ext.dependencies.mogo_core_utils
|
|
implementation rootProject.ext.dependencies.mogo_core_data
|
|
|
|
} else {
|
|
implementation project(':core:mogo-core-utils')
|
|
implementation project(':core:mogo-core-data')
|
|
}
|
|
|
|
annotationProcessor 'com.elegant.spi:compiler:1.0.3'
|
|
}
|
|
|
|
apply from: new File(rootProject.rootDir, "gradle/upload.gradle").toString() |