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 { ...@@ -33,10 +33,9 @@ android {
release { release {
minifyEnabled false minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
buildConfigField 'Boolean', 'enableCrashlytics', 'true'
} }
debug { debug {
buildConfigField 'Boolean', 'enableCrashlytics', 'false' ext.enableCrashlytics = false
} }
} }
compileOptions { compileOptions {
......
...@@ -20,8 +20,7 @@ public class MyApplication extends Application { ...@@ -20,8 +20,7 @@ public class MyApplication extends Application {
public void onCreate() { public void onCreate() {
super.onCreate(); super.onCreate();
if (BuildConfig.enableCrashlytics) Fabric.with(this, new Crashlytics());
Fabric.with(this, new Crashlytics());
// Set up LeakCanary for memory leak detection // Set up LeakCanary for memory leak detection
if(LeakCanary.isInAnalyzerProcess(this)) { if(LeakCanary.isInAnalyzerProcess(this)) {
......
...@@ -6,7 +6,7 @@ buildscript { ...@@ -6,7 +6,7 @@ buildscript {
jcenter() jcenter()
} }
dependencies { 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 'com.neenbedankt.gradle.plugins:android-apt:1.8'
classpath "io.realm:realm-gradle-plugin:3.0.0" classpath "io.realm:realm-gradle-plugin:3.0.0"
classpath 'me.tatarka:gradle-retrolambda:3.3.1' 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 distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists 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