sdk 0.37.2 update for release ()

This commit is contained in:
Akinwale Ariwodola 2019-05-27 10:30:33 +01:00 committed by GitHub
parent 5a737ce38d
commit abeadd858e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
89 changed files with 1982 additions and 928 deletions
src/main/java/io/lbry/browser/reactmodules

View file

@ -53,21 +53,12 @@ public class FirebaseModule extends ReactContextBaseJavaModule {
}
@ReactMethod
public void logException(boolean fatal, String message, ReadableMap payload) {
public void logException(boolean fatal, String message, String error) {
Bundle bundle = new Bundle();
bundle.putString("message", message);
if (payload != null) {
HashMap<String, Object> payloadMap = payload.toHashMap();
for (Map.Entry<String, Object> entry : payloadMap.entrySet()) {
Object value = entry.getValue();
if (value != null) {
bundle.putString(entry.getKey(), entry.getValue().toString());
}
}
}
bundle.putString("error", error);
if (firebaseAnalytics != null) {
firebaseAnalytics.logEvent(fatal ? "exception" : "warning", bundle);
firebaseAnalytics.logEvent(fatal ? "reactjs_exception" : "reactjs_warning", bundle);
}
if (fatal) {