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

Speed up native assets target #134523

Merged
merged 20 commits into from
Sep 15, 2023
Merged
Changes from 1 commit
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
Prev Previous commit
Next Next commit
Revert loadPackageConfigWithLogging async I/O
  • Loading branch information
dcharkes committed Sep 13, 2023
commit b58168f306741db72af7fd7b2936578ca1142d67
4 changes: 3 additions & 1 deletion packages/flutter_tools/lib/src/dart/package_map.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

import 'dart:typed_data';

import 'package:package_config/package_config.dart';

import '../base/common.dart';
Expand All @@ -26,7 +28,7 @@ Future<PackageConfig> loadPackageConfigWithLogging(File file, {
if (!configFile.existsSync()) {
return null;
}
return configFile.readAsBytes();
return Future<Uint8List>.value(configFile.readAsBytesSync());
},
onError: (dynamic error) {
if (!throwOnError) {
Expand Down
Loading