Skip to content

Commit

Permalink
only report android crashes in release mode
Browse files Browse the repository at this point in the history
  • Loading branch information
Jag96 committed Oct 10, 2020
1 parent cbdc938 commit fb9084f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
package com.expensify.chat;

import android.app.Application;
import android.content.Context;
import androidx.multidex.MultiDexApplication;
import com.facebook.react.PackageList;
import com.facebook.react.ReactApplication;
import com.lugg.ReactNativeConfig.ReactNativeConfigPackage;
import com.reactnativecommunity.asyncstorage.AsyncStoragePackage;
import com.google.firebase.crashlytics.FirebaseCrashlytics;
import com.facebook.react.ReactInstanceManager;
import com.facebook.react.ReactNativeHost;
import com.facebook.react.ReactPackage;
Expand Down Expand Up @@ -45,9 +43,12 @@ public ReactNativeHost getReactNativeHost() {

@Override
public void onCreate() {
super.onCreate();
SoLoader.init(this, /* native exopackage */ false);
initializeFlipper(this, getReactNativeHost().getReactInstanceManager());
super.onCreate();
SoLoader.init(this, /* native exopackage */ false);
initializeFlipper(this, getReactNativeHost().getReactInstanceManager());
if (BuildConfig.DEBUG) {
FirebaseCrashlytics.getInstance().setCrashlyticsCollectionEnabled(false);
}
}

/**
Expand Down
1 change: 0 additions & 1 deletion firebase.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
{
"react-native": {
"crashlytics_auto_collection_enabled": true,
"crashlytics_disable_auto_disabler": true,
"crashlytics_debug_enabled": false,
"crashlytics_ndk_enabled": true
Expand Down

0 comments on commit fb9084f

Please sign in to comment.