diff --git a/app/.gitignore b/app/.gitignore index 796b96d..315b15d 100644 --- a/app/.gitignore +++ b/app/.gitignore @@ -1 +1,2 @@ /build +crashlytics.properties \ No newline at end of file diff --git a/app/build.gradle b/app/build.gradle index 3465a2a..234780e 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -1,4 +1,19 @@ +buildscript { + repositories { + maven { url 'https://maven.fabric.io/public' } + } + + dependencies { + classpath 'io.fabric.tools:gradle:1.+' + } +} apply plugin: 'com.android.application' +apply plugin: 'io.fabric' + +repositories { + maven { url 'https://maven.fabric.io/public' } +} + apply plugin: 'me.tatarka.retrolambda' android { @@ -56,4 +71,7 @@ dependencies { testCompile 'junit:junit:4.12' annotationProcessor 'com.google.dagger:dagger-compiler:2.11' annotationProcessor 'com.jakewharton:butterknife-compiler:8.7.0' + compile('com.crashlytics.sdk.android:crashlytics:2.8.0@aar') { + transitive = true; + } } diff --git a/app/src/main/java/com/wbrawner/simplemarkdown/MarkdownApplication.java b/app/src/main/java/com/wbrawner/simplemarkdown/MarkdownApplication.java index 93bbb9e..64ec829 100644 --- a/app/src/main/java/com/wbrawner/simplemarkdown/MarkdownApplication.java +++ b/app/src/main/java/com/wbrawner/simplemarkdown/MarkdownApplication.java @@ -1,6 +1,8 @@ package com.wbrawner.simplemarkdown; import android.app.Application; +import com.crashlytics.android.Crashlytics; +import io.fabric.sdk.android.Fabric; /** * Created by billy on 8/22/17. @@ -13,6 +15,9 @@ public class MarkdownApplication extends Application { @Override public void onCreate() { super.onCreate(); + if (!BuildConfig.DEBUG) { + Fabric.with(this, new Crashlytics()); + } component = DaggerAppComponent.builder() .appModule(new AppModule()) .build(); diff --git a/build.gradle b/build.gradle index dc1f0a1..d31f5c8 100644 --- a/build.gradle +++ b/build.gradle @@ -5,7 +5,7 @@ buildscript { jcenter() } dependencies { - classpath 'com.android.tools.build:gradle:2.3.3' + classpath 'com.android.tools.build:gradle:3.0.1' classpath 'me.tatarka:gradle-retrolambda:3.2.3' // NOTE: Do not place your application dependencies here; they belong // in the individual module build.gradle files diff --git a/gradle/wrapper/gradle-wrapper.properties b/gradle/wrapper/gradle-wrapper.properties index efcb07e..e5ec04c 100644 --- a/gradle/wrapper/gradle-wrapper.properties +++ b/gradle/wrapper/gradle-wrapper.properties @@ -1,6 +1,6 @@ -#Tue Jul 25 18:04:23 CDT 2017 +#Tue Nov 28 19:16:56 CST 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.1-all.zip