Commit 74f3b938 authored by Robert Hitt's avatar Robert Hitt

Should fix CI build, for realsies this time though

parent 9cf9354c
Pipeline #1035 failed with stages
in 2 minutes and 22 seconds
......@@ -33,6 +33,10 @@ android {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
buildConfigField 'Boolean', 'enableCrashlytics', 'true'
}
debug {
buildConfigField 'Boolean', 'enableCrashlytics', 'false'
}
}
compileOptions {
......
......@@ -8,7 +8,6 @@ import android.content.res.Configuration;
import android.preference.PreferenceManager;
import com.crashlytics.android.Crashlytics;
import com.crashlytics.android.core.CrashlyticsCore;
import com.squareup.leakcanary.LeakCanary;
import io.fabric.sdk.android.Fabric;
......@@ -21,13 +20,8 @@ public class MyApplication extends Application {
public void onCreate() {
super.onCreate();
if(!BuildConfig.DEBUG) {
Fabric.with(this, new Crashlytics.Builder()
.core(new CrashlyticsCore.Builder()
.disabled(BuildConfig.DEBUG)
.build())
.build());
}
if (BuildConfig.enableCrashlytics)
Fabric.with(this, new Crashlytics());
// Set up LeakCanary for memory leak detection
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