Skip to content

fix: move inForeground reads/writes to main thread#362

Merged
justin-fiedler merged 2 commits intomainfrom
AMP-77029-update-session-logic-to-prevent-long-sessions
Jun 1, 2023
Merged

fix: move inForeground reads/writes to main thread#362
justin-fiedler merged 2 commits intomainfrom
AMP-77029-update-session-logic-to-prevent-long-sessions

Conversation

@falconandy
Copy link
Contributor

inForeground reads/writes moved to main thread.
The session logic has some differences compared to Amplitude-iOS. I would re-write session logic to match Ampltude-Kotlin/Amplitude-Swift implementation.
For some reason I have a few issues with the Amplitude-Android project on my machine with latest Android Studio: unresolved identifiers in test files, ./gradlew build fails with 204 tests completed, 35 failed (but in Android Studio UI all tests are green).

@falconandy falconandy requested a review from justin-fiedler May 31, 2023 18:30
@falconandy falconandy requested a review from justin-fiedler June 1, 2023 05:42
@justin-fiedler justin-fiedler merged commit 15b4b35 into main Jun 1, 2023
@justin-fiedler justin-fiedler deleted the AMP-77029-update-session-logic-to-prevent-long-sessions branch June 1, 2023 17:20
github-actions bot pushed a commit that referenced this pull request Jun 1, 2023
## [2.39.4](v2.39.3...v2.39.4) (2023-06-01)

### Bug Fixes

* move inForeground reads/writes to main thread ([#362](#362)) ([15b4b35](15b4b35))
@github-actions
Copy link

github-actions bot commented Jun 1, 2023

🎉 This PR is included in version 2.39.4 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants