Repository navigation
Conversation
|
📲 Install BuildsAndroid
|
Keep both current Unreleased changelog entries after #6301 merged.
PR risk: mediumFor commit Main concerns: public contract, reach, data sent to Sentry. Rules that block low also fired:
This label is a hint for reviewers, not an approval. |
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes using default effort and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit b8c340d. Configure here.
…th its own option
runningcode
left a comment
There was a problem hiding this comment.
LGTM! I left some comments that are worth taking a look at before merging!
| private val ANDROID_ALL_VERSIONS = | ||
| mapOf( | ||
| 21 to "5.0.2_r3-robolectric-r0", | ||
| 23 to "6.0.1_r3-robolectric-r1", |
There was a problem hiding this comment.
we need to consolidate these in a separate PR.
|
|
||
| /** | ||
| * Adds an {@code app.anr} breadcrumb for each ANR warning that the system reports through {@link | ||
| * ActivityManager#registerAnrWarningListener} on Android 17 (API 37) and above. The system sends |
There was a problem hiding this comment.
should this class be marked with API 37 so we don't have to supres the new API warnings on eveyr method?
| options.addIntegration(AnrIntegrationFactory.create(context, buildInfoProvider)); | ||
|
|
||
| options.addIntegration(new AnrProfilingIntegration()); | ||
| options.addIntegration(new AnrWarningListenerIntegration(context, buildInfoProvider)); |
There was a problem hiding this comment.
shouldn't we only add this on API 37+ ?
| project.plugins.withId(pluginId) { project.targetBuildJdkForUnitTests() } | ||
| project.plugins.withId(pluginId) { | ||
| project.targetBuildJdkForUnitTests() | ||
| // Robolectric's SDK 37 sandbox (the default, as targetSdk is 37) reflectively writes |
There was a problem hiding this comment.
are there any implications of adding this to all the test tasks/modules? like does it have any build speed impact?

📜 Description
Adds new Integration:
AnrWarningListenerIntegration.On Android 17 (API 37) and above, it subscribes to
ActivityManager.registerAnrWarningListener, and transforms the warnings intoapp.anrbreadcrumbs.The features is enabled by default, but can be disabled via the
setEnableAnrWarningBreadcrumbs()or manifest option.In order for the tests to work, robolectric was bumped along the way.
💡 Motivation and Context
💚 How did you test it?
descriptionon the Android 17 emulator (API 37,CP41.260828.004.A7): a temporary instrumentation test sent ordered foreground broadcasts witham broadcastand readAnrWarningResult.getDescription():dat=in the descriptiontel:+43-660-1234567tel:xxx-xxx-xxxxxxxhttps://user:[email protected]:8443/SECRETPATH?q=SECRETQhttps://example.com:8443/...content://com.example.provider/contacts/42/secretpath?token=SECRETQ#SECRETF+ extrasecret_extra=SECRETEXTRAcontent://com.example.provider/...and(has extras)📝 Checklist
sendDefaultPIIis enabled.🔮 Next steps
app.anrbreadcrumb to the Android breadcrumbs page.🤖 Generated with Claude Code