102 lines
3.5 KiB
Groovy
102 lines
3.5 KiB
Groovy
plugins {
|
|
id 'com.android.library'
|
|
id 'kotlin-android'
|
|
id 'kotlin-android-extensions'
|
|
id 'kotlin-kapt'
|
|
}
|
|
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'
|
|
//ARouter apt 参数
|
|
kapt {
|
|
useBuildCache = false
|
|
arguments {
|
|
arg("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
|
|
}
|
|
|
|
kotlinOptions {
|
|
jvmTarget = '1.8'
|
|
}
|
|
|
|
|
|
kapt.includeCompileClasspath = false
|
|
|
|
|
|
lintOptions {
|
|
abortOnError false
|
|
}
|
|
|
|
}
|
|
|
|
dependencies {
|
|
implementation fileTree(dir: 'libs', include: ['*.jar'])
|
|
testImplementation 'junit:junit:4.12'
|
|
testImplementation project(path: ':core:mogo-core-utils')
|
|
androidTestImplementation 'androidx.test.ext:junit:1.1.1'
|
|
implementation rootProject.ext.dependencies.androidxappcompat
|
|
kapt rootProject.ext.dependencies.androidxannotation
|
|
api rootProject.ext.dependencies.glide
|
|
kapt rootProject.ext.dependencies.glidecompiler
|
|
api rootProject.ext.dependencies.fresco
|
|
implementation rootProject.ext.dependencies.kotlinstdlib
|
|
implementation rootProject.ext.dependencies.androidxannotation
|
|
implementation rootProject.ext.dependencies.material
|
|
implementation rootProject.ext.dependencies.guava
|
|
|
|
implementation rootProject.ext.dependencies.gson
|
|
implementation rootProject.ext.dependencies.glideanno
|
|
implementation rootProject.ext.dependencies.glideokhttp3
|
|
|
|
implementation rootProject.ext.dependencies.coroutinescore
|
|
implementation rootProject.ext.dependencies.coroutinesandroid
|
|
implementation rootProject.ext.dependencies.androidautoSize
|
|
implementation rootProject.ext.dependencies.litezxing
|
|
implementation rootProject.ext.dependencies.downloader
|
|
|
|
api rootProject.ext.dependencies.mogoaicloudpassport
|
|
api rootProject.ext.dependencies.mogoaicloudnetwork
|
|
|
|
api 'ch.hsr:geohash:1.4.0'
|
|
api rootProject.ext.dependencies.life_cycle_scope
|
|
api rootProject.ext.dependencies.view_model_scope
|
|
api rootProject.ext.dependencies.live_data_scope
|
|
api rootProject.ext.dependencies.androidxlifecycleprocess
|
|
api rootProject.ext.dependencies.androidxccorektx
|
|
api rootProject.ext.dependencies.life_cycle_java8
|
|
|
|
api rootProject.ext.dependencies.mogochainbase
|
|
api rootProject.ext.dependencies.mogoservicebiz
|
|
|
|
api ('com.mogo.service:mogo-v2x-enhanced:1.3.8'){
|
|
exclude group: 'com.google.protobuf', module: 'protoc'
|
|
exclude group: 'com.google.protobuf', module: 'protobuf-java'
|
|
exclude group: 'com.google.protobuf', module: 'protobuf-java-util'
|
|
exclude group: 'com.google.protobuf', module: 'protobuf-javalite'
|
|
}
|
|
}
|
|
|
|
apply from: new File(rootProject.rootDir, "gradle/upload.gradle").toString()
|