From e55a1e1117f8e9291fbbb088b9c09bb4c5d8f673 Mon Sep 17 00:00:00 2001 From: kodolok Date: Fri, 3 Jan 2020 19:39:58 +0100 Subject: [PATCH] feat(firebase-x): add missing methods, parameter (#3273) * feat(firebase-x): add colletion enable methods add setCrashlyticsCollectionEnabled(), setPerformanceCollectionEnabled() * feat(firebase-x): add parameter to logError Add an optional stackTrace parameter to Crashlytics logError() * fixed whitespace errors --- src/@ionic-native/plugins/firebase-x/index.ts | 23 ++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) diff --git a/src/@ionic-native/plugins/firebase-x/index.ts b/src/@ionic-native/plugins/firebase-x/index.ts index 1e4846ae8..fb94a7468 100644 --- a/src/@ionic-native/plugins/firebase-x/index.ts +++ b/src/@ionic-native/plugins/firebase-x/index.ts @@ -302,6 +302,26 @@ export class FirebaseX extends IonicNativePlugin { return; } + /** + * Enable/disable Crashlytics collection. + * @param {boolean} enabled + * @returns {Promise} + */ + @Cordova() + setCrashlyticsCollectionEnabled(enabled: boolean): Promise { + return; + } + + /** + * Enable/disable performance collection. + * @param {boolean} enabled + * @returns {Promise} + */ + @Cordova() + setPerformanceCollectionEnabled(enabled: boolean): Promise { + return; + } + /** * Log an event using Analytics * @param {string} type @@ -387,10 +407,11 @@ export class FirebaseX extends IonicNativePlugin { * The error message will appear in the Logs section of the non-fatal error event. * Also logs the error message to the native device console. * @param {string} error + * @param {object} (optional) a stack trace generated by stacktrace.js * @return {Promise} */ @Cordova() - logError(error: string): Promise { + logError(error: string, stackTrace?: object): Promise { return; }