Commit 32b7d4f9 by Kunj Gupta

UOFLMA-65: Crashlytics is integrated.

parent 041c2d90
buildscript {
repositories {
maven { url 'https://maven.fabric.io/public' }
}
dependencies {
classpath 'io.fabric.tools:gradle:1.+'
}
}
apply plugin: 'com.android.application' apply plugin: 'com.android.application'
apply plugin: 'io.fabric'
repositories {
maven { url 'https://maven.fabric.io/public' }
}
apply plugin: 'android-apt' apply plugin: 'android-apt'
android { android {
...@@ -48,4 +63,7 @@ dependencies { ...@@ -48,4 +63,7 @@ dependencies {
apt 'com.jakewharton:butterknife-compiler:8.2.1' apt 'com.jakewharton:butterknife-compiler:8.2.1'
compile 'com.android.support:cardview-v7:24.1.1' compile 'com.android.support:cardview-v7:24.1.1'
compile 'com.google.android.gms:play-services-analytics:9.2.0' compile 'com.google.android.gms:play-services-analytics:9.2.0'
compile('com.crashlytics.sdk.android:crashlytics:2.6.2@aar') {
transitive = true;
}
} }
...@@ -81,5 +81,8 @@ ...@@ -81,5 +81,8 @@
<activity <activity
android:name="com.vsoft.uoflservicenow.ui.MyIncidentScreen" android:name="com.vsoft.uoflservicenow.ui.MyIncidentScreen"
android:screenOrientation="portrait"/> android:screenOrientation="portrait"/>
<meta-data
android:name="io.fabric.ApiKey"
android:value="2b0a6e9db28d607fbcf71b8b25f1a0795e3f5b22" />
</application> </application>
</manifest> </manifest>
...@@ -5,8 +5,10 @@ import android.content.Context; ...@@ -5,8 +5,10 @@ import android.content.Context;
import android.net.ConnectivityManager; import android.net.ConnectivityManager;
import android.net.NetworkInfo; import android.net.NetworkInfo;
import com.crashlytics.android.Crashlytics;
import com.google.android.gms.analytics.GoogleAnalytics; import com.google.android.gms.analytics.GoogleAnalytics;
import com.google.android.gms.analytics.Tracker; import com.google.android.gms.analytics.Tracker;
import io.fabric.sdk.android.Fabric;
public class CatalogueApplication extends Application { public class CatalogueApplication extends Application {
...@@ -17,6 +19,7 @@ public class CatalogueApplication extends Application { ...@@ -17,6 +19,7 @@ public class CatalogueApplication extends Application {
@Override @Override
public void onCreate() { public void onCreate() {
super.onCreate(); super.onCreate();
Fabric.with(this, new Crashlytics());
mContext = getApplicationContext(); mContext = getApplicationContext();
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment