capacitor-gleap-plugin 12.0.1 → 12.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/android/build.gradle
CHANGED
|
@@ -55,7 +55,7 @@ dependencies {
|
|
|
55
55
|
testImplementation "junit:junit:$junitVersion"
|
|
56
56
|
androidTestImplementation "androidx.test.ext:junit:$androidxJunitVersion"
|
|
57
57
|
androidTestImplementation "androidx.test.espresso:espresso-core:$androidxEspressoCoreVersion"
|
|
58
|
-
implementation group: 'io.gleap', name: 'gleap-android-sdk', version: '12.0
|
|
58
|
+
implementation group: 'io.gleap', name: 'gleap-android-sdk', version: '12.1.0'
|
|
59
59
|
if (rootProject && rootProject.ext) {
|
|
60
60
|
if (rootProject.ext.targetSdkVersion == 30 || rootProject.ext.compileSdkVersion == 30) {
|
|
61
61
|
implementation( "androidx.appcompat:appcompat:1.3.0") {
|
|
@@ -528,6 +528,44 @@ public class GleapPlugin extends Plugin {
|
|
|
528
528
|
call.resolve(ret);
|
|
529
529
|
}
|
|
530
530
|
|
|
531
|
+
@PluginMethod
|
|
532
|
+
public void openChecklists(PluginCall call) throws GleapNotInitialisedException {
|
|
533
|
+
boolean showBackButton = call.getBoolean("showBackButton");
|
|
534
|
+
|
|
535
|
+
implementation.openChecklists(showBackButton);
|
|
536
|
+
|
|
537
|
+
// Build Json object and resolve success
|
|
538
|
+
JSObject ret = new JSObject();
|
|
539
|
+
ret.put("opened", true);
|
|
540
|
+
call.resolve(ret);
|
|
541
|
+
}
|
|
542
|
+
|
|
543
|
+
@PluginMethod
|
|
544
|
+
public void openChecklist(PluginCall call) throws GleapNotInitialisedException {
|
|
545
|
+
String checklistId = call.getString("checklistId");
|
|
546
|
+
boolean showBackButton = call.getBoolean("showBackButton");
|
|
547
|
+
|
|
548
|
+
implementation.openChecklist(checklistId, showBackButton);
|
|
549
|
+
|
|
550
|
+
// Build Json object and resolve success
|
|
551
|
+
JSObject ret = new JSObject();
|
|
552
|
+
ret.put("opened", true);
|
|
553
|
+
call.resolve(ret);
|
|
554
|
+
}
|
|
555
|
+
|
|
556
|
+
@PluginMethod
|
|
557
|
+
public void startChecklist(PluginCall call) throws GleapNotInitialisedException {
|
|
558
|
+
String outboundId = call.getString("outboundId");
|
|
559
|
+
boolean showBackButton = call.getBoolean("showBackButton");
|
|
560
|
+
|
|
561
|
+
implementation.openChecklist(outboundId, showBackButton);
|
|
562
|
+
|
|
563
|
+
// Build Json object and resolve success
|
|
564
|
+
JSObject ret = new JSObject();
|
|
565
|
+
ret.put("opened", true);
|
|
566
|
+
call.resolve(ret);
|
|
567
|
+
}
|
|
568
|
+
|
|
531
569
|
@PluginMethod
|
|
532
570
|
public void openNews(PluginCall call) throws GleapNotInitialisedException {
|
|
533
571
|
boolean showBackButton = call.getBoolean("showBackButton");
|
|
@@ -536,7 +574,7 @@ public class GleapPlugin extends Plugin {
|
|
|
536
574
|
|
|
537
575
|
// Build Json object and resolve success
|
|
538
576
|
JSObject ret = new JSObject();
|
|
539
|
-
ret.put("
|
|
577
|
+
ret.put("opened", true);
|
|
540
578
|
call.resolve(ret);
|
|
541
579
|
}
|
|
542
580
|
|
package/ios/Plugin/GleapPlugin.m
CHANGED
|
@@ -14,6 +14,9 @@ CAP_PLUGIN(GleapPlugin, "Gleap",
|
|
|
14
14
|
CAP_PLUGIN_METHOD(trackEvent, CAPPluginReturnPromise);
|
|
15
15
|
CAP_PLUGIN_METHOD(trackPage, CAPPluginReturnPromise);
|
|
16
16
|
CAP_PLUGIN_METHOD(sendSilentCrashReport, CAPPluginReturnPromise);
|
|
17
|
+
CAP_PLUGIN_METHOD(openChecklists, CAPPluginReturnPromise);
|
|
18
|
+
CAP_PLUGIN_METHOD(openChecklist, CAPPluginReturnPromise);
|
|
19
|
+
CAP_PLUGIN_METHOD(startChecklist, CAPPluginReturnPromise);
|
|
17
20
|
CAP_PLUGIN_METHOD(open, CAPPluginReturnPromise);
|
|
18
21
|
CAP_PLUGIN_METHOD(openNews, CAPPluginReturnPromise);
|
|
19
22
|
CAP_PLUGIN_METHOD(showSurvey, CAPPluginReturnPromise);
|
|
@@ -353,19 +353,57 @@ public class GleapPlugin: CAPPlugin, GleapDelegate {
|
|
|
353
353
|
])
|
|
354
354
|
}
|
|
355
355
|
|
|
356
|
+
@objc func openChecklists(_ call: CAPPluginCall) {
|
|
357
|
+
let showBackButton = call.getBool("showBackButton") ?? true
|
|
358
|
+
|
|
359
|
+
// Open news
|
|
360
|
+
Gleap.openChecklists(showBackButton)
|
|
361
|
+
|
|
362
|
+
// Provide feedback that it has been success
|
|
363
|
+
call.resolve([
|
|
364
|
+
"opened": true
|
|
365
|
+
])
|
|
366
|
+
}
|
|
367
|
+
|
|
368
|
+
@objc func openChecklist(_ call: CAPPluginCall) {
|
|
369
|
+
let checklistId = call.getString("checklistId") ?? ""
|
|
370
|
+
let showBackButton = call.getBool("showBackButton") ?? true
|
|
371
|
+
|
|
372
|
+
// Open news
|
|
373
|
+
Gleap.openNewsArticle(checklistId, andShowBackButton: showBackButton)
|
|
374
|
+
|
|
375
|
+
// Provide feedback that it has been success
|
|
376
|
+
call.resolve([
|
|
377
|
+
"opened": true
|
|
378
|
+
])
|
|
379
|
+
}
|
|
380
|
+
|
|
381
|
+
@objc func startChecklist(_ call: CAPPluginCall) {
|
|
382
|
+
let outboundId = call.getString("outboundId") ?? ""
|
|
383
|
+
let showBackButton = call.getBool("showBackButton") ?? true
|
|
384
|
+
|
|
385
|
+
// Open news
|
|
386
|
+
Gleap.openNewsArticle(outboundId, andShowBackButton: showBackButton)
|
|
387
|
+
|
|
388
|
+
// Provide feedback that it has been success
|
|
389
|
+
call.resolve([
|
|
390
|
+
"opened": true
|
|
391
|
+
])
|
|
392
|
+
}
|
|
393
|
+
|
|
356
394
|
@objc func openNews(_ call: CAPPluginCall) {
|
|
357
395
|
// Open news
|
|
358
396
|
Gleap.openNews()
|
|
359
397
|
|
|
360
398
|
// Provide feedback that it has been success
|
|
361
399
|
call.resolve([
|
|
362
|
-
"
|
|
400
|
+
"opened": true
|
|
363
401
|
])
|
|
364
402
|
}
|
|
365
403
|
|
|
366
404
|
@objc func openNewsArticle(_ call: CAPPluginCall) {
|
|
367
405
|
let articleId = call.getString("articleId") ?? ""
|
|
368
|
-
let showBackButton = call.getBool("showBackButton") ??
|
|
406
|
+
let showBackButton = call.getBool("showBackButton") ?? true
|
|
369
407
|
|
|
370
408
|
// Open news
|
|
371
409
|
Gleap.openNewsArticle(articleId, andShowBackButton: showBackButton)
|
|
@@ -377,7 +415,7 @@ public class GleapPlugin: CAPPlugin, GleapDelegate {
|
|
|
377
415
|
}
|
|
378
416
|
|
|
379
417
|
@objc func openHelpCenter(_ call: CAPPluginCall) {
|
|
380
|
-
let showBackButton = call.getBool("showBackButton") ??
|
|
418
|
+
let showBackButton = call.getBool("showBackButton") ?? true
|
|
381
419
|
|
|
382
420
|
// Open news
|
|
383
421
|
Gleap.openHelpCenter(showBackButton)
|
|
@@ -390,7 +428,7 @@ public class GleapPlugin: CAPPlugin, GleapDelegate {
|
|
|
390
428
|
|
|
391
429
|
@objc func openHelpCenterArticle(_ call: CAPPluginCall) {
|
|
392
430
|
let articleId = call.getString("articleId") ?? ""
|
|
393
|
-
let showBackButton = call.getBool("showBackButton") ??
|
|
431
|
+
let showBackButton = call.getBool("showBackButton") ?? true
|
|
394
432
|
|
|
395
433
|
// Open news
|
|
396
434
|
Gleap.openHelpCenterArticle(articleId, andShowBackButton: showBackButton)
|
|
@@ -403,7 +441,7 @@ public class GleapPlugin: CAPPlugin, GleapDelegate {
|
|
|
403
441
|
|
|
404
442
|
@objc func openHelpCenterCollection(_ call: CAPPluginCall) {
|
|
405
443
|
let collectionId = call.getString("collectionId") ?? ""
|
|
406
|
-
let showBackButton = call.getBool("showBackButton") ??
|
|
444
|
+
let showBackButton = call.getBool("showBackButton") ?? true
|
|
407
445
|
|
|
408
446
|
// Open news
|
|
409
447
|
Gleap.openHelpCenterCollection(collectionId, andShowBackButton: showBackButton)
|
|
@@ -416,7 +454,7 @@ public class GleapPlugin: CAPPlugin, GleapDelegate {
|
|
|
416
454
|
|
|
417
455
|
@objc func searchHelpCenter(_ call: CAPPluginCall) {
|
|
418
456
|
let term = call.getString("term") ?? ""
|
|
419
|
-
let showBackButton = call.getBool("showBackButton") ??
|
|
457
|
+
let showBackButton = call.getBool("showBackButton") ?? true
|
|
420
458
|
|
|
421
459
|
// Open news
|
|
422
460
|
Gleap.searchHelpCenter(term, andShowBackButton: showBackButton)
|
|
@@ -428,7 +466,7 @@ public class GleapPlugin: CAPPlugin, GleapDelegate {
|
|
|
428
466
|
}
|
|
429
467
|
|
|
430
468
|
@objc func openFeatureRequests(_ call: CAPPluginCall) {
|
|
431
|
-
let showBackButton = call.getBool("showBackButton") ??
|
|
469
|
+
let showBackButton = call.getBool("showBackButton") ?? true
|
|
432
470
|
|
|
433
471
|
// Open news
|
|
434
472
|
Gleap.openFeatureRequests(showBackButton)
|
|
@@ -458,7 +496,7 @@ public class GleapPlugin: CAPPlugin, GleapDelegate {
|
|
|
458
496
|
|
|
459
497
|
@objc func startBot(_ call: CAPPluginCall) {
|
|
460
498
|
let botId = call.getString("botId") ?? ""
|
|
461
|
-
let showBackButton = call.getBool("showBackButton") ??
|
|
499
|
+
let showBackButton = call.getBool("showBackButton") ?? true
|
|
462
500
|
|
|
463
501
|
Gleap.startBot(botId, showBackButton: showBackButton)
|
|
464
502
|
|
|
@@ -470,7 +508,7 @@ public class GleapPlugin: CAPPlugin, GleapDelegate {
|
|
|
470
508
|
|
|
471
509
|
@objc func startFeedbackFlow(_ call: CAPPluginCall) {
|
|
472
510
|
let feedbackFlow = call.getString("feedbackFlow") ?? "bugreporting"
|
|
473
|
-
let showBackButton = call.getBool("showBackButton") ??
|
|
511
|
+
let showBackButton = call.getBool("showBackButton") ?? true
|
|
474
512
|
|
|
475
513
|
Gleap.startFeedbackFlow(feedbackFlow, showBackButton: showBackButton)
|
|
476
514
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "capacitor-gleap-plugin",
|
|
3
|
-
"version": "12.0
|
|
3
|
+
"version": "12.1.0",
|
|
4
4
|
"description": "Gleap SDK for Capacitor is the easiest way to integrate Gleap into your Ionic apps! Achieve better app quality with comprehensive in-app bug reporting & customer feedback for your web-apps and websites. Many thanks to Stephan Nagel (congrapp) for his work on the Gleap capacitor plugin.",
|
|
5
5
|
"main": "dist/plugin.cjs.js",
|
|
6
6
|
"module": "dist/esm/index.js",
|
|
@@ -76,6 +76,6 @@
|
|
|
76
76
|
}
|
|
77
77
|
},
|
|
78
78
|
"dependencies": {
|
|
79
|
-
"gleap": "12.
|
|
79
|
+
"gleap": "12.1.1"
|
|
80
80
|
}
|
|
81
81
|
}
|