Skip to content

Commit 8287f8f

Browse files
authored
RN: Adds instructions for excluding the sentry-android-replay module from android targets (#14963)
<!-- Use this checklist to make sure your PR is ready for merge. You may delete any sections you don't need. --> ## DESCRIBE YOUR PR *Tell us what you're changing and why. If your PR **resolves an issue**, please link it so it closes automatically.* Adds instructions for excluding the sentry-android-replay module from android targets ## IS YOUR CHANGE URGENT? Help us prioritize incoming PRs by letting us know when the change needs to go live. - [ ] Urgent deadline (GA date, etc.): <!-- ENTER DATE HERE --> - [ ] Other deadline: <!-- ENTER DATE HERE --> - [ ] None: Not urgent, can wait up to 1 week+ The related PR getsentry/sentry-react-native#5174 has been released in https://github.com/getsentry/sentry-react-native/releases/tag/7.1.0 ## SLA - Teamwork makes the dream work, so please add a reviewer to your PRs. - Please give the docs team up to 1 week to review your PR unless you've added an urgent due date to it. Thanks in advance for your help! ## PRE-MERGE CHECKLIST *Make sure you've checked the following before merging your changes:* - [ ] Checked Vercel preview for correctness, including links - [ ] PR was reviewed and approved by any necessary SMEs (subject matter experts) - [ ] PR was reviewed and approved by a member of the [Sentry docs team](https://github.com/orgs/getsentry/teams/docs) ## LEGAL BOILERPLATE <!-- Sentry employees and contractors can delete or ignore this section. --> Look, I get it. The entity doing business as "Sentry" was incorporated in the State of Delaware in 2015 as Functional Software, Inc. and is gonna need some rights from me in order to utilize my contributions in this here PR. So here's the deal: I retain all rights, title and interest in and to my contributions, and by keeping this boilerplate intact I confirm that Sentry can use, modify, copy, and redistribute my contributions, under Sentry's choice of terms. ## EXTRA RESOURCES - [Sentry Docs contributor guide](https://docs.sentry.io/contributing/)
1 parent 1f2590d commit 8287f8f

1 file changed

Lines changed: 14 additions & 1 deletion

File tree

docs/platforms/react-native/session-replay/performance-overhead.mdx

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,4 +59,17 @@ To minimize the performance impact of the Replay SDK on iOS and Android, conside
5959
});
6060
```
6161

62-
Note that the default value for `replaysSessionQuality` is `medium` and a `high` quality setting is also available.
62+
Note that the default value for `replaysSessionQuality` is `medium` and a `high` quality setting is also available.
63+
64+
## Excluding Session Replay from Android
65+
66+
If you don’t plan to use Session Replay, you can exclude the sentry-android-replay module from your Android targets to reduce the bundle size by about 40KB compressed and 80KB uncompressed. Here's how you can do it:
67+
68+
```gradle
69+
// from the android's root build.gradle file
70+
subprojects {
71+
configurations.all {
72+
exclude group: 'io.sentry', module: 'sentry-android-replay'
73+
}
74+
}
75+
```

0 commit comments

Comments
 (0)