-
Notifications
You must be signed in to change notification settings - Fork 51
Add a okToSend
getter to the Analytics class
#79
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
Conversation
Oh very nice 😄 ! We should probably bump the version to 1.1.0 then right since we have exposed a new api? |
Yes. Added to pubspec and changelog, but let me know if you'd prefer to do that part yourself later and I'll remove it. |
You're all good to make those changes, you'll also need to update constants.dart, we send the version of the package to GA as well |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm!
This pulls in the `okToSend` method from dart-lang/tools#79 in the tools repository. Bug: #28633 Change-Id: I512d041750050338699d3635ba426cc0acdd5a20 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/295380 Reviewed-by: Brian Wilkerson <[email protected]> Commit-Queue: Janice Collins <[email protected]> Auto-Submit: Janice Collins <[email protected]>
…nism. This pulls in the `okToSend` method from dart-lang/tools#79 in the tools repository. A cherry pick will pull in several revisions from the tools repository as a result. You can easily browse the affected revisions here: https://github.com/dart-lang/tools/compare/0304fbb..2308c67 Bug: #28633 Cherry-pick: https://dart-review.googlesource.com/c/sdk/+/295380 Change-Id: I512d041750050338699d3635ba426cc0acdd5a20 Fixes: #52044 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/295386 Commit-Queue: Brian Wilkerson <[email protected]> Reviewed-by: Brian Wilkerson <[email protected]>
Bumps [actions/checkout](https://github.com/actions/checkout) from 3.2.0 to 3.3.0. - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](actions/checkout@755da8c...ac59398) --- updated-dependencies: - dependency-name: actions/checkout dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
In order for the analyzer to use the same consent protocol for crash reporting as the rest of the analytics, we have to know dynamically whether or not it is OK to send a crash report. The
_clientShowedMessage
private variable has no getter so it is not possible to reproduce the same check that Analytics uses internally. This small refactor adds a getter to provide a one-stop shop to check whether it is OK to send.