96cf91bea3
Also updated non-migrated libraries to include @dart=2.10. Change-Id: Idcf4e54f9aa37b9b016133144af594cc932418a0 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/192122 Reviewed-by: Gary Roumanis <grouma@google.com>
27 lines
824 B
Dart
27 lines
824 B
Dart
// Copyright (c) 2020, the Dart project authors. Please see the AUTHORS file
|
|
// for details. All rights reserved. Use of this source code is governed by a
|
|
// BSD-style license that can be found in the LICENSE file.
|
|
|
|
// @dart=2.10
|
|
|
|
import 'package:dds/dds.dart';
|
|
import 'package:vm_service/vm_service_io.dart';
|
|
|
|
import '../test/common/test_helper.dart';
|
|
|
|
Future<void> main() async {
|
|
final process = await spawnDartProcess('../test/smoke.dart');
|
|
final dds = await DartDevelopmentService.startDartDevelopmentService(
|
|
remoteVmServiceUri,
|
|
);
|
|
|
|
// Connect to the DDS instance and make a request using package:vm_service.
|
|
final service = await vmServiceConnectUri(dds.wsUri.toString());
|
|
final version = await service.getVersion();
|
|
|
|
print('Service Version: $version');
|
|
|
|
await dds.shutdown();
|
|
process.kill();
|
|
}
|