Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .github/workflows/native-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,10 @@ jobs:
working-directory: packages/core/RNSentryAndroidTester
run: ./gradlew testDebugUnitTest

- name: Verify SDK compiles without sentry-android-replay
working-directory: packages/core/RNSentryAndroidTester
run: ./gradlew :RNSentry:compileDebugJavaWithJavac --init-script exclude-replay.init.gradle

- name: Setup KVM
shell: bash
run: |
Expand Down
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@

### Fixes

- Fix Android build failing with `cannot find symbol ReplayIntegration` when `sentry-android-replay` is excluded ([#6803](https://github.com/getsentry/sentry-react-native/pull/6803))
- Preserve already-quoted React Native bundle script paths in the Expo iOS plugin ([#6796](https://github.com/getsentry/sentry-react-native/pull/6796))

### Dependencies
Expand Down

This file was deleted.

13 changes: 13 additions & 0 deletions packages/core/RNSentryAndroidTester/exclude-replay.init.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
// Simulate an app that excludes Session Replay to guard the excluded-replay build path.
//
// Some apps drop `sentry-android-replay` to reduce APK size (see the docs at
// https://docs.sentry.io/platforms/react-native/session-replay/performance-overhead/#excluding-session-replay-from-android).
// When they do, the SDK's Android sources must still compile against the replay
// stubs in `android/libs/replay-stubs.jar` alone. This init script reproduces that
// classpath so CI fails fast if the SDK gains a hard dependency on a non-stubbed
// replay symbol (regression guard for issue #6802).
allprojects {
configurations.all {
exclude group: 'io.sentry', module: 'sentry-android-replay'
}
}

This file was deleted.

Loading