-
Notifications
You must be signed in to change notification settings - Fork 22
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
LeakTesting
doesn't exist in leak_tracker_flutter_testing
#215
Comments
It seems like Resolving dependencies...
Note: meta is pinned to version 1.10.0 by flutter_test from the flutter SDK.
See https://dart.dev/go/sdk-version-pinning for details.
Because every version of flutter_test from sdk depends on meta 1.10.0 and leak_tracker_testing >=1.0.6 depends on meta ^1.11.0, flutter_test from sdk is incompatible with leak_tracker_testing >=1.0.6.
So, because flutter_app_stable depends on both leak_tracker_testing ^1.0.6 and flutter_test from sdk, version solving failed.
You can try the following suggestion to make the pubspec resolve:
* Consider downgrading your constraint on leak_tracker_testing: flutter pub add leak_tracker_testing:^1.0.5 My fix is to change my leak_tracker_flutter_testing: 1.0.9 and my import 'dart:async';
import 'package:leak_tracker_flutter_testing/leak_tracker_flutter_testing.dart';
FutureOr<void> testExecutable(FutureOr<void> Function() testMain) {
LeakTesting.settings = LeakTesting.settings.withTrackedAll();
return testMain();
} However, I tried to add it to Can this package be used on flutter stable |
Oh, yes, for now leak_tracker works just for flutter starting 3.18.0. Thanks for trying and discovering it!!! |
I'm following https://github.com/dart-lang/leak_tracker/blob/main/doc/leak_tracking/DETECT.md :
When using the latest flutter stable:
and run
flutter pub add leak_tracker_flutter_testing
in a brand new project, I get the version2.0.0
ofleak_tracker_flutter_testing
:When add the
test/flutter_test_config.dart
:LeakTesting
is not defined:Running
flutter analyze
:You can checkout https://github.com/ValentinVignal/flutter_app_stable/tree/leak_tracker_flutter_testing/Test-on-flutter-3.16
The text was updated successfully, but these errors were encountered: