feat: 升级第三方依赖版本,修改Application第三方初始化策略,添加ARouter路由自动注册插件,减少初始化耗时

This commit is contained in:
Quyunshuo
2021-03-15 17:28:18 +08:00
parent 58dda68730
commit 1852fe44b2
14 changed files with 228 additions and 87 deletions

View File

@ -1,15 +0,0 @@
package com.quyunshuo.androidbaseframemvvm.build
/**
* 项目相关参数配置
*/
object BuildConfig {
const val compileSdkVersion = 30
const val buildToolsVersion = "30.0.1"
const val applicationId = "com.quyunshuo.androidbaseframemvvm"
const val minSdkVersion = 21
const val targetSdkVersion = 30
const val versionCode = 1
const val versionName = "1.0"
const val isAppMode = false
}

View File

@ -18,8 +18,8 @@ object Version {
const val Junit = "4.13"
// Kotlin----------------------------------------------------------------
const val Kotlin = "1.4.0"
const val Coroutines = "1.3.7" // 协程
const val Kotlin = "1.4.31" // Kotlin
const val Coroutines = "1.4.3" // 协程
// JetPack---------------------------------------------------------------
const val LifecycleViewModel = "2.2.0"
@ -35,12 +35,13 @@ object Version {
const val MMKV = "1.2.2" // 腾讯 MMKV 替代SP
const val AutoSize = "1.2.1" // 屏幕适配
const val Glide = "4.11.0" // Glide
const val ARoute = "1.5.0" // 阿里路由
const val ARouteCompiler = "1.2.2" // 阿里路由 APT
const val ARoute = "1.5.1" // 阿里路由
const val ARouteCompiler = "1.5.1" // 阿里路由 APT
const val RecyclerViewAdapter = "3.0.4" // RecyclerViewAdapter
const val StatusBar = "1.5.1" // 状态栏
const val EventBus = "3.2.0" // 事件总线
const val Bugly = "3.2.33" // Bugly 异常上报
const val Bugly = "3.3.7" // Bugly 异常上报
const val BuglyNative = "3.8.0" // Bugly native异常上报
const val PermissionX = "1.3.0" // 权限申请
const val LeakCanary = "2.4" // 检测内存泄漏
const val Chuck = "1.1.0" // OkHttp 请求信息拦截器(UI)
@ -99,6 +100,7 @@ object GitHub {
const val EventBus = "org.greenrobot:eventbus:${Version.EventBus}"
const val EventBusAPT = "org.greenrobot:eventbus-annotation-processor:${Version.EventBus}"
const val Bugly = "com.tencent.bugly:crashreport:${Version.Bugly}"
const val BuglyNative = "com.tencent.bugly:nativecrashreport:${Version.BuglyNative}"
const val PermissionX = "com.permissionx.guolindev:permissionx:${Version.PermissionX}"
const val LeakCanary = "com.squareup.leakcanary:leakcanary-android:${Version.LeakCanary}"
const val Chuck = "com.readystatesoftware.chuck:library:${Version.Chuck}"

View File

@ -0,0 +1,23 @@
package com.quyunshuo.androidbaseframemvvm.build
/**
* 项目相关参数配置
*/
object ProjectBuildConfig {
const val compileSdkVersion = 30
const val buildToolsVersion = "30.0.1"
const val applicationId = "com.quyunshuo.androidbaseframemvvm"
const val minSdkVersion = 21
const val targetSdkVersion = 30
const val versionCode = 1
const val versionName = "1.0"
const val isAppMode = false
/**
* 项目当前的版本状态
* 该状态直接反映当前App是测试版 还是正式版 或者预览版
* 打包前记得修改该状态
* 正式版:RELEASE、预览版(α)-内部测试版:ALPHA、测试版(β)-公开测试版:BETA
*/
const val versionStatus = /*"VERSION_STATUS_RELEASE"*/ "VERSION_STATUS_ALPHA" /*"VERSION_STATUS_BETA"*/
}

View File

@ -4,6 +4,7 @@ package com.quyunshuo.androidbaseframemvvm.build
* 项目级插件管理
*/
object ProjectPluginManager {
const val AndroidToolsPlugin = "com.android.tools.build:gradle:4.0.1"
const val KotlinPlugin = "org.jetbrains.kotlin:kotlin-gradle-plugin:1.4.0"
const val AndroidToolsPlugin = "com.android.tools.build:gradle:4.1.2"
const val KotlinPlugin = "org.jetbrains.kotlin:kotlin-gradle-plugin:1.4.31"
const val ARouterRegister = "com.alibaba:arouter-register:1.0.2"
}

View File

@ -0,0 +1,13 @@
package com.quyunshuo.androidbaseframemvvm.build
/**
* 存放需要存在本地的SDK的密钥
*/
object SDKKeyConfig {
/**
* Bugly APP_ID
* 正式环境需要与测试环境分开 正式ID:""、测试ID:""
*/
const val BUGLY_APP_ID = ""
}