Gitea CI / Check code and tests (pull_request) Successful in 6m16s
Gitea CI / Audit and package Windows x64 (pull_request) Successful in 1m31s
Gitea CI / Gitea CI passed (pull_request) Successful in 3s
Gitea CI / Build Android APK (pull_request) Successful in 5m13s
Gitea CI / Build Windows x64 app (pull_request) Successful in 19m20s
Gitea CI / Assemble and validate CI artifacts (pull_request) Successful in 1m1s
Launch the standard-library MCP bridge directly with the Flutter SDK native Dart executable, without shell or pub startup. Verify it works without Dart on PATH and include stderr when its existing response deadline expires. Share native Dart selection with generated-code checks and wait for subtitle workflow completion notifications instead of a fixed 10 ms delay.
28 lines
671 B
Dart
28 lines
671 B
Dart
import 'dart:io';
|
|
|
|
import 'package:path/path.dart' as p;
|
|
|
|
/// Uses the SDK running Flutter tests without invoking its shell launcher.
|
|
String flutterTestDartExecutable() {
|
|
final root = Platform.environment['FLUTTER_ROOT'];
|
|
if (root == null || root.isEmpty) {
|
|
throw StateError(
|
|
'Flutter tests require FLUTTER_ROOT to select their Dart SDK.',
|
|
);
|
|
}
|
|
final executable = p.join(
|
|
root,
|
|
'bin',
|
|
'cache',
|
|
'dart-sdk',
|
|
'bin',
|
|
Platform.isWindows ? 'dart.exe' : 'dart',
|
|
);
|
|
if (!File(executable).existsSync()) {
|
|
throw StateError(
|
|
'The Flutter test SDK is missing its native Dart executable.',
|
|
);
|
|
}
|
|
return executable;
|
|
}
|