Skip to content
This repository has been archived by the owner on Jun 20, 2021. It is now read-only.

Commit

Permalink
Crashlytics Integration
Browse files Browse the repository at this point in the history
Add integration for Crashlytics tool.
  • Loading branch information
srvrguy committed Oct 8, 2014
1 parent da19a64 commit 89debd2
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -41,3 +41,9 @@ Thumbs.db
# Android Studio
.gradle
build/

##Crashlytics Data
#Stores unique secret key
crashlytics.properties
#Build-unique data
crashlytics-build.properties
1 change: 1 addition & 0 deletions Atarashii/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@
<action android:name="net.somethingdreadful.MAL.action.UPDATE_MEDIA"/>
</intent-filter>
</receiver>
<meta-data android:name="com.crashlytics.ApiKey" android:value="5b41441e0dcb3c428a56660c8be6c8e7e1055667"/>
</application>

</manifest>
12 changes: 12 additions & 0 deletions Atarashii/build.gradle
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -48,6 +58,7 @@ repositories {
maven {
url 'https://raw.github.com/nicolasjafelle/maven-repo/master/'
}
maven { url 'http://download.crashlytics.com/maven' }
}

dependencies {
Expand All @@ -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.+'
}
2 changes: 2 additions & 0 deletions Atarashii/src/net/somethingdreadful/MAL/Home.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package net.somethingdreadful.MAL;

import com.crashlytics.android.Crashlytics;
import java.util.ArrayList;
import java.util.Calendar;

Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit 89debd2

Please sign in to comment.