255 lines
16 KiB
Groovy
255 lines
16 KiB
Groovy
apply from: rootProject.file('gradle/ext.gradle')
|
|
ext {
|
|
time = ""
|
|
kotlin_version = "1.6.21"
|
|
|
|
//插件工具存放目录
|
|
codequality = new File(projectDir, 'codequality')
|
|
//静态代码检查开关
|
|
isCodeInspectEnable = true
|
|
|
|
dependencies = [
|
|
// androidx
|
|
androidxappcompat : "androidx.appcompat:appcompat:1.3.1",
|
|
androidxccorektx : "androidx.core:core-ktx:1.5.0",
|
|
androidxconstraintlayout : "androidx.constraintlayout:constraintlayout:2.1.0",
|
|
boostmultidex : "com.bytedance.boost_multidex:boost_multidex:1.0.1",
|
|
androidxviewpager2 : "androidx.viewpager2:viewpager2:1.0.0",
|
|
androidxrecyclerview : "androidx.recyclerview:recyclerview:1.2.0",
|
|
androidxcardview : "androidx.cardview:cardview:1.0.0",
|
|
localbroadcastmanager : "androidx.localbroadcastmanager:localbroadcastmanager:1.0.0",
|
|
// flexbox
|
|
flexbox : 'com.google.android.flexbox:flexbox:3.0.0',
|
|
guava :'com.google.guava:guava:29.0-android',
|
|
// 测试
|
|
junit : "junit:junit:4.12",
|
|
androidxjunit : "androidx.test.ext:junit:1.1.2",
|
|
androidxespressocore : "androidx.test.espresso:espresso-core:3.3.0",
|
|
// 地图
|
|
amapnavi3dmap : "com.amap.api:navi-3dmap:9.8.3_3dmap9.8.3",
|
|
amapsearch : "com.amap.api:search:9.7.0",
|
|
amaplocation : "com.amap.api:location:6.3.0",
|
|
|
|
downloader : "com.mogo.core.net:downloader:1.0.6.1",
|
|
|
|
// json 转换
|
|
gson : "com.google.code.gson:gson:2.8.4",
|
|
// 内存泄漏检测
|
|
debugleakcanary : "com.squareup.leakcanary:leakcanary-android:2.9.1",
|
|
releaseleakcanary : "com.squareup.leakcanary:leakcanary-android-no-op:1.6.3",
|
|
testleakcanary : "com.squareup.leakcanary:leakcanary-android-no-op:1.6.3",
|
|
//rxJava
|
|
rxjava : "io.reactivex.rxjava2:rxjava:2.2.2",
|
|
rxandroid : "io.reactivex.rxjava2:rxandroid:2.1.1",
|
|
// arouter
|
|
arouter : "com.alibaba:arouter-api:1.0.12-mogo",
|
|
aroutercompiler : "com.alibaba:arouter-compiler:1.0.12-mogo",
|
|
// glide
|
|
glide : 'com.github.bumptech.glide:glide:4.11.0',
|
|
glideokhttp3 : 'com.github.bumptech.glide:okhttp3-integration:4.11.0',
|
|
glideanno : 'com.github.bumptech.glide:annotations:4.11.0',
|
|
glidecompiler : 'com.github.bumptech.glide:compiler:4.11.0',
|
|
androidxannotation : "androidx.annotation:annotation:1.2.0",
|
|
okhttpinterceptor : "com.squareup.okhttp3:logging-interceptor:3.12.0",
|
|
// fresco
|
|
fresco : 'com.facebook.fresco:fresco:1.9.0',
|
|
// 公司服务 - 语音
|
|
aiassist : "com.zhidaoauto.common:service:1.0.8.4",
|
|
// 语音替换方案 暂时只用TTS 解决焦点问题
|
|
aiassistReplace : "com.zhidao.mogoVoicesdk:voice:1.0.5",
|
|
// 公司服务 - 埋点
|
|
analytics : "com.elegant.analytics:analytics:1.1.28",
|
|
|
|
retrofit : "com.squareup.retrofit2:retrofit:2.6.0",
|
|
retrofitadapter : "com.squareup.retrofit2:adapter-rxjava2:2.6.0",
|
|
retrofitconvertergson : "com.squareup.retrofit2:converter-gson:2.6.0",
|
|
retrofitconverterscalars : "com.squareup.retrofit2:converter-scalars:2.1.0",
|
|
|
|
// leakcanary
|
|
leakcanary : 'com.squareup.leakcanary:leakcanary-android:1.5.4',
|
|
leakcanarynoop : 'com.squareup.leakcanary:leakcanary-android-no-op:1.5.4',
|
|
|
|
// material
|
|
material : 'com.google.android.material:material:1.4.0',
|
|
indicator : 'com.github.zhpanvip:viewpagerindicator:1.0.4',
|
|
strategy : 'com.zhidaoauto.mic:strategy:1.0.6',
|
|
|
|
jetbrainsannotationsjava5 : "org.jetbrains:annotations-java5:15.0",
|
|
|
|
// kotlin
|
|
kotlinstdlib : "org.jetbrains.kotlin:kotlin-stdlib:${kotlin_version}",
|
|
|
|
//探路使用的直播组件
|
|
videoarmv7 : "com.shuyu:gsyVideoPlayer-armv7a:7.1.2",
|
|
videoarm64 : "com.shuyu:gsyVideoPlayer-arm64:7.1.2",
|
|
videojava : "com.shuyu:gsyVideoPlayer-java:7.1.2",
|
|
eventbus : "org.greenrobot:eventbus:3.3.1",
|
|
videoprocessor : "com.zhidao.video:video-processor:1.0.2.1",
|
|
livesdk : "com.tencent.liteavsdk:LiteAVSDK_Smart:7.4.9211",
|
|
|
|
coroutinescore : "org.jetbrains.kotlinx:kotlinx-coroutines-core:1.4.2",
|
|
coroutinesandroid : "org.jetbrains.kotlinx:kotlinx-coroutines-android:1.4.2",
|
|
|
|
adasapi : "com.zhidao.autopilot.support:adas:1.0.6.15",
|
|
adasconfigapi : "com.zhidao.adasconfig:adasconfig:1.1.5.2",
|
|
|
|
// obu sdk
|
|
obusdk : "com.zhidao.enterprise.smartv2x:smartv2x:1.0.0.3",
|
|
mogoobu : 'com.mogo.support.obu:mogo-obu:1.1.2',
|
|
|
|
// google
|
|
googlezxing : "com.google.zxing:core:3.3.3",
|
|
litezxing : "com.google.zxing:litezxing:1.0.29.8",
|
|
|
|
// android - room
|
|
androidxroomruntime : "androidx.room:room-runtime:2.4.2",
|
|
androidxroomcompiler : "androidx.room:room-compiler:2.4.2",
|
|
androidxroomktx : "androidx.room:room-ktx:2.4.2",
|
|
|
|
// androidx-lifecycle-process
|
|
androidxlifecycleprocess : "androidx.lifecycle:lifecycle-process:2.4.0",
|
|
androidxlifecycleservice : "androidx.lifecycle:lifecycle-service:2.4.0",
|
|
// rxjava2 with room
|
|
roomRxjava : 'androidx.room:room-rxjava2:2.4.2',
|
|
circleimageview : "de.hdodenhof:circleimageview:3.0.1",
|
|
|
|
//plugin
|
|
mogochainbase : "com.mogo.cloud:service-chain:${service_chain_version}",
|
|
mogochainplugin : "com.mogo.cloud:hook:${service_chain_version}",
|
|
mogoservicebiz : "com.mogo.cloud:service-biz:${plugin_version}",
|
|
mogobizconfig : "com.mogo.cloud:bizconfig:${plugin_version}",
|
|
|
|
//========================= 旧版本架构 Maven 版本管理 =========================
|
|
// modules
|
|
mogocommons : "com.mogo.commons:mogo-commons:${MOGO_COMMONS_VERSION}",
|
|
mogomap : "com.mogo.map:mogo-map:${MOGO_MAP_VERSION}",
|
|
mogomapapi : "com.mogo.map:mogo-map-api:${MOGO_MAP_API_VERSION}",
|
|
mogocustommap : "com.zhidaoauto.machine:map:${MAP_SDK_VERSION}",
|
|
mogocustommapoperational : "com.zhidaoauto.map:operational:${MAP_SDK_OPERATION_VERSION}",
|
|
|
|
// 基础服务实现
|
|
mogowebsocket : "com.mogo.module.carchatting:module-carchatt-socket:${WEBSOCKET_VERSION}",
|
|
mogologlib : "com.mogo.module:module-loglib:${LOGLIB_VERSION}",
|
|
crashreport : "com.mogo.test:crashreport:${CRASHREPORT_VERSION}",
|
|
crashreportapmbyte : "com.mogo.test:crashreport-apmbyte:${CRASHREPORT_APMBYTE_VERSION}",
|
|
crashreportnoop : "com.mogo.test:crashreport-noop:${CRASHREPORT_NOOP_VERSION}",
|
|
apm_insight : 'com.volcengine:apm_insight:1.4.10.cn-rc.0',
|
|
apm_insight_crash : 'com.volcengine:apm_insight_crash:1.4.6-rc.17',
|
|
cicle_indicator : 'me.relex:circleindicator:2.1.6',
|
|
|
|
//========================= TTS语音 Maven 版本管理 =========================
|
|
ttsbase : "com.mogo.tts:tts-base:${TTS_BASE_VERSION}",
|
|
ttsdi : "com.mogo.tts:tts-di:${TTS_DI_VERSION}",
|
|
ttszhi : "com.mogo.tts:tts-zhi:${TTS_ZHI_VERSION}",
|
|
ttspad : "com.mogo.tts:tts-pad:${TTS_ZHI_VERSION}",
|
|
ttsnoop : "com.mogo.tts:tts-noop:${TTS_NOOP_VERSION}",
|
|
ttsiflytek : "com.mogo.tts:tts-iflytek :${TTS_IFLYTEK_VERSION}",
|
|
|
|
//========================= 网约车 Maven 版本管理 =========================
|
|
mogooch : "com.mogo.och:och:${MOGO_OCH_VERSION}",
|
|
mogoochbus : "com.mogo.och:och-bus:${MOGO_OCH_BUS_VERSION}",
|
|
mogoochtaxi : "com.mogo.och:och-taxi:${MOGO_OCH_TAXI_VERSION}",
|
|
|
|
//========================= AiCloudSDK Maven 版本管理 =========================
|
|
mogoaicloudservicesdk : "com.mogo.aicloud.services:services-sdk:${MOGO_AICLOUD_SERVICES_SDK_VERSION}",
|
|
mogoaicloudsocket : "com.mogo.cloud:socket:${MOGO_SOCKET_VERSION}",
|
|
mogoaicloudpassport : "com.mogo.cloud:passport:${MOGO_PASSPORT_VERSION}",
|
|
mogoaicloudnetwork : "com.mogo.cloud:network:${MOGO_NETWORK_VERSION}",
|
|
mogoaicloudlive : "com.mogo.cloud:live:${MOGO_LIVE_VERSION}",
|
|
mogoaicloudtrafficlive : "com.mogo.cloud:trafficlive:${MOGO_TRAFFICLIVE_VERSION}",
|
|
mogoaicloudlocation : "com.mogo.cloud:location:${MOGO_LOCATION_VERSION}",
|
|
mogoaicloudtelematic : "com.mogo.cloud:telematic:${MOGO_TELEMATIC_VERSION}",
|
|
|
|
//========================= 新架构的 Maven 版本管理 =========================
|
|
mogo_core_function_devatools : "com.mogo.eagle.core.function.impl:devatools:${MOGO_CORE_FUNCTION_DEVATOOLS_VERSION}",
|
|
mogo_core_function_hmi : "com.mogo.eagle.core.function.impl:hmi:${MOGO_CORE_FUNCTION_HMI_VERSION}",
|
|
mogo_core_function_map : "com.mogo.eagle.core.function.impl:map:${MOGO_CORE_FUNCTION_MAP_VERSION}",
|
|
mogo_core_function_api : "com.mogo.eagle.core.function:api:${MOGO_CORE_FUNCTION_API_VERSION}",
|
|
mogo_core_function_call : "com.mogo.eagle.core.function:call:${MOGO_CORE_FUNCTION_CALL_VERSION}",
|
|
mogo_core_data : "com.mogo.eagle.core:data:${MOGO_CORE_DATA_VERSION}",
|
|
mogo_core_res : "com.mogo.eagle.core:res:${MOGO_CORE_RES_VERSION}",
|
|
mogo_core_utils : "com.mogo.eagle.core:utils:${MOGO_CORE_UTILS_VERSION}",
|
|
mogo_core_network : "com.mogo.eagle.core:network:${MOGO_CORE_NETWORK_VERSION}",
|
|
|
|
|
|
life_cycle_scope : "androidx.lifecycle:lifecycle-runtime-ktx:2.2.0",
|
|
view_model_scope : "androidx.lifecycle:lifecycle-viewmodel-ktx:2.2.0",
|
|
live_data_scope : "androidx.lifecycle:lifecycle-livedata-ktx:2.2.0",
|
|
life_cycle_java8 : "androidx.lifecycle:lifecycle-common-java8:2.2.0",
|
|
lifecycle_extension : "androidx.lifecycle:lifecycle-extensions:2.2.0",
|
|
|
|
|
|
//========================== Unit Test ======================
|
|
androidx_test_core : "androidx.test:core:1.2.1",
|
|
androidx_test_core_ktx : "androidx.test:core-ktx:1.2.0",
|
|
androidx_unit_ext : "androidx.test.ext:junit:1.1.2",
|
|
androidx_unit_ext_ktx : "androidx.test.ext:junit-ktx:1.1.2",
|
|
androidx_runner : "androidx.test:runner:1.3.0",
|
|
androidx_espresso_core : "androidx.test.espresso:espresso-core:3.3.0",
|
|
|
|
//========================== ProtoBuf =======================
|
|
protoc : !isM1Chip() ? "com.google.protobuf:protoc:3.12.4" : "com.google.protobuf:protoc:3.12.4:osx-x86_64",
|
|
protobuf_java : "com.google.protobuf:protobuf-java:3.12.4",
|
|
protobuf_java_util : "com.google.protobuf:protobuf-java-util:3.12.4",
|
|
|
|
//========================= DataStore ======================
|
|
androidx_datastore_preferences : "androidx.datastore:datastore-preferences:1.0.0",
|
|
androidx_datastore : "androidx.datastore:datastore:1.0.0",
|
|
android_start_up : "com.mogo:android-startup:1.0.1",
|
|
|
|
//========================= Koom ======================
|
|
koomnative : "com.kuaishou.koom:koom-native-leak-static:2.2.0",
|
|
koomxhook : "com.kuaishou.koom:xhook-static:2.2.0",
|
|
koomjava : "com.kuaishou.koom:koom-java-leak-static:2.2.0",
|
|
|
|
//========================= Koom ======================
|
|
recyclerviewadapterhelper : "io.github.cymchad:BaseRecyclerViewAdapterHelper:3.0.4",
|
|
|
|
|
|
//========================= LancetX ===================
|
|
lancetx_runtime : "io.github.knight-zxw:lancet-runtime:10.50.0",
|
|
|
|
lancetx_compiler : "com.mogo.eagle.core.lancetx:compiler:1.0.10",
|
|
|
|
lancetx_compiler_lib : "com.mogo.eagle.core.lancetx:runtime:1.0.5",
|
|
|
|
//========================= autosize ======================
|
|
androidautoSize : 'com.github.JessYanCoding:AndroidAutoSize:v1.2.1',
|
|
|
|
//========================= 扫码机 ======================
|
|
serialport : 'com.mogo.support.serialport:client:1.0.0-alpha5',
|
|
|
|
thread_opt : "com.mogo.thread.opt:lib:10.10.3",
|
|
|
|
weak_network : "com.mogo.weak:network:1.0.1",
|
|
btrace : "com.bytedance.btrace:rhea-core:2.0.0",
|
|
|
|
mofang_runtime : "com.mogo.eagle.core.mofang:runtime:2.0.10",
|
|
log_runtime : "com.mogo.eagle.core.log.record:runtime:1.0.30",
|
|
|
|
// 安全证书
|
|
passport_secret : "com.zhidaoauto:sdk-java:1.0.6-SNAPSHOT",
|
|
|
|
// 主线程卡顿监测
|
|
block_detector : "com.mogo.eagle.core.block:runtime:10.90.60",
|
|
|
|
//======================== google auto-service ===============
|
|
google_auto_service : "com.google.auto.service:auto-service:1.0-rc7",
|
|
|
|
//======================== handler-proxy-runtime ==============
|
|
handler_proxy_runtime : "com.mogo.eagle.core.handler.proxy:runtime:1.0.0"
|
|
]
|
|
android = [
|
|
fLauncherApplicationId : "com.mogo.launcher.f",
|
|
fLauncherAmapApiValue : "ace34d685cc04836c03905e4d1536125",
|
|
compileSdkVersion : 33,
|
|
buildToolsVersion : "29.0.2",
|
|
minSdkVersion : 23,
|
|
targetSdkVersion : 27,
|
|
koomxhook : "com.kuaishou.koom:xhook-static:2.2.0",
|
|
]
|
|
}
|
|
|
|
static boolean isM1Chip() {
|
|
return System.getProperty("os.name").contains("Mac") && System.getProperty("os.arch") == "aarch64"
|
|
} |