From af20a977ef11197178a11e3a6d047967b2a1beae Mon Sep 17 00:00:00 2001 From: Allan Wang Date: Sun, 28 Jul 2019 11:10:01 -0700 Subject: Readd showcase init --- app/src/main/kotlin/com/pitchedapps/frost/FrostApp.kt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'app/src') diff --git a/app/src/main/kotlin/com/pitchedapps/frost/FrostApp.kt b/app/src/main/kotlin/com/pitchedapps/frost/FrostApp.kt index 65c6d463..d6d6faea 100644 --- a/app/src/main/kotlin/com/pitchedapps/frost/FrostApp.kt +++ b/app/src/main/kotlin/com/pitchedapps/frost/FrostApp.kt @@ -114,7 +114,7 @@ class FrostApp : Application() { .thumbnail(old).into(imageView) } }) - if (BuildConfig.DEBUG) + if (BuildConfig.DEBUG) { registerActivityLifecycleCallbacks(object : ActivityLifecycleCallbacks { override fun onActivityPaused(activity: Activity) {} override fun onActivityResumed(activity: Activity) {} @@ -132,6 +132,7 @@ class FrostApp : Application() { L.d { "Activity ${activity.localClassName} created" } } }) + } startKoin { if (BuildConfig.DEBUG) { androidLogger() @@ -142,6 +143,7 @@ class FrostApp : Application() { } private fun initPrefs() { + Showcase.initialize(this, "${BuildConfig.APPLICATION_ID}.showcase") Prefs.initialize(this, "${BuildConfig.APPLICATION_ID}.prefs") KL.shouldLog = { BuildConfig.DEBUG } Prefs.verboseLogging = false -- cgit v1.2.3