capacitor-gleap-plugin 14.0.0 → 14.0.5
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,5 +55,5 @@ 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: '14.0.
|
|
58
|
+
implementation group: 'io.gleap', name: 'gleap-android-sdk', version: '14.0.5'
|
|
59
59
|
}
|
|
@@ -1063,11 +1063,12 @@ public class GleapPlugin extends Plugin {
|
|
|
1063
1063
|
implementation.registerCustomAction(
|
|
1064
1064
|
new CustomActionCallback() {
|
|
1065
1065
|
@Override
|
|
1066
|
-
public void invoke(String message) {
|
|
1066
|
+
public void invoke(String message, String shareToken) {
|
|
1067
1067
|
// called when a custom action from the widget is issued
|
|
1068
1068
|
JSObject data = new JSObject();
|
|
1069
1069
|
data.put("name", "custom-action-called");
|
|
1070
1070
|
data.put("data", message);
|
|
1071
|
+
data.put("shareToken", shareToken);
|
|
1071
1072
|
call.resolve(data);
|
|
1072
1073
|
}
|
|
1073
1074
|
}
|
|
@@ -736,12 +736,19 @@ public class GleapPlugin: CAPPlugin, GleapDelegate {
|
|
|
736
736
|
}
|
|
737
737
|
|
|
738
738
|
func notifyEventUpdate(name: String, data: Any?) {
|
|
739
|
+
notifyEventUpdate(name: name, data: data, shareToken: nil)
|
|
740
|
+
}
|
|
741
|
+
|
|
742
|
+
func notifyEventUpdate(name: String, data: Any?, shareToken: String?) {
|
|
739
743
|
var eventData: PluginCallResultData = [
|
|
740
744
|
"name": name
|
|
741
745
|
];
|
|
742
746
|
if let data = data {
|
|
743
747
|
eventData["data"] = data
|
|
744
748
|
}
|
|
749
|
+
if let shareToken = shareToken {
|
|
750
|
+
eventData["shareToken"] = shareToken
|
|
751
|
+
}
|
|
745
752
|
for (id, callType) in callQueue {
|
|
746
753
|
if let call = bridge?.savedCall(withID: id), callType == .event {
|
|
747
754
|
call.resolve(eventData)
|
|
@@ -749,8 +756,8 @@ public class GleapPlugin: CAPPlugin, GleapDelegate {
|
|
|
749
756
|
}
|
|
750
757
|
}
|
|
751
758
|
|
|
752
|
-
public func customActionCalled(_ customAction: String) {
|
|
753
|
-
notifyEventUpdate(name: "custom-action-called", data: customAction)
|
|
759
|
+
public func customActionCalled(_ customAction: String, withShareToken shareToken: String?) {
|
|
760
|
+
notifyEventUpdate(name: "custom-action-called", data: customAction, shareToken: shareToken)
|
|
754
761
|
}
|
|
755
762
|
|
|
756
763
|
public func widgetClosed() {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "capacitor-gleap-plugin",
|
|
3
|
-
"version": "14.0.
|
|
3
|
+
"version": "14.0.5",
|
|
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": "14.0.
|
|
79
|
+
"gleap": "14.0.9"
|
|
80
80
|
}
|
|
81
81
|
}
|