Repository navigation
Conversation
Move third-party-derived implementations into io.sentry.vendor namespaces and update internal call sites, tests, attribution, ProGuard rules, and ABI dumps. This keeps vendored origins explicit for Java SDK 9.
🚨 Detected changes in high risk code 🚨High-risk code has higher potential to break the SDK and may be hard to test. To prevent severe bugs, apply the rollout process for releasing such changes and be extra careful when changing and reviewing these files:
|
PR risk: highFor commit Main concerns: public contract, dependencies customers inherit, reach. Rules that block low also fired:
This label is a hint for reviewers, not an approval. |
📲 Install BuildsAndroid
|
| @@ -3,7 +3,7 @@ | |||
| // Licensed under the MIT License. | |||
| // https://github.com/SalomonBrys/ANR-WatchDog/blob/1969075f75f5980e9000eaffbaa13b0daf282dcb/anr-watchdog/src/main/java/com/github/anrwatchdog/ANRError.java | |||
| // The API unnecessary here was removed. | |||
| package io.sentry.android.core; | |||
There was a problem hiding this comment.
can we keep this one in core actually? I don't think it has anything remotely similar with the original ANRError nowadays, so I wouldn't really say it's borrowed anymore.
There was a problem hiding this comment.
This one feels a bit weird that it's called SentryShakeDetector but we put it under vendor 😅 I think we should either name it ShakeDetector or move it out of vendor (depending on how much it differs from the original source)
| public fun rewind ()V | ||
| } | ||
|
|
||
| public final class io/sentry/vendor/aosp/threaddump/ThreadDumpParser { |
There was a problem hiding this comment.
I'm wondering if we should exclude **vendor** from the public API dump? These were not here previously, but now they are here because we moved them from internal
romtsn
left a comment
There was a problem hiding this comment.
I'd address the comments, pre-approving.
One more thing - we should probably create an issue for dotnet to update their bindings after the bump (there's no compile-time error I think)
📜 Description
Consolidates third-party-derived implementations into upstream-oriented
io.sentry.vendor.*namespaces across the core SDK, Android Core, Android Replay, OpenTelemetry bootstrap, and build logic.This also:
THIRD_PARTY_NOTICES.mdscopesThe old package names are removed without forwarding shims because this targets the Java SDK 9 major release. Consumers that directly imported these implementation types must update their imports. ANR events now report
ApplicationNotRespondingunder theio.sentry.vendor.anrwatchdogmodule.💡 Motivation and Context
Vendored implementations currently live across Sentry-owned namespaces, which obscures their upstream ownership and makes attribution, maintenance, and package-level tooling harder to reason about. Grouping them under
io.sentry.vendormakes the boundary explicit while retaining the existing top-level vendor namespace used by Gson and other adapted utilities.The package moves are intentionally grouped by upstream project, such as Tape, Seismic, ANR-WatchDog, Apache Commons Collections, AndroidX, OpenTelemetry, and flutter_screen_recorder.
💚 How did you test it?
make format api./gradlew check📝 Checklist
sendDefaultPIIis enabled.🔮 Next steps
Coordinate rebases for #6779, #6785, and #6666 because they touch files moved by this PR.