70 lines
2.7 KiB
Groovy
70 lines
2.7 KiB
Groovy
apply plugin: 'com.android.library'
|
||
apply plugin: 'com.alibaba.arouter'
|
||
apply plugin: 'kotlin-android'
|
||
apply plugin: 'kotlin-android-extensions'
|
||
|
||
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")
|
||
|
||
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 {
|
||
sourceCompatibility JavaVersion.VERSION_1_8
|
||
targetCompatibility JavaVersion.VERSION_1_8
|
||
}
|
||
|
||
}
|
||
|
||
dependencies {
|
||
implementation fileTree(dir: 'libs', include: ['*.jar'])
|
||
implementation rootProject.ext.dependencies.androidxappcompat
|
||
implementation rootProject.ext.dependencies.androidxrecyclerview
|
||
implementation rootProject.ext.dependencies.androidxconstraintlayout
|
||
implementation rootProject.ext.dependencies.arouter
|
||
implementation rootProject.ext.dependencies.callchatprovider
|
||
implementation rootProject.ext.dependencies.coroutinesandroid
|
||
implementation rootProject.ext.dependencies.coroutinescore
|
||
implementation rootProject.ext.dependencies.kotlinstdlibjdk7
|
||
implementation 'com.google.android.material:material:1.2.1'
|
||
implementation project(':modules:mogo-module-common')
|
||
implementation project(path: ':modules:mogo-module-service')
|
||
|
||
annotationProcessor rootProject.ext.dependencies.aroutercompiler
|
||
|
||
if (Boolean.valueOf(RELEASE)) {
|
||
implementation rootProject.ext.dependencies.mogocommons
|
||
implementation rootProject.ext.dependencies.mogoserviceapi
|
||
} else {
|
||
implementation project(":foudations:mogo-commons")
|
||
implementation project(':services:mogo-service-api')
|
||
|
||
implementation project(':core:mogo-core-utils')
|
||
}
|
||
implementation 'com.tencent.bugly:crashreport_upgrade:latest.release'
|
||
//其中latest.release指代最新Bugly SDK版本号,也可以指定明确的版本号,例如2.1.9
|
||
implementation 'com.tencent.bugly:nativecrashreport:latest.release'
|
||
//其中latest.release指代最新Bugly NDK版本号,也可以指定明确的版本号,例如3.0
|
||
|
||
}
|
||
|
||
apply from: new File(rootProject.rootDir, "gradle/upload.gradle").toString()
|