Skip to content
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

fix: relay onLowMemory events to client Observers #1262

Merged
merged 1 commit into from
May 24, 2021

Conversation

lemnik
Copy link
Contributor

@lemnik lemnik commented May 24, 2021

Goal

Relay onLowMemory events to the NDK layer through the client Observable so that it will be included in all NDK reports.

Testing

Included a heavily mocked unit test to ensure that the events are relayed to the client Observables. This task also requires manual testing.

@lemnik lemnik force-pushed the PLAT-6593/fix-lowMemory-on-ndk branch from b59149a to 3039b82 Compare May 24, 2021 12:43
@@ -42,4 +42,6 @@ sealed class StateEvent {
class UpdateOrientation(val orientation: String?) : StateEvent()

class UpdateUser(val user: User) : StateEvent()

class UpdateMemoryTrimEvent(val isLowMemory: Boolean) : StateEvent()
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Note: StateEvent is a public API and is a sealed class

@lemnik lemnik marked this pull request as ready for review May 24, 2021 13:22
@lemnik lemnik merged commit 42c84a4 into next May 24, 2021
@lemnik lemnik deleted the PLAT-6593/fix-lowMemory-on-ndk branch May 24, 2021 13:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants