Commit 497c3af6 authored by Robert Hitt's avatar Robert Hitt
Browse files

Should fix CI build failing

parent f871ff56
Pipeline #1028 failed with stages
in 2 minutes and 14 seconds
...@@ -8,6 +8,7 @@ import android.content.res.Configuration; ...@@ -8,6 +8,7 @@ import android.content.res.Configuration;
import android.preference.PreferenceManager; import android.preference.PreferenceManager;
import com.crashlytics.android.Crashlytics; import com.crashlytics.android.Crashlytics;
import com.crashlytics.android.core.CrashlyticsCore;
import com.squareup.leakcanary.LeakCanary; import com.squareup.leakcanary.LeakCanary;
import io.fabric.sdk.android.Fabric; import io.fabric.sdk.android.Fabric;
...@@ -19,7 +20,11 @@ public class MyApplication extends Application { ...@@ -19,7 +20,11 @@ public class MyApplication extends Application {
@Override @Override
public void onCreate() { public void onCreate() {
super.onCreate(); super.onCreate();
Fabric.with(this, new Crashlytics()); Fabric.with(this, new Crashlytics.Builder()
.core(new CrashlyticsCore.Builder()
.disabled(BuildConfig.DEBUG)
.build())
.build());
// Set up LeakCanary for memory leak detection // Set up LeakCanary for memory leak detection
if(LeakCanary.isInAnalyzerProcess(this)) { if(LeakCanary.isInAnalyzerProcess(this)) {
......
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 to comment