|
|
|
|
@ -76,15 +76,13 @@ class PokerAnalyticsApplication : Application() { |
|
|
|
|
|
|
|
|
|
if (BuildConfig.DEBUG) { |
|
|
|
|
Timber.d("UserPreferences.defaultCurrency: ${UserDefaults.currency.symbol}") |
|
|
|
|
this.createFakeSessions() |
|
|
|
|
// this.createFakeSessions() |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
CashGameOptimalDurationCalculator.start(true) { |
|
|
|
|
|
|
|
|
|
val hours = it / 3600 / 1000 |
|
|
|
|
|
|
|
|
|
Timber.d("Optimal duration = ${it}, $hours") |
|
|
|
|
} |
|
|
|
|
// CashGameOptimalDurationCalculator.start(true) { |
|
|
|
|
// val hours = it / 3600 / 1000 |
|
|
|
|
// Timber.d("Optimal duration = ${it}, $hours") |
|
|
|
|
// } |
|
|
|
|
|
|
|
|
|
Patcher.patchAll(this.applicationContext) |
|
|
|
|
|
|
|
|
|
@ -99,9 +97,9 @@ class PokerAnalyticsApplication : Application() { |
|
|
|
|
val sessionsCount = realm.where<Session>().count() |
|
|
|
|
realm.close() |
|
|
|
|
|
|
|
|
|
if (sessionsCount < 1000) { |
|
|
|
|
if (sessionsCount < 10) { |
|
|
|
|
GlobalScope.launch { |
|
|
|
|
FakeDataManager.createFakeSessions(500) |
|
|
|
|
FakeDataManager.createFakeSessions(400) |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|