|
|
@ -17,12 +17,16 @@ import io.legado.app.help.ThemeConfig.applyDayNight |
|
|
|
import io.legado.app.help.http.cronet.CronetLoader |
|
|
|
import io.legado.app.help.http.cronet.CronetLoader |
|
|
|
import io.legado.app.utils.LanguageUtils |
|
|
|
import io.legado.app.utils.LanguageUtils |
|
|
|
import io.legado.app.utils.defaultSharedPreferences |
|
|
|
import io.legado.app.utils.defaultSharedPreferences |
|
|
|
|
|
|
|
import timber.log.Timber |
|
|
|
|
|
|
|
|
|
|
|
class App : MultiDexApplication() { |
|
|
|
class App : MultiDexApplication() { |
|
|
|
|
|
|
|
|
|
|
|
override fun onCreate() { |
|
|
|
override fun onCreate() { |
|
|
|
super.onCreate() |
|
|
|
super.onCreate() |
|
|
|
CrashHandler(this) |
|
|
|
CrashHandler(this) |
|
|
|
|
|
|
|
if (BuildConfig.DEBUG) { |
|
|
|
|
|
|
|
Timber.plant(Timber.DebugTree()) |
|
|
|
|
|
|
|
} |
|
|
|
//预下载Cronet so |
|
|
|
//预下载Cronet so |
|
|
|
CronetLoader.preDownload() |
|
|
|
CronetLoader.preDownload() |
|
|
|
LanguageUtils.setConfiguration(this) |
|
|
|
LanguageUtils.setConfiguration(this) |
|
|
|