diff options
author | Allan Wang <me@allanwang.ca> | 2017-05-30 01:03:01 -0700 |
---|---|---|
committer | Allan Wang <me@allanwang.ca> | 2017-05-30 01:03:01 -0700 |
commit | 4c44dbc9933bd726c1da0bf326102835c4974d6b (patch) | |
tree | 18be2954a53c292eef132f9a3dc630c4071c7a9b /app/src/main/kotlin/com/pitchedapps/frost/FrostApp.kt | |
parent | 461425eb6054f18cea1990a4117fe8c78e888ddf (diff) | |
download | frost-4c44dbc9933bd726c1da0bf326102835c4974d6b.tar.gz frost-4c44dbc9933bd726c1da0bf326102835c4974d6b.tar.bz2 frost-4c44dbc9933bd726c1da0bf326102835c4974d6b.zip |
create retrofacebook and token retrieval
Diffstat (limited to 'app/src/main/kotlin/com/pitchedapps/frost/FrostApp.kt')
-rw-r--r-- | app/src/main/kotlin/com/pitchedapps/frost/FrostApp.kt | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/app/src/main/kotlin/com/pitchedapps/frost/FrostApp.kt b/app/src/main/kotlin/com/pitchedapps/frost/FrostApp.kt index e050f285..0fb4e7db 100644 --- a/app/src/main/kotlin/com/pitchedapps/frost/FrostApp.kt +++ b/app/src/main/kotlin/com/pitchedapps/frost/FrostApp.kt @@ -1,6 +1,8 @@ package com.pitchedapps.frost import android.app.Application +import com.pitchedapps.frost.facebook.retro.FrostApi +import com.pitchedapps.frost.facebook.retro.IFrost import com.pitchedapps.frost.utils.CrashReportingTree import com.pitchedapps.frost.utils.Prefs import io.realm.Realm @@ -13,15 +15,11 @@ import timber.log.Timber.DebugTree */ class FrostApp : Application() { - companion object { - lateinit var prefs: Prefs - } - override fun onCreate() { if (BuildConfig.DEBUG) Timber.plant(DebugTree()) else Timber.plant(CrashReportingTree()) - - prefs = Prefs(applicationContext) + Prefs(applicationContext) + FrostApi(applicationContext) Realm.init(applicationContext) super.onCreate() } |