mirror of
https://github.com/null2264/yokai.git
synced 2025-06-21 10:44:42 +00:00
chore(deps): Update and Kermit Crashlytics
This commit is contained in:
parent
568f0e8c37
commit
3b2fa5d542
4 changed files with 23 additions and 44 deletions
|
@ -249,7 +249,7 @@ dependencies {
|
|||
implementation(libs.bundles.coil)
|
||||
|
||||
// Logging
|
||||
implementation(libs.kermit)
|
||||
implementation(libs.bundles.logging)
|
||||
|
||||
// Sort
|
||||
implementation(libs.java.nat.sort)
|
||||
|
|
|
@ -22,6 +22,9 @@ import androidx.lifecycle.LifecycleOwner
|
|||
import androidx.lifecycle.ProcessLifecycleOwner
|
||||
import androidx.lifecycle.lifecycleScope
|
||||
import androidx.multidex.MultiDex
|
||||
import co.touchlab.kermit.ExperimentalKermitApi
|
||||
import co.touchlab.kermit.Logger
|
||||
import co.touchlab.kermit.crashlytics.CrashlyticsLogWriter
|
||||
import coil3.ImageLoader
|
||||
import coil3.PlatformContext
|
||||
import coil3.SingletonImageLoader
|
||||
|
@ -70,10 +73,13 @@ open class App : Application(), DefaultLifecycleObserver, SingletonImageLoader.F
|
|||
|
||||
private val disableIncognitoReceiver = DisableIncognitoReceiver()
|
||||
|
||||
@OptIn(ExperimentalKermitApi::class)
|
||||
@SuppressLint("LaunchActivityFromNotification")
|
||||
override fun onCreate() {
|
||||
super<Application>.onCreate()
|
||||
|
||||
if (!BuildConfig.DEBUG) Logger.addLogWriter(CrashlyticsLogWriter())
|
||||
|
||||
// TLS 1.3 support for Android 10 and below
|
||||
if (Build.VERSION.SDK_INT < Build.VERSION_CODES.Q) {
|
||||
Security.insertProviderAt(Conscrypt.newProvider(), 1)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue