Modify: 添加网络请求日志拦截器(带UI)

This commit is contained in:
Quyunshuo
2020-08-29 17:13:05 +08:00
parent bc708aff5d
commit bf245d118f
7 changed files with 20 additions and 5 deletions

View File

@ -15,8 +15,14 @@ import com.tencent.bugly.crashreport.CrashReport
*/
open class BaseApplication : Application() {
companion object {
// 全局Context
lateinit var context: Context
}
override fun onCreate() {
super.onCreate()
context = applicationContext
initialize()
}