Modify: 异常上报、权限申请
This commit is contained in:
@ -48,6 +48,7 @@ dependencies {
|
||||
api AndroidX.ConstraintLayout
|
||||
api AndroidX.ActivityKtx
|
||||
api AndroidX.FragmentKtx
|
||||
api AndroidX.MultiDex
|
||||
|
||||
api Kotlin.Kotlin
|
||||
api Kotlin.CoroutinesCore
|
||||
@ -69,6 +70,8 @@ dependencies {
|
||||
api GitHub.RecyclerViewAdapter
|
||||
api GitHub.StatusBar
|
||||
api GitHub.EventBus
|
||||
api GitHub.Bugly
|
||||
api GitHub.PermissionX
|
||||
|
||||
kapt GitHub.GlideCompiler
|
||||
kapt GitHub.ARouteCompiler
|
||||
|
||||
@ -1,9 +1,11 @@
|
||||
package com.quyunshuo.base
|
||||
|
||||
import android.app.Application
|
||||
import android.content.Context
|
||||
import androidx.multidex.MultiDex
|
||||
import com.alibaba.android.arouter.launcher.ARouter
|
||||
import com.quyunshuo.base.utils.SpUtils
|
||||
import me.jessyan.autosize.AutoSizeConfig
|
||||
import com.tencent.bugly.crashreport.CrashReport
|
||||
|
||||
/**
|
||||
* @Author: QuYunShuo
|
||||
@ -34,5 +36,13 @@ open class BaseApplication : Application() {
|
||||
|
||||
// // 屏幕适配 AndroidAutoSize 以横屏高度为基准进行适配
|
||||
// AutoSizeConfig.getInstance().isBaseOnWidth = false
|
||||
|
||||
// Bugly 初始化 第三个参数为SDK调试模式开关
|
||||
CrashReport.initCrashReport(this, "c5a9b1304f", BuildConfig.DEBUG);
|
||||
}
|
||||
|
||||
override fun attachBaseContext(base: Context?) {
|
||||
super.attachBaseContext(base)
|
||||
MultiDex.install(base)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user