aboutsummaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorAllan Wang <me@allanwang.ca>2019-07-28 11:10:01 -0700
committerAllan Wang <me@allanwang.ca>2019-07-28 11:10:01 -0700
commitaf20a977ef11197178a11e3a6d047967b2a1beae (patch)
tree470f61a73e08532635cb81bd74b7c055f4bccc7a /app
parent4744662f5cbd1d40b91503ab4242ff5b9f423d9d (diff)
downloadfrost-af20a977ef11197178a11e3a6d047967b2a1beae.tar.gz
frost-af20a977ef11197178a11e3a6d047967b2a1beae.tar.bz2
frost-af20a977ef11197178a11e3a6d047967b2a1beae.zip
Readd showcase init
Diffstat (limited to 'app')
-rw-r--r--app/src/main/kotlin/com/pitchedapps/frost/FrostApp.kt4
1 files changed, 3 insertions, 1 deletions
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