Skip to content

Commit

Permalink
✨ Enable Crashlytics
Browse files Browse the repository at this point in the history
  • Loading branch information
adithya321 committed Mar 6, 2017
1 parent 54af6b9 commit 249c1ae
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 0 deletions.
5 changes: 5 additions & 0 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
*/

apply plugin: 'com.android.application'
apply plugin: 'io.fabric'
apply plugin: 'realm-android'

android {
Expand Down Expand Up @@ -48,6 +49,7 @@ repositories {
maven {
url 'https://github.com/uPhyca/stetho-realm/raw/master/maven-repo'
}
maven { url 'https://maven.fabric.io/public' }
}

dependencies {
Expand Down Expand Up @@ -91,6 +93,9 @@ dependencies {

compile 'com.facebook.stetho:stetho:1.4.2'
compile 'com.uphyca:stetho_realm:2.0.0'
compile('com.crashlytics.sdk.android:crashlytics:2.6.6@aar') {
transitive = true;
}
}

apply plugin: 'com.google.gms.google-services'
3 changes: 3 additions & 0 deletions app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -110,5 +110,8 @@
<activity
android:name=".activities.SearchActivity"
android:theme="@style/EventsTheme" />
<meta-data
android:name="com.crashlytics.ApiKey"
android:value="327685d013652e58a2cb3571746ced9f0a54aab3" />
</application>
</manifest>
Original file line number Diff line number Diff line change
Expand Up @@ -21,17 +21,20 @@
import android.app.Application;
import android.os.StrictMode;

import com.crashlytics.android.Crashlytics;
import com.facebook.stetho.Stetho;
import com.pimp.instincts.utils.RealmHelper;
import com.uphyca.stetho_realm.RealmInspectorModulesProvider;

import io.fabric.sdk.android.Fabric;
import io.realm.Realm;

public class InstinctsApplication extends Application {

@Override
public void onCreate() {
super.onCreate();
Fabric.with(this, new Crashlytics());

if (BuildConfig.DEBUG) {
StrictMode.enableDefaults();
Expand Down
2 changes: 2 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,13 @@
buildscript {
repositories {
jcenter()
maven { url 'https://maven.fabric.io/public' }
}
dependencies {
classpath 'com.android.tools.build:gradle:2.3.0'
classpath 'com.google.gms:google-services:3.0.0'
classpath "io.realm:realm-gradle-plugin:2.3.1"
classpath 'io.fabric.tools:gradle:1.21.6'

// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
Expand Down

0 comments on commit 249c1ae

Please sign in to comment.