Repository navigation
feat(android): Add ANR warning breadcrumbs on Android 17+ #6245
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
markushi
wants to merge
19
commits into
main
Choose a base branch
from
markushi/feat/anr-warning-listener
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
19 commits
Select commit
Hold shift + click to select a range
01efed6
build: Switch to JDK 21 and upgrade Mockito, Robolectric and Error Prone
markushi 8ff189d
build: Compile tests for JDK 21 and fix buildSrc JVM target
markushi 222087c
feat(android): Add ANR warning breadcrumbs on Android 17+
markushi 7f86c34
docs(changelog): Add entry for ANR warning breadcrumbs
markushi 18a3504
fix(android): Keep the no-arg AppLifecycleIntegration constructor as …
markushi 5800936
Merge branch 'main' into markushi/feat/anr-warning-listener [pr-sheph…
markushi c6c5bc3
[pr-shepherd] Merge origin/main into markushi/feat/anr-warning-listener
sentry-junior[bot] a9ea1cc
ref(android): Address review comments on ANR warning listener
markushi acaa97c
Merge origin/main into markushi/feat/anr-warning-listener
markushi 6c235cd
docs(changelog): Move ANR warning entry to Unreleased
markushi e9b3b4c
Merge origin/main into markushi/feat/anr-warning-listener
markushi a46e24c
fix(android): Register ANR warning listener outside the lock
markushi 465cce4
Merge origin/main into markushi/feat/anr-warning-listener
markushi b7713e2
Merge remote-tracking branch 'origin/main' into markushi/feat/anr-war…
markushi 4f3d4fc
docs(changelog): Move ANR warning entry to Unreleased
markushi 153f32c
fix(android): Gate ANR description on user info and release scopes on…
markushi b8c340d
Merge branch 'main' into markushi/feat/anr-warning-listener
markushi ed2e0dd
fix(android): Always send the ANR description, the system already red…
markushi 260c9a8
ref(android): Move ANR warnings into AnrWarningListenerIntegration wi…
markushi File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -26,14 +26,15 @@ import org.gradle.work.DisableCachingByDefault | |
| */ | ||
| private val ANDROID_ALL_VERSIONS = | ||
| mapOf( | ||
| 21 to "5.0.2_r3-robolectric-r0", | ||
| 23 to "6.0.1_r3-robolectric-r1", | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. we need to consolidate these in a separate PR. |
||
| 24 to "7.0.0_r1-robolectric-r1", | ||
| 28 to "9-robolectric-4913185-2", | ||
| 29 to "10-robolectric-5803371", | ||
| 30 to "11-robolectric-6757853", | ||
| 31 to "12-robolectric-7732740", | ||
| 33 to "13-robolectric-9030017", | ||
| 35 to "15-robolectric-12650502", | ||
| 35 to "15-robolectric-13954326", | ||
| 37 to "17-robolectric-15733970", | ||
| ) | ||
|
|
||
| /** The instrumentation revision Robolectric appends to every android-all version. */ | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -474,6 +474,7 @@ static void installDefaultIntegrations( | |
| options.addIntegration(AnrIntegrationFactory.create(context, buildInfoProvider)); | ||
|
|
||
| options.addIntegration(new AnrProfilingIntegration()); | ||
| options.addIntegration(new AnrWarningListenerIntegration(context, buildInfoProvider)); | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. shouldn't we only add this on API 37+ ? |
||
|
|
||
| // registerActivityLifecycleCallbacks is only available if Context is an AppContext | ||
| if (context instanceof Application) { | ||
|
|
||
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
are there any implications of adding this to all the test tasks/modules? like does it have any build speed impact?