@@ -70,15 +70,6 @@ class Gleap {
7070 }
7171 }
7272
73- /**
74- * Attaches external network logs that get merged with the internal network logs.
75- * @param {* } externalConsoleLogs
76- */
77- static attachNetworkLogs ( externalConsoleLogs ) {
78- GleapNetworkIntercepter . getInstance ( ) . externalConsoleLogs =
79- externalConsoleLogs ;
80- }
81-
8273 /**
8374 * Active the Gleap offline mode.
8475 * @param {* } offlineMode
@@ -228,13 +219,6 @@ class Gleap {
228219 GleapFeedbackButtonManager . getInstance ( ) . toggleFeedbackButton ( show ) ;
229220 }
230221
231- /**
232- * Enables the network logger.
233- */
234- static setNetworkLogFilters ( filters ) {
235- GleapNetworkIntercepter . getInstance ( ) . setFilters ( filters ) ;
236- }
237-
238222 /**
239223 * Sets the app version code.
240224 * @param {string } appVersionCode
@@ -359,54 +343,15 @@ class Gleap {
359343 }
360344 }
361345
362- /**
363- * Reports a bug silently
364- * @param {* } description
365- * @param {* } priority
366- * @param {* } type
367- * @deprecated Please use sendSilentReport instead.
368- */
369- static sendSilentBugReportWithType (
370- description ,
371- priority = "MEDIUM" ,
372- type = "BUG"
373- ) {
374- return Gleap . sendSilentReport (
375- {
376- description : description ,
377- } ,
378- priority ,
379- type
380- ) ;
381- }
382-
383- /**
384- * Reports a bug silently
385- * @param {* } description
386- * @param {* } priority
387- * @deprecated Please use sendSilentReport instead.
388- */
389- static sendSilentBugReport ( description , priority = "MEDIUM" ) {
390- return Gleap . sendSilentReport (
391- {
392- description : description ,
393- } ,
394- priority ,
395- "BUG"
396- ) ;
397- }
398-
399346 /**
400347 * Sends a silent feedback report
401348 * @param {* } formData
402349 * @param {* } priority
403- * @param {* } feedbackType
404350 * @param {* } excludeData
405351 */
406- static sendSilentReport (
352+ static sendSilentCrashReport (
407353 formData ,
408354 priority = "MEDIUM" ,
409- feedbackType = "BUG" ,
410355 excludeData = { }
411356 ) {
412357 const sessionInstance = GleapSession . getInstance ( ) ;
@@ -420,7 +365,7 @@ class Gleap {
420365 }
421366
422367 GleapEventManager . notifyEvent ( "sending-silent-report" ) ;
423- const feedback = new GleapFeedback ( feedbackType , priority , newFormData , true , excludeData ? excludeData : { } ) ;
368+ const feedback = new GleapFeedback ( "CRASH" , priority , newFormData , true , excludeData ? excludeData : { } ) ;
424369 feedback . sendFeedback ( ) . then ( ( ) => {
425370 GleapEventManager . notifyEvent ( "silent-report-sent" ) ;
426371 } ) . catch ( ( error ) => {
0 commit comments