Created
February 12, 2017 16:12
-
-
Save rekire/c09818db48189fefb7c78ac2a914db7f to your computer and use it in GitHub Desktop.
Firebase crash reporting mock.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
thanks for this!
although I had to change the report method to