-
Notifications
You must be signed in to change notification settings - Fork 29.7k
Swap crash reporting with unified analytics #147296
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
Swap crash reporting with unified analytics #147296
Conversation
| logger = BufferLogger.test(); | ||
| fs = MemoryFileSystem.test(); | ||
| testUsage = TestUsage(); | ||
| fakeAnalytics = getInitializedFakeAnalyticsInstance( |
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.
What about instead we just use our own implementation of this class, such as:
class FakeAnalytics extends Fake implements Analytics {
const FakeAnalytics({this.okToSend = true});
@override
bool okToSend;
@override
void suppressTelemetry() => okToSend = false;
}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.
I haven't done a deep dive on getInitializedFakeAnalyticsInstance, but I am inclined to agree with this suggestion. Speaking generally, I think it's good for a test to fake as little as needed so that it's more clear as to what that test depends upon.
|
We should land this before GA3 is taken offline |
|
I'll be remaking this PR since the cla/google check is failing. |
Fixes:
package:unified_analyticsto decide if we should send a crash report #147260Pre-launch Checklist
///).If you need help, consider asking for advice on the #hackers-new channel on Discord.