diff --git a/v4/app/src/main/java/exchange/dydx/trading/DydxApplication.kt b/v4/app/src/main/java/exchange/dydx/trading/DydxApplication.kt index edcc8aff..0633a793 100644 --- a/v4/app/src/main/java/exchange/dydx/trading/DydxApplication.kt +++ b/v4/app/src/main/java/exchange/dydx/trading/DydxApplication.kt @@ -1,26 +1,37 @@ package exchange.dydx.trading import android.app.Application +import android.os.StrictMode import com.facebook.stetho.Stetho import dagger.hilt.android.HiltAndroidApp import exchange.dydx.abacus.jvm.AbacusAndroid -import exchange.dydx.platformui.designSystem.theme.ThemeSettings import exchange.dydx.trading.common.AppConfig import exchange.dydx.trading.common.logger.DydxLogger import timber.log.Timber -import javax.inject.Inject + @HiltAndroidApp class DydxApplication : Application() { - @Inject lateinit var logger: DydxLogger - - @Inject lateinit var themeSettings: ThemeSettings + private val logger = DydxLogger() override fun onCreate() { super.onCreate() if (BuildConfig.DEBUG) { + StrictMode.setThreadPolicy( + StrictMode.ThreadPolicy.Builder() + .detectAll() + .penaltyLog() + .build() + ) + StrictMode.setVmPolicy( + StrictMode.VmPolicy.Builder() + .detectAll() + .penaltyLog() + .build() + ) + Timber.plant( logger.debugTree, logger.woodTree(this),