aboutsummaryrefslogtreecommitdiff
path: root/app/src/main
diff options
context:
space:
mode:
authorAllan Wang <me@allanwang.ca>2017-06-03 21:34:17 -0700
committerAllan Wang <me@allanwang.ca>2017-06-03 21:34:17 -0700
commit610df8c6d772324095b1c3d2cc17f9c243be6c06 (patch)
tree3d669f6bdd343ab9db8cbc9910e933e23b381fd2 /app/src/main
parent8ec65f55f85c730e97d5521c1443819435b98208 (diff)
downloadfrost-610df8c6d772324095b1c3d2cc17f9c243be6c06.tar.gz
frost-610df8c6d772324095b1c3d2cc17f9c243be6c06.tar.bz2
frost-610df8c6d772324095b1c3d2cc17f9c243be6c06.zip
test crashlytics
Diffstat (limited to 'app/src/main')
-rw-r--r--app/src/main/AndroidManifest.xml4
-rw-r--r--app/src/main/kotlin/com/pitchedapps/frost/StartActivity.kt4
2 files changed, 7 insertions, 1 deletions
diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml
index c09c1209..ae058ff2 100644
--- a/app/src/main/AndroidManifest.xml
+++ b/app/src/main/AndroidManifest.xml
@@ -93,6 +93,7 @@
<activity
android:name=".LoginActivity"
android:theme="@style/AppTheme.NoActionBar" />
+
<receiver
android:name=".services.NotificationReceiver"
android:enabled="true"
@@ -103,6 +104,9 @@
<action android:name="com.pitchedapps.frost.NOTIFICATIONS" />
</intent-filter>
</receiver>
+ <meta-data
+ android:name="io.fabric.ApiKey"
+ android:value="${fabricApiKey}" />
</application>
</manifest> \ No newline at end of file
diff --git a/app/src/main/kotlin/com/pitchedapps/frost/StartActivity.kt b/app/src/main/kotlin/com/pitchedapps/frost/StartActivity.kt
index 936c237a..2f81d387 100644
--- a/app/src/main/kotlin/com/pitchedapps/frost/StartActivity.kt
+++ b/app/src/main/kotlin/com/pitchedapps/frost/StartActivity.kt
@@ -2,9 +2,11 @@ package com.pitchedapps.frost
import android.os.Bundle
import android.support.v7.app.AppCompatActivity
+import com.crashlytics.android.Crashlytics
import com.pitchedapps.frost.dbflow.loadFbCookiesAsync
import com.pitchedapps.frost.utils.L
import com.pitchedapps.frost.utils.launchNewTask
+import io.fabric.sdk.android.Fabric
/**
* Created by Allan Wang on 2017-05-28.
@@ -13,7 +15,7 @@ class StartActivity : AppCompatActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
-
+ Fabric.with(this, Crashlytics())
L.d("Load cookies ${System.currentTimeMillis()}")
loadFbCookiesAsync {
cookies ->