Skip to content
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

[devtools_app] Bump dependencies #6814

Merged
merged 1 commit into from
Nov 21, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions packages/devtools_app/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,6 @@ dependencies:
# Pin ansicolor to version before pre-NNBD version 1.1.0, should be ^1.0.5
# See https://github.com/flutter/devtools/issues/2530
ansicolor: ^2.0.0
# TODO: https://github.com/flutter/devtools/issues/4728 - remove constraint when archive is fixed
archive: <3.3.3
async: ^2.0.0
clock: ^1.1.1
codicon: ^1.0.0
Expand All @@ -43,7 +41,7 @@ dependencies:
flutter_web_plugins:
sdk: flutter
http: ^1.1.0
image: ^3.0.2
image: ^4.1.3
intl: ^0.18.0
js: ^0.6.1+1
json_rpc_2: ^3.0.2
Expand Down
5 changes: 3 additions & 2 deletions packages/devtools_app/test_driver/integration_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
// ignore_for_file: avoid_print

import 'dart:io';
import 'dart:typed_data';

import 'package:collection/collection.dart';
import 'package:flutter_driver/flutter_driver.dart';
Expand Down Expand Up @@ -95,9 +96,9 @@ Future<void> main() async {
);
}

double _percentDiff(List<int> goldenBytes, List<int> screenshotBytes) {
double _percentDiff(Uint8List goldenBytes, List<int> screenshotBytes) {
final goldenImage = decodeImage(goldenBytes);
final screenshotImage = decodeImage(screenshotBytes);
final screenshotImage = decodeImage(Uint8List.fromList(screenshotBytes));
if (goldenImage == null || screenshotImage == null) {
print('Cannot decode one or both of the golden images.');
return _defaultDiffPercentage;
Expand Down
Loading