diff --git a/.gitignore b/.gitignore
index 79a13141..00dbc0da 100644
--- a/.gitignore
+++ b/.gitignore
@@ -41,3 +41,9 @@ Thumbs.db
# Android Studio
.gradle
build/
+
+##Crashlytics Data
+#Stores unique secret key
+crashlytics.properties
+#Build-unique data
+crashlytics-build.properties
diff --git a/Atarashii/AndroidManifest.xml b/Atarashii/AndroidManifest.xml
index 2c607c0a..3b8c1c89 100644
--- a/Atarashii/AndroidManifest.xml
+++ b/Atarashii/AndroidManifest.xml
@@ -84,6 +84,7 @@
+
diff --git a/Atarashii/build.gradle b/Atarashii/build.gradle
index 7415d5e8..5ed1d3e8 100644
--- a/Atarashii/build.gradle
+++ b/Atarashii/build.gradle
@@ -1,8 +1,18 @@
+buildscript {
+ repositories {
+ maven { url 'http://download.crashlytics.com/maven' }
+ }
+
+ dependencies {
+ classpath 'com.crashlytics.tools.gradle:crashlytics-gradle:1.+'
+ }
+}
task wrapper(type: Wrapper) {
gradleVersion = '1.12'
}
apply plugin: 'android'
+apply plugin: 'crashlytics'
android {
compileSdkVersion 19
@@ -48,6 +58,7 @@ repositories {
maven {
url 'https://raw.github.com/nicolasjafelle/maven-repo/master/'
}
+ maven { url 'http://download.crashlytics.com/maven' }
}
dependencies {
@@ -60,4 +71,5 @@ dependencies {
compile 'org.apache.commons:commons-lang3:3.2.1'
compile 'com.squareup.picasso:picasso:2.2.0'
compile 'com.sherlock:navigationdrawer:+@aar'
+ compile 'com.crashlytics.android:crashlytics:1.+'
}
diff --git a/Atarashii/src/net/somethingdreadful/MAL/Home.java b/Atarashii/src/net/somethingdreadful/MAL/Home.java
index 2eb7809f..97bb7358 100644
--- a/Atarashii/src/net/somethingdreadful/MAL/Home.java
+++ b/Atarashii/src/net/somethingdreadful/MAL/Home.java
@@ -1,5 +1,6 @@
package net.somethingdreadful.MAL;
+import com.crashlytics.android.Crashlytics;
import java.util.ArrayList;
import java.util.Calendar;
@@ -95,6 +96,7 @@ public class Home extends BaseActionBarSearchView
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
+ Crashlytics.start(this);
context = getApplicationContext();
mPrefManager = new PrefManager(context);