fix: add main thread checker for the app lifecycle integration by marandaneto · Pull Request #525 · getsentry/sentry-android · GitHub
Skip to content
This repository was archived by the owner on Aug 30, 2023. It is now read-only.

fix: add main thread checker for the app lifecycle integration - #525

Merged
marandaneto merged 7 commits into
getsentry:masterfrom
marandaneto:fix/main-thread-checker
Aug 25, 2020
Merged

fix: add main thread checker for the app lifecycle integration#525
marandaneto merged 7 commits into
getsentry:masterfrom
marandaneto:fix/main-thread-checker

Conversation

@marandaneto

@marandaneto marandaneto commented Aug 24, 2020

Copy link
Copy Markdown
Contributor

📢 Type of change

  • Bugfix
  • New feature
  • Enhancement
  • Refactoring

📜 Description

fix: add main thread checker for the app lifecycle integration
this will make the App. to not crash it, but still won't be able to add the observer, see next steps.

💡 Motivation and Context

#520

💚 How did you test it?

unit test and running on older androidx versions.

📝 Checklist

  • I reviewed submitted code
  • I added tests to verify changes
  • All tests passing
  • No breaking changes

🔮 Next steps

maybe execute the addObserver on the main Looper

Comment thread sentry-core/src/main/java/io/sentry/core/Sentry.java
@marandaneto
marandaneto requested a review from a team August 24, 2020 13:20

@bruno-garcia bruno-garcia left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@philipphofmann philipphofmann left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, maybe we can improve a few things though.

@billnbell

Copy link
Copy Markdown

@bruno-garcia

Copy link
Copy Markdown
Member

Will this be a release to npm ?

Once we release the Android SDK, we bump the react-native SDK's dependency

@haelsisy

Copy link
Copy Markdown

When this PR will be released?

@marandaneto
marandaneto requested review from a team and philipphofmann August 25, 2020 08:26

@philipphofmann philipphofmann left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@marandaneto

Copy link
Copy Markdown
Contributor Author

@marandaneto
marandaneto merged commit 5da4269 into getsentry:master Aug 25, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants