|
|
|
@ -13,6 +13,7 @@ import kotlinx.coroutines.launch |
|
|
|
import net.pokeranalytics.android.model.migrations.Patcher |
|
|
|
import net.pokeranalytics.android.model.migrations.Patcher |
|
|
|
import net.pokeranalytics.android.model.migrations.PokerAnalyticsMigration |
|
|
|
import net.pokeranalytics.android.model.migrations.PokerAnalyticsMigration |
|
|
|
import net.pokeranalytics.android.model.realm.Session |
|
|
|
import net.pokeranalytics.android.model.realm.Session |
|
|
|
|
|
|
|
import net.pokeranalytics.android.model.utils.CrashLogging |
|
|
|
import net.pokeranalytics.android.model.utils.Seed |
|
|
|
import net.pokeranalytics.android.model.utils.Seed |
|
|
|
import net.pokeranalytics.android.util.FakeDataManager |
|
|
|
import net.pokeranalytics.android.util.FakeDataManager |
|
|
|
import net.pokeranalytics.android.util.PokerAnalyticsLogs |
|
|
|
import net.pokeranalytics.android.util.PokerAnalyticsLogs |
|
|
|
@ -55,7 +56,7 @@ class PokerAnalyticsApplication : Application() { |
|
|
|
|
|
|
|
|
|
|
|
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.N) { |
|
|
|
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.N) { |
|
|
|
val locales = resources.configuration.locales |
|
|
|
val locales = resources.configuration.locales |
|
|
|
FirebaseCrashlytics.getInstance().log("App onCreate. Locales = $locales") |
|
|
|
CrashLogging.log("App onCreate. Locales = $locales") |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if (BuildConfig.DEBUG) { |
|
|
|
if (BuildConfig.DEBUG) { |
|
|
|
@ -67,13 +68,13 @@ class PokerAnalyticsApplication : Application() { |
|
|
|
Timber.d("UserPreferences.defaultCurrency: ${UserDefaults.currency.symbol}") |
|
|
|
Timber.d("UserPreferences.defaultCurrency: ${UserDefaults.currency.symbol}") |
|
|
|
Timber.d("Realm path = ${Realm.getDefaultInstance().path}") |
|
|
|
Timber.d("Realm path = ${Realm.getDefaultInstance().path}") |
|
|
|
|
|
|
|
|
|
|
|
// this.createFakeSessions() |
|
|
|
this.createFakeSessions() |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
Patcher.patchAll(this.applicationContext) |
|
|
|
Patcher.patchAll(this.applicationContext) |
|
|
|
|
|
|
|
|
|
|
|
val locale = Locale.getDefault() |
|
|
|
val locale = Locale.getDefault() |
|
|
|
FirebaseCrashlytics.getInstance().log("Country: ${locale.country}, language: ${locale.language}") |
|
|
|
CrashLogging.log("Country: ${locale.country}, language: ${locale.language}") |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|