From 3f1e15ab343bc7e74530ab68b14e4649b8116e7e Mon Sep 17 00:00:00 2001 From: Jake Macdonald Date: Thu, 2 Nov 2023 16:09:58 +0000 Subject: [PATCH] fix diagnostics in the FFI sample Change-Id: I9697c33be3ee1c96c43d382c0925641d91878218 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/333560 Auto-Submit: Jake Macdonald Commit-Queue: Daco Harkes Commit-Queue: Jake Macdonald Reviewed-by: Daco Harkes --- samples/ffi/http/pubspec.yaml | 2 +- samples/ffi/http/test/http_test.dart | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/samples/ffi/http/pubspec.yaml b/samples/ffi/http/pubspec.yaml index 2798023736c..d648b942fa1 100644 --- a/samples/ffi/http/pubspec.yaml +++ b/samples/ffi/http/pubspec.yaml @@ -3,7 +3,7 @@ version: 0.0.1 publish_to: none environment: - sdk: '>=3.0.0 <4.0.0' + sdk: '>=3.1.0 <4.0.0' dependencies: ffi: ^2.1.0 diff --git a/samples/ffi/http/test/http_test.dart b/samples/ffi/http/test/http_test.dart index 501bef7a85a..33e949e33a6 100644 --- a/samples/ffi/http/test/http_test.dart +++ b/samples/ffi/http/test/http_test.dart @@ -3,12 +3,10 @@ // BSD-style license that can be found in the LICENSE file. import 'dart:async'; -import 'dart:io'; -import 'package:ffi/ffi.dart'; import 'package:test/test.dart'; -import '../lib/http.dart'; +import 'package:http/http.dart'; Future main() async { test('httpGet', () async {