react-native-gleapsdk 11.2.1 → 12.0.2

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.
@@ -51,7 +51,7 @@ repositories {
51
51
 
52
52
  dependencies {
53
53
  implementation "com.facebook.react:react-native:+"
54
- implementation group: 'io.gleap', name: 'gleap-android-sdk', version: '11.2.0'
54
+ implementation group: 'io.gleap', name: 'gleap-android-sdk', version: '12.0.2'
55
55
 
56
56
 
57
57
  if(rootProject && rootProject.ext) {
@@ -104,6 +104,12 @@ public class GleapsdkModule extends ReactContextBaseJavaModule {
104
104
  Gleap.getInstance().setApplicationType(APPLICATIONTYPE.REACTNATIVE);
105
105
  Gleap.initialize(sdkKey, activity.getApplication());
106
106
 
107
+ try {
108
+ JSONObject body = new JSONObject();
109
+ body.put("page", "MainPage");
110
+ Gleap.getInstance().trackEvent("pageView", body);
111
+ } catch (Exception ignore) {}
112
+
107
113
  Gleap.getInstance().setWidgetOpenedCallback(new WidgetOpenedCallback() {
108
114
  @Override
109
115
  public void invoke() {
package/ios/Gleapsdk.m CHANGED
@@ -39,6 +39,9 @@ RCT_EXPORT_METHOD(initialize:(NSString *)token)
39
39
  [self initSDK];
40
40
  [Gleap setAutoActivationMethodsDisabled];
41
41
  [Gleap initializeWithToken: token];
42
+ [Gleap trackEvent: @"pageView" withData: @{
43
+ @"page": @"MainPage"
44
+ }];
42
45
  });
43
46
  }
44
47
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-gleapsdk",
3
- "version": "11.2.1",
3
+ "version": "12.0.2",
4
4
  "description": "Know exactly why and how a bug happened. Get reports with screenshots, live action replays and all of the important metadata every time.",
5
5
  "main": "lib/commonjs/index",
6
6
  "module": "lib/module/index",
@@ -16,5 +16,5 @@ Pod::Spec.new do |s|
16
16
  s.source_files = "ios/**/*.{h,m,mm}"
17
17
 
18
18
  s.dependency "React-Core"
19
- s.dependency "Gleap", "11.2.1"
19
+ s.dependency "Gleap", "12.0.1"
20
20
  end