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).
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 with204 tests completed, 35 failed
(but in Android Studio UI all tests are green).