将foudations包下的mogo-utils模块下的代码迁移到core包下的mogo-core-utils模块下 注:远程依赖库网约车模块目前使用的是foudations包下的mogo-utils模块下Logger, 目前看项目中无该网约车模块功能,暂时注释掉该模块
67 lines
2.3 KiB
Groovy
67 lines
2.3 KiB
Groovy
plugins {
|
||
id 'com.android.library'
|
||
id 'kotlin-android'
|
||
id 'kotlin-android-extensions'
|
||
id 'kotlin-kapt'
|
||
id '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")
|
||
|
||
ndk {
|
||
// 设置支持的SO库架构
|
||
abiFilters 'armeabi' //, 'x86', 'armeabi-v7a', 'x86_64', 'arm64-v8a'
|
||
}
|
||
|
||
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'
|
||
}
|
||
}
|
||
}
|
||
|
||
dependencies {
|
||
implementation fileTree(dir: "libs", include: ["*.jar"])
|
||
implementation rootProject.ext.dependencies.androidxappcompat
|
||
|
||
implementation rootProject.ext.dependencies.arouter
|
||
kapt rootProject.ext.dependencies.aroutercompiler
|
||
|
||
if (Boolean.valueOf(USE_MAVEN_PACKAGE)) {
|
||
api rootProject.ext.dependencies.crashreport
|
||
implementation rootProject.ext.dependencies.mogo_core_utils
|
||
implementation rootProject.ext.dependencies.mogocommons
|
||
} else {
|
||
api project(":test:crashreport")
|
||
implementation project(':core:mogo-core-utils')
|
||
implementation project(":foudations:mogo-commons")
|
||
}
|
||
|
||
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() |