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

Send foreground status to the host application and handle extensible Logcat requests #74

Merged
merged 16 commits into from
Oct 5, 2023

Conversation

jmatsu
Copy link
Contributor

@jmatsu jmatsu commented Aug 15, 2023

  • Send foreground/background events to the host application
    • Don't use any lifecycle API from AndroidX but ActivityLifecycleCallback is enough for this use-case.
    • Foreground events may be sent before a valid service connection has been established so buffer and flush are required.
  • Allow to use a capture id from Logcat request


while (iterator.hasNext()) {
Map.Entry<String, Bundle> entry = iterator.next();
invokeAction(entry.getKey(), entry.getValue(), false);
Copy link
Contributor Author

Choose a reason for hiding this comment

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

The current buffer mechanism is relaxed. Enough.

@jmatsu jmatsu requested a review from satsukies August 17, 2023 01:26
@satsukies
Copy link
Member

@jmatsu can I begin review this?

@jmatsu
Copy link
Contributor Author

jmatsu commented Aug 17, 2023

@satsukies Yes, please review the both of this PR and another one. They are related.

Copy link
Member

@satsukies satsukies left a comment

Choose a reason for hiding this comment

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

VisibilityLifecycleCallbacks is amazing 👍 LGTM

@jmatsu jmatsu marked this pull request as ready for review October 5, 2023 07:55
@jmatsu
Copy link
Contributor Author

jmatsu commented Oct 5, 2023

Thank you for your reviews.

@jmatsu jmatsu merged commit e2c9609 into master Oct 5, 2023
@jmatsu jmatsu deleted the feat/capture_prototype branch October 5, 2023 07:55
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.

2 participants