Modify: 添加网络请求日志拦截器(带UI)
This commit is contained in:
@ -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()
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user