@amplitude/plugin-session-replay-react-native 0.2.5 → 0.2.7

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
@@ -69,3 +69,12 @@ import { AmpMaskView } from '@amplitude/plugin-session-replay-react-native';
69
69
  </Text>
70
70
  </AmpMaskView>
71
71
  ```
72
+
73
+ ## Tracking Web Views (Beta)
74
+ Web views are blocked by default and will not be tracked. If you'd like webviews to be tracked, you can manually unmask them by doing the following
75
+
76
+ ```js
77
+ <AmpMaskView mask="amp-unmask" style={{ flex: 1 }}>
78
+ <WebView source={{ uri: 'https://reactnative.dev/' }} style={{ flex: 1 }} />
79
+ </AmpMaskView>
80
+ ```
@@ -16,7 +16,7 @@ Pod::Spec.new do |s|
16
16
 
17
17
  s.source_files = "ios/**/*.{h,m,mm,swift}"
18
18
 
19
- s.dependency 'AmplitudeSessionReplay', '>=0.0.15'
19
+ s.dependency 'AmplitudeSessionReplay', '>=0.1.0'
20
20
 
21
21
  # Use install_modules_dependencies helper to install the dependencies if React Native version >=0.71.0.
22
22
  # See https://github.com/facebook/react-native/blob/febf6b7f33fdb4904669f99d795eba4c0f95d7bf/scripts/cocoapods/new_architecture.rb#L79.
@@ -90,7 +90,7 @@ repositories {
90
90
  def kotlin_version = getExtOrDefault("kotlinVersion")
91
91
 
92
92
  dependencies {
93
- implementation("com.amplitude:session-replay-android:[0.15.5, 1.0.0]")
93
+ implementation("com.amplitude:session-replay-android:[0.16.4, 1.0.0]")
94
94
 
95
95
  // For < 0.71, this will be from the local maven repo
96
96
  // For > 0.71, this will be replaced by `com.facebook.react:react-android:$version` by react gradle plugin
@@ -4,7 +4,7 @@
4
4
 
5
5
  RCT_EXTERN_METHOD(setup:(NSString)apiKey deviceId:(NSString)deviceId sessionId:(nonnull NSNumber)sessionId sampleRate:(float)sampleRate enableRemoteConfig:(BOOL)enableRemoteConfig resolve:(RCTPromiseResolveBlock)resolve reject:(RCTPromiseRejectBlock)reject)
6
6
 
7
- RCT_EXTERN_METHOD(setSessionId:(nonnull NSNumber) resolve:(RCTPromiseResolveBlock)resolve reject:(RCTPromiseRejectBlock)reject)
7
+ RCT_EXTERN_METHOD(setSessionId:(nonnull NSNumber)sessionId resolve:(RCTPromiseResolveBlock)resolve reject:(RCTPromiseRejectBlock)reject)
8
8
 
9
9
  RCT_EXTERN_METHOD(getSessionId:(RCTPromiseResolveBlock)resolve reject:(RCTPromiseRejectBlock)reject)
10
10
 
@@ -4,6 +4,6 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.VERSION = void 0;
7
- const VERSION = '0.2.5';
7
+ const VERSION = '0.2.7';
8
8
  exports.VERSION = VERSION;
9
9
  //# sourceMappingURL=version.js.map
@@ -1,2 +1,2 @@
1
- export const VERSION = '0.2.5';
1
+ export const VERSION = '0.2.7';
2
2
  //# sourceMappingURL=version.js.map
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "0.2.5";
1
+ export declare const VERSION = "0.2.7";
2
2
  //# sourceMappingURL=version.d.ts.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@amplitude/plugin-session-replay-react-native",
3
- "version": "0.2.5",
3
+ "version": "0.2.7",
4
4
  "description": "Amplitude Session Replay plugin for React Native",
5
5
  "keywords": [
6
6
  "analytics",
@@ -92,5 +92,5 @@
92
92
  ]
93
93
  ]
94
94
  },
95
- "gitHead": "ebc0f043b7def80b7a22b71031c24e8957ef7cee"
95
+ "gitHead": "4282675115e45f48afe14fc4fc621f1c3b972dd8"
96
96
  }
package/src/version.ts CHANGED
@@ -1 +1 @@
1
- export const VERSION = '0.2.5';
1
+ export const VERSION = '0.2.7';