@logrocket/react-native 1.56.1 → 1.56.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.
package/README.md CHANGED
@@ -1,6 +1,7 @@
1
1
  # LogRocket React Native Module
2
2
 
3
3
  ## Getting started
4
+
4
5
  `$ npm install @logrocket/react-native --save`
5
6
 
6
7
  If you are using React Native < 0.60, link the package using react-native:
@@ -9,6 +10,7 @@ If you are using React Native < 0.60, link the package using react-native:
9
10
  ### Android
10
11
 
11
12
  Add the maven repository to the `repositories` block of `build.gradle`:
13
+
12
14
  ```
13
15
  maven { url "https://storage.googleapis.com/logrocket-maven/" }
14
16
  ```
@@ -36,7 +38,7 @@ For more details on how to use LogRocket with Expo see the [LogRocket documentat
36
38
  ## Supported Features
37
39
 
38
40
  | Feature | Android | iOS |
39
- | ---------------------------- | ------------------ | ------------------ |
41
+ | ------------------------------------ | ------------------ | ------------------ |
40
42
  | Screen Capture | :heavy_check_mark: | :heavy_check_mark: |
41
43
  | View Redaction | :heavy_check_mark: | :heavy_check_mark: |
42
44
  | Touch Events | :heavy_check_mark: | :heavy_check_mark: |
@@ -61,6 +63,7 @@ Then, when you call `init`, send the `testID` value as part of the `redactionTag
61
63
  To enable only uploads when a wifi connection is active, use the `connectionType` configuration option with the value `WIFI`. Only supported on Android currently.
62
64
 
63
65
  ## Usage
66
+
64
67
  ```javascript
65
68
  import LogRocket from '@logrocket/react-native';
66
69
 
@@ -84,9 +87,9 @@ LogRocket.init('YOUR_APP_ID', {
84
87
  redactionTags: ['RedactionString'],
85
88
  });
86
89
 
87
- LogRocket.getSessionURL((url) => {
88
- console.log("LogRocket session URL: " + url);
89
- })
90
+ LogRocket.getSessionURL(url => {
91
+ console.log('LogRocket session URL: ' + url);
92
+ });
90
93
 
91
94
  LogRocket.identify('12345', {
92
95
  name: 'Rog Locket',
@@ -96,8 +99,8 @@ LogRocket.identify('12345', {
96
99
  LogRocket.captureException(new Error('error'));
97
100
 
98
101
  LogRocket.captureMessage('a custom message', {
99
- tags: { method: 'POST' },
100
- extra: { couponApplied: false, total: 42.99 }
102
+ tags: { method: 'POST' },
103
+ extra: { couponApplied: false, total: 42.99 },
101
104
  });
102
105
 
103
106
  LogRocket.track('PurchaseComplete', {
@@ -105,7 +108,7 @@ LogRocket.track('PurchaseComplete', {
105
108
  productCategory: 'Clothing',
106
109
  productSku: 4887369299,
107
110
  couponApplied: true,
108
- customerSegments: ['aef34b', '97cb20']
111
+ customerSegments: ['aef34b', '97cb20'],
109
112
  });
110
113
 
111
114
  LogRocket.tagPage('Apparel/Sweaters');
@@ -129,7 +132,6 @@ module.exports {
129
132
  };
130
133
  ```
131
134
 
132
-
133
135
  ### iOS
134
136
 
135
137
  To disable the iOS SDK add the following to your project's `react-native.config.js`:
@@ -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.56.1"
16
+ def SDK_VERSION = "1.56.2"
17
17
 
18
18
  def PACKAGE_ROOT_DIR = rootProject.name == 'LogRocket SDK' ? "$rootDir/../packages/@logrocket/react-native" : "$rootDir/..";
19
19
 
@@ -63,6 +63,9 @@ android {
63
63
  sourceCompatibility JavaVersion.VERSION_1_8
64
64
  targetCompatibility JavaVersion.VERSION_1_8
65
65
  }
66
+ buildFeatures {
67
+ buildConfig true
68
+ }
66
69
  }
67
70
 
68
71
  repositories {