Skip to content

Instantly share code, notes, and snippets.

@rekire
Created February 12, 2017 16:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rekire/c09818db48189fefb7c78ac2a914db7f to your computer and use it in GitHub Desktop.
Save rekire/c09818db48189fefb7c78ac2a914db7f to your computer and use it in GitHub Desktop.
Firebase crash reporting mock.
package com.google.firebase.crash;
import android.util.Log;
/**
* Created by René Kilczan on 11.02.17.
*/
public class FirebaseCrash {
public static void log(String log) {
Log.d("FirebaseDebug", log);
}
public static void report(Exception e) {
Log.e("FirebaseDebug", "This crash should be reported to Firebase:", e);
}
public FirebaseCrash getInstance(com.google.firebase.FirebaseApp firebaseApp) {
return new FirebaseCrash();
}
public boolean isEnabled() {
return false;
}
}
@miquelbeltran
Copy link

thanks for this!

although I had to change the report method to

    public static void report(Throwable e) {

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment