57 lines
2.0 KiB
Groovy
57 lines
2.0 KiB
Groovy
apply plugin: 'com.android.library'
|
|
|
|
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: ['*.jar'])
|
|
api rootProject.ext.dependencies.androidxappcompat
|
|
api rootProject.ext.dependencies.analytics
|
|
implementation rootProject.ext.dependencies.arouter
|
|
annotationProcessor rootProject.ext.dependencies.aroutercompiler
|
|
implementation rootProject.ext.dependencies.rxjava
|
|
implementation rootProject.ext.dependencies.accountsdk
|
|
if (Boolean.valueOf(RELEASE)) {
|
|
implementation rootProject.ext.dependencies.mogoutils
|
|
api rootProject.ext.dependencies.ttsbase
|
|
implementation rootProject.ext.dependencies.skinsupport
|
|
} else {
|
|
implementation project(":foudations:mogo-utils")
|
|
api project(":tts:tts-base")
|
|
implementation project(":skin:mogo-skin-support")
|
|
}
|
|
api 'org.greenrobot:eventbus:3.1.1'
|
|
}
|
|
|
|
apply from: new File(rootProject.rootDir, "gradle/upload.gradle").toString() |