diff options
author | Allan Wang <me@allanwang.ca> | 2017-06-30 20:32:33 -0700 |
---|---|---|
committer | Allan Wang <me@allanwang.ca> | 2017-06-30 20:32:33 -0700 |
commit | 1811531d6934f4eadfca70b30afa2dac76400bef (patch) | |
tree | 7b9a3fec0a840f602ee2be371c9c224211c4b426 /app/src/main/kotlin/com/pitchedapps/frost/FrostApp.kt | |
parent | 8760cb29b8a37d15a1dcba018054d4010b90df21 (diff) | |
download | frost-1811531d6934f4eadfca70b30afa2dac76400bef.tar.gz frost-1811531d6934f4eadfca70b30afa2dac76400bef.tar.bz2 frost-1811531d6934f4eadfca70b30afa2dac76400bef.zip |
Test more billing
Diffstat (limited to 'app/src/main/kotlin/com/pitchedapps/frost/FrostApp.kt')
-rw-r--r-- | app/src/main/kotlin/com/pitchedapps/frost/FrostApp.kt | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/app/src/main/kotlin/com/pitchedapps/frost/FrostApp.kt b/app/src/main/kotlin/com/pitchedapps/frost/FrostApp.kt index a221859f..4dce7d4a 100644 --- a/app/src/main/kotlin/com/pitchedapps/frost/FrostApp.kt +++ b/app/src/main/kotlin/com/pitchedapps/frost/FrostApp.kt @@ -12,8 +12,8 @@ import com.mikepenz.materialdrawer.util.AbstractDrawerImageLoader import com.mikepenz.materialdrawer.util.DrawerImageLoader import com.pitchedapps.frost.facebook.FbCookie import com.pitchedapps.frost.utils.CrashReportingTree -import com.pitchedapps.frost.utils.iab.IAB import com.pitchedapps.frost.utils.Prefs +import com.pitchedapps.frost.utils.iab.IAB import com.raizlabs.android.dbflow.config.FlowConfig import com.raizlabs.android.dbflow.config.FlowManager import io.fabric.sdk.android.Fabric @@ -36,11 +36,7 @@ class FrostApp : Application() { override fun onCreate() { FlowManager.init(FlowConfig.Builder(this).build()) Prefs.initialize(this, "${BuildConfig.APPLICATION_ID}.prefs") - FbCookie() - if (Prefs.installDate == -1L) Prefs.installDate = System.currentTimeMillis() - if (Prefs.identifier == -1) Prefs.identifier = Random().nextInt(Int.MAX_VALUE) - Prefs.lastLaunch = System.currentTimeMillis() -// if (LeakCanary.isInAnalyzerProcess(this)) return + // if (LeakCanary.isInAnalyzerProcess(this)) return // refWatcher = LeakCanary.install(this) if (BuildConfig.DEBUG) { Timber.plant(DebugTree()) @@ -50,10 +46,15 @@ class FrostApp : Application() { Crashlytics.setUserIdentifier(Prefs.frostId) Timber.plant(CrashReportingTree()) } + FbCookie() + if (Prefs.installDate == -1L) Prefs.installDate = System.currentTimeMillis() + if (Prefs.identifier == -1) Prefs.identifier = Random().nextInt(Int.MAX_VALUE) + Prefs.lastLaunch = System.currentTimeMillis() + + super.onCreate() - IAB.setupAsync(this) //Drawer profile loading logic DrawerImageLoader.init(object : AbstractDrawerImageLoader() { override fun set(imageView: ImageView, uri: Uri, placeholder: Drawable, tag: String) { |