Skip to content

Commit 64dd03f

Browse files
authored
chore(android): Update Session Replay integration instructions (#16595)
Sometimes customers have only sentry-android-core specified and get confused as to why replay is not being captured even though they have specified the sample rates.
1 parent 3de0df8 commit 64dd03f

File tree

1 file changed

+18
-2
lines changed
  • docs/platforms/android/session-replay

1 file changed

+18
-2
lines changed

docs/platforms/android/session-replay/index.mdx

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,13 +37,29 @@ If you have the SDK installed without the Sentry Gradle Plugin, you can update t
3737

3838
```groovy {filename:app/build.gradle}
3939
dependencies {
40-
implementation 'io.sentry:sentry-android:{{@inject packages.version('sentry.java.android', '7.12.0') }}'
40+
implementation 'io.sentry:sentry-android:{{@inject packages.version('sentry.java.android', '7.12.0') }}'
4141
}
4242
```
4343

4444
```kotlin {filename:app/build.gradle.kts}
4545
dependencies {
46-
implementation("io.sentry:sentry-android:{{@inject packages.version('sentry.java.android', '7.12.0') }}")
46+
implementation("io.sentry:sentry-android:{{@inject packages.version('sentry.java.android', '7.12.0') }}")
47+
}
48+
```
49+
50+
If you're not using the `sentry-android` dependency, you'd need to specify the Session Replay module directly in the `build.gradle` through:
51+
52+
```groovy {filename:app/build.gradle}
53+
dependencies {
54+
implementation 'io.sentry:sentry-android-core:{{@inject packages.version('sentry.java.android', '7.12.0') }}'
55+
implementation 'io.sentry:sentry-android-replay:{{@inject packages.version('sentry.java.android', '7.12.0') }}'
56+
}
57+
```
58+
59+
```kotlin {filename:app/build.gradle.kts}
60+
dependencies {
61+
implementation("io.sentry:sentry-android-core:{{@inject packages.version('sentry.java.android', '7.12.0') }}")
62+
implementation("io.sentry:sentry-android-replay:{{@inject packages.version('sentry.java.android', '7.12.0') }}")
4763
}
4864
```
4965

0 commit comments

Comments
 (0)