@logrocket/react-native 1.59.6 → 1.60.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.
@@ -13,7 +13,7 @@
13
13
  def DEFAULT_COMPILE_SDK_VERSION = 33
14
14
  def DEFAULT_MIN_SDK_VERSION = 25
15
15
  def DEFAULT_TARGET_SDK_VERSION = 31
16
- def SDK_VERSION = "1.59.6"
16
+ def SDK_VERSION = "1.60.0"
17
17
 
18
18
  def PACKAGE_ROOT_DIR = rootProject.name == 'LogRocket SDK' ? "$rootDir/../packages/@logrocket/react-native" : "$rootDir/..";
19
19
 
@@ -168,13 +168,24 @@ public class LogRocketNativeModule extends ReactContextBaseJavaModule {
168
168
  @ReactMethod
169
169
  public void shutdown() {
170
170
  try {
171
- SDK.endSession();
171
+ SDK.shutdown();
172
172
  } catch (Throwable th) {
173
173
  this.logger.error("Error while shutting down", th);
174
174
  TelemetryReporter.sendErrorTelemetry(th);
175
175
  }
176
176
  }
177
177
 
178
+ @Keep
179
+ @ReactMethod
180
+ public void endSession() {
181
+ try {
182
+ SDK.endSession();
183
+ } catch (Throwable th) {
184
+ this.logger.error("Error while ending session", th);
185
+ TelemetryReporter.sendErrorTelemetry(th);
186
+ }
187
+ }
188
+
178
189
  @Keep
179
190
  @ReactMethod
180
191
  public void track(String customEventName, ReadableMap eventProperties) {