-
-
Notifications
You must be signed in to change notification settings - Fork 32
fix: add main thread checker for the app lifecycle integration #525
fix: add main thread checker for the app lifecycle integration #525
Conversation
sentry-android-core/src/main/java/io/sentry/android/core/AppLifecycleIntegration.java
Outdated
Show resolved
Hide resolved
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.
LGTM
sentry-android-core/src/main/java/io/sentry/android/core/AppLifecycleIntegration.java
Outdated
Show resolved
Hide resolved
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.
LGTM, maybe we can improve a few things though.
sentry-android-core/src/test/java/io/sentry/android/core/util/MainThreadCheckerTest.kt
Show resolved
Hide resolved
sentry-android-core/src/main/java/io/sentry/android/core/util/MainThreadChecker.java
Show resolved
Hide resolved
sentry-android-core/src/main/java/io/sentry/android/core/DefaultAndroidEventProcessor.java
Show resolved
Hide resolved
sentry-android-core/src/main/java/io/sentry/android/core/AppLifecycleIntegration.java
Outdated
Show resolved
Hide resolved
sentry-android-core/src/main/java/io/sentry/android/core/AppLifecycleIntegration.java
Show resolved
Hide resolved
Will this be a release to npm ? |
Once we release the Android SDK, we bump the react-native SDK's dependency |
When this PR will be released? |
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.
LGTM
I need to sync with the RN SDK, but most probably this week (early as possible) as we know this is a blocker for some users. |
📢 Type of change
📜 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
🔮 Next steps
maybe execute the addObserver on the main Looper