@posthog/react-native-plugin 2.8.1 → 2.9.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.
@@ -91,7 +91,7 @@ dependencies {
91
91
  //noinspection GradleDynamicVersion
92
92
  implementation "com.facebook.react:react-native:+"
93
93
  implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
94
- implementation "com.posthog:posthog-android:3.63.1"
94
+ implementation "com.posthog:posthog-android:3.64.0"
95
95
 
96
96
  testImplementation "junit:junit:4.13.2"
97
97
  }
@@ -178,6 +178,7 @@ class PosthogReactNativePluginModule(
178
178
 
179
179
  sessionReplay = sessionReplayEnabled
180
180
  sessionReplayConfig.screenshot = true
181
+ sessionReplayConfig.captureTouches = getBoolean(sdkReplayConfig, "captureTouches", true)
181
182
  sessionReplayConfig.captureLogcat = captureLog
182
183
  sessionReplayConfig.throttleDelayMs = throttleDelayMs.toLong()
183
184
  sessionReplayConfig.maskAllImages = maskAllImages
package/ios/Package.swift CHANGED
@@ -31,7 +31,7 @@ let package = Package(
31
31
  dependencies: reactNativeDependencies + [
32
32
  .package(
33
33
  url: "https://github.com/PostHog/posthog-ios.git",
34
- .upToNextMinor(from: "3.73.3")
34
+ .upToNextMinor(from: "3.74.0")
35
35
  ),
36
36
  ],
37
37
  targets: [
@@ -201,6 +201,7 @@ public class PosthogReactNativePlugin: RCTEventEmitter {
201
201
  // sessionReplayEnabled only controls whether recording starts at setup.
202
202
  config.sessionReplay = sessionReplayEnabled
203
203
  config.sessionReplayConfig.screenshotMode = true
204
+ config.sessionReplayConfig.captureTouches = sdkReplayConfig["captureTouches"] as? Bool ?? true
204
205
 
205
206
  let maskAllTextInputs = sdkReplayConfig["maskAllTextInputs"] as? Bool ?? true
206
207
  config.sessionReplayConfig.maskAllTextInputs = maskAllTextInputs
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@posthog/react-native-plugin",
3
- "version": "2.8.1",
3
+ "version": "2.9.0",
4
4
  "description": "PostHog React Native plugin for iOS and Android integrations",
5
5
  "source": "./src/index.tsx",
6
6
  "main": "./lib/commonjs/index.js",
@@ -6,7 +6,7 @@ folly_compiler_flags = '-DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1
6
6
  # Single source of truth for the posthog-ios native dependency version.
7
7
  # Used by both the SPM and CocoaPods resolution paths below; bump this
8
8
  # line when picking up a new posthog-ios release.
9
- posthog_ios_version = '3.73.3'
9
+ posthog_ios_version = '3.74.0'
10
10
 
11
11
  Pod::Spec.new do |s|
12
12
  s.name = "posthog-react-native-plugin"