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

Provide ability to pre-conflate scanned advertisements #684

Merged
merged 12 commits into from
Jun 3, 2024
Merged

Provide ability to pre-conflate scanned advertisements #684

merged 12 commits into from
Jun 3, 2024

Conversation

djweber
Copy link
Contributor

@djweber djweber commented May 25, 2024

It was observed in #654 that using the default blocking send under certain conditions on various devices could result in ANRs being triggered when performing scans. This PR provides a way for users to opt in to make the Android scanner's callbackFlow use a non-blocking trySend instead of trySendBlocking, with no change to the existing behavior.

Closes #654

@djweber djweber requested review from twyatt and a team as code owners May 25, 2024 07:55
@djweber djweber requested a review from cedrickcooke May 25, 2024 07:55
@twyatt twyatt added the minor Changes that should bump the MINOR version number label May 27, 2024
@twyatt
Copy link
Member

twyatt commented May 27, 2024

@djweber Looks great! I added commits to your branch with some small changes. Thanks for the contribution! I'll merge after I get another PR approval.

@twyatt twyatt added the android label May 27, 2024
@twyatt twyatt changed the title Make blocking send a configurable setting for the Android scanner Provide preConflate option for Scanner May 27, 2024
@twyatt twyatt changed the title Provide preConflate option for Scanner Provide ability to pre-conflate scanned advertisements May 27, 2024
Copy link
Contributor

@cedrickcooke cedrickcooke left a comment

Choose a reason for hiding this comment

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

Lgtm

@twyatt twyatt merged commit ad45bd3 into JuulLabs:main Jun 3, 2024
3 checks passed
@twyatt
Copy link
Member

twyatt commented Jun 3, 2024

Thanks for the contribution @djweber!
Shipped w/ 0.32.0.

@djweber djweber deleted the djweber/add-non-blocking-send-support branch June 17, 2024 13:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
android minor Changes that should bump the MINOR version number
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Android ANR when collecting advertisements
3 participants