-
Notifications
You must be signed in to change notification settings - Fork 6
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
Send events automatically on application onStop
#77
Conversation
The added constraint of `kotlin-stdlib-jdk7` and `kotlin-stdlib-jdk8` ensures lack of "duplicated class" conflicts. This is required due to unification of jdk7 and jdk8 libraries by Kotlin. See details: https://kotlinlang.org/docs/gradle-configure-project.html#other-ways-to-align-versions
The lint bundled with AGP 7.2.2 has a bug which reports false-positive errors: https://issuetracker.google.com/issues/185418482#comment31
183ecb2
to
605c535
Compare
To fix: `LintClient has been compiled by a more recent version of the Java Runtime (class file version 61.0), this version of the Java Runtime only recognizes class file versions up to 55.0` on CI.
|
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.
👋 @wzieba !
I have reviewed and tested this PR as per the instructions, everything works as expected, good job! 🌟
I have left one question (❓), a suggestion (💡) and one minor (🔍) comment for you to consider. I am not going to approve this PR atm and until we discuss on that question (❓) of mine, but at the same time, I don't wan't to request changes as I am not sure about it too, thus I'll be just commenting for now.
parsely/src/main/java/com/parsely/parselyandroid/ParselyTracker.java
Outdated
Show resolved
Hide resolved
👋 @wzieba ! Took another look at the extra 2 commits added, thanks and everything LGTM, feel free to merge this when you're ready! 🚀 |
Closes: #76
Description
This PR introduces a new behavior of automatically flushing the events queue using
ProcessLifecycleOwner
. This API is used in e.g.AppLifecycleIntegration.kt
from Sentry Android SDK which works similarly to Parse.ly SDK in the sense of observing application lifecycle.At the same time, this PR deprecates manual queue flushing.
How to test
Before
main
POST Data {"events":
logAfter
POST Data {"events":
log is logged imidiatelly after app is moved to the backgroundDependency change report