Commit 11405d12 authored by Robert Hitt's avatar Robert Hitt

Debug builds actually work now

-And it literally took one line in my Gradle setup, that took 30 seconds
to search for. Last time I tried to fix this it took hours of searching
and I never found a solution. I want to die.
parent 5e34ef5f
......@@ -33,10 +33,9 @@ android {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
buildConfigField 'Boolean', 'enableCrashlytics', 'true'
}
debug {
buildConfigField 'Boolean', 'enableCrashlytics', 'false'
ext.enableCrashlytics = false
}
}
compileOptions {
......
......@@ -20,8 +20,7 @@ public class MyApplication extends Application {
public void onCreate() {
super.onCreate();
if (BuildConfig.enableCrashlytics)
Fabric.with(this, new Crashlytics());
Fabric.with(this, new Crashlytics());
// Set up LeakCanary for memory leak detection
if(LeakCanary.isInAnalyzerProcess(this)) {
......
......@@ -6,7 +6,7 @@ buildscript {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:2.3.1'
classpath 'com.android.tools.build:gradle:3.0.0-alpha3'
classpath 'com.neenbedankt.gradle.plugins:android-apt:1.8'
classpath "io.realm:realm-gradle-plugin:3.0.0"
classpath 'me.tatarka:gradle-retrolambda:3.3.1'
......
#Sun May 07 19:15:28 EDT 2017
#Sat Aug 12 23:04:43 EDT 2017
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-3.3-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-4.0-milestone-1-all.zip
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