@logrocket/react-native 1.62.0 → 2.0.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.62.0"
16
+ def SDK_VERSION = "2.0.0"
17
17
 
18
18
  def PACKAGE_ROOT_DIR = rootProject.name == 'LogRocket SDK' ? "$rootDir/../packages/@logrocket/react-native" : "$rootDir/..";
19
19
 
@@ -492,6 +492,10 @@ public class LogRocketNativeModule extends ReactContextBaseJavaModule {
492
492
  if (config.hasKey("maxCapturedAndroidApiLevel")) {
493
493
  options.setMaxCapturedAndroidApiLevel(config.getInt("maxCapturedAndroidApiLevel"));
494
494
  }
495
+
496
+ if (config.hasKey("enableViewCaptureV2")) {
497
+ options.setEnableViewCaptureV2(config.getBoolean("enableViewCaptureV2"));
498
+ }
495
499
  };
496
500
  }
497
501
 
@@ -16,7 +16,7 @@ Pod::Spec.new do |s|
16
16
  s.source_files = "ios/**/*.{h,c,m,swift}"
17
17
  s.requires_arc = true
18
18
 
19
- s.dependency "LogRocket", "1.62.0"
19
+ s.dependency "LogRocket", "2.0.0"
20
20
  s.dependency "React"
21
21
 
22
22
  if ENV['RCT_NEW_ARCH_ENABLED'] == '1' then
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@logrocket/react-native",
3
3
  "title": "Logrocket Native Module",
4
- "version": "1.62.0",
4
+ "version": "2.0.0",
5
5
  "description": "LogRocket SDK for react-native",
6
6
  "typings": "types.d.ts",
7
7
  "files": [
package/types.d.ts CHANGED
@@ -114,6 +114,10 @@ interface IOptions {
114
114
  * Defualts to 20 milliseconds.
115
115
  */
116
116
  viewCaptureAdditionalWireframeDuration?: number;
117
+ /**
118
+ * Controls whether the new view capture system is enabled. Note that this currently only supported on Android.
119
+ */
120
+ enableViewCaptureV2?: boolean;
117
121
  /**
118
122
  * Controls whether the LogRocket SDK will automatically capture native iOS logs.
119
123
  * Native logs are not captured on Android. This does not affect the capture of console logs.