aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/kotlin/com/pitchedapps/frost/FrostApp.kt
diff options
context:
space:
mode:
authorAllan Wang <me@allanwang.ca>2017-05-29 19:47:52 -0700
committerAllan Wang <me@allanwang.ca>2017-05-29 19:47:52 -0700
commit461425eb6054f18cea1990a4117fe8c78e888ddf (patch)
tree98c8d84cfb231479cf88c3cc413b7c4a8366e42b /app/src/main/kotlin/com/pitchedapps/frost/FrostApp.kt
parente33120d454aeb72acc2c1315bddea31dd2f15bb2 (diff)
downloadfrost-461425eb6054f18cea1990a4117fe8c78e888ddf.tar.gz
frost-461425eb6054f18cea1990a4117fe8c78e888ddf.tar.bz2
frost-461425eb6054f18cea1990a4117fe8c78e888ddf.zip
Add icon tabs and webview observables
Diffstat (limited to 'app/src/main/kotlin/com/pitchedapps/frost/FrostApp.kt')
-rw-r--r--app/src/main/kotlin/com/pitchedapps/frost/FrostApp.kt9
1 files changed, 9 insertions, 0 deletions
diff --git a/app/src/main/kotlin/com/pitchedapps/frost/FrostApp.kt b/app/src/main/kotlin/com/pitchedapps/frost/FrostApp.kt
index 4e287ee7..e050f285 100644
--- a/app/src/main/kotlin/com/pitchedapps/frost/FrostApp.kt
+++ b/app/src/main/kotlin/com/pitchedapps/frost/FrostApp.kt
@@ -1,7 +1,12 @@
package com.pitchedapps.frost
import android.app.Application
+import com.pitchedapps.frost.utils.CrashReportingTree
import com.pitchedapps.frost.utils.Prefs
+import io.realm.Realm
+import timber.log.Timber
+import timber.log.Timber.DebugTree
+
/**
* Created by Allan Wang on 2017-05-28.
@@ -13,7 +18,11 @@ class FrostApp : Application() {
}
override fun onCreate() {
+ if (BuildConfig.DEBUG) Timber.plant(DebugTree())
+ else Timber.plant(CrashReportingTree())
+
prefs = Prefs(applicationContext)
+ Realm.init(applicationContext)
super.onCreate()
}
} \ No newline at end of file