Unverified Commit 26a17a4c authored by Polina Cherkasova's avatar Polina Cherkasova Committed by GitHub

Upgrade leak_tracker. (#130528)

parent 7abdb866
......@@ -22,8 +22,8 @@ dev_dependencies:
flutter_goldens:
sdk: flutter
fake_async: 1.3.1
leak_tracker: 7.0.8
leak_tracker_testing: 1.0.0
leak_tracker: 8.0.0
leak_tracker_testing: 1.0.2
_fe_analyzer_shared: 62.0.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
analyzer: 6.0.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
......@@ -74,4 +74,4 @@ dev_dependencies:
webkit_inspection_protocol: 1.2.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
yaml: 3.1.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
# PUBSPEC CHECKSUM: 5af4
# PUBSPEC CHECKSUM: c3ef
......@@ -23,7 +23,7 @@ Future<void> testExecutable(FutureOr<void> Function() testMain) {
// receive the event.
WidgetController.hitTestWarningShouldBeFatal = true;
LeakTrackingTestConfig.warnForNonSupportedPlatforms = false;
LeakTrackerGlobalSettings.warnForNonSupportedPlatforms = false;
// Enable golden file testing using Skia Gold.
return flutter_goldens.testExecutable(testMain);
......
......@@ -99,7 +99,7 @@ Future<void> _withFlutterLeakTracking(
) async {
// Leak tracker does not work for web platform.
if (kIsWeb) {
final bool shouldPrintWarning = !_webWarningPrinted && LeakTrackingTestConfig.warnForNonSupportedPlatforms;
final bool shouldPrintWarning = !_webWarningPrinted && LeakTrackerGlobalSettings.warnForNonSupportedPlatforms;
if (shouldPrintWarning) {
_webWarningPrinted = true;
debugPrint('Leak tracking is not supported on web platform.\nTo turn off this message, set `LeakTrackingTestConfig.warnForNonSupportedPlatforms` to false.');
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment