From 8498cfb8d975dbe0598a3f74b9b31b886d47ff83 Mon Sep 17 00:00:00 2001 From: Simon Binder Date: Mon, 15 May 2023 09:12:59 +0200 Subject: [PATCH] Fix build in app example --- examples/app/build.yaml | 11 ++++++++--- examples/app/pubspec.yaml | 6 +----- 2 files changed, 9 insertions(+), 8 deletions(-) diff --git a/examples/app/build.yaml b/examples/app/build.yaml index 7ff7cdf4..0c0f453b 100644 --- a/examples/app/build.yaml +++ b/examples/app/build.yaml @@ -33,9 +33,15 @@ targets: - web/worker.dart options: compiler: dart2js - ":copy_compiled_worker_js": - enabled: true + # JS outputs by the build system are private, we use a `build_to: source` builder + # afterwards to make them visible in `web/`. + copy_js: + auto_apply_builders: false + dependencies: [$default] + builders: + ":copy_compiled_worker_js": + enabled: true # build_web_compilers writes a hidden asset, but we want an asset in `web/` for # flutter to see. So, copy that output. Again, this is not needed for most apps. @@ -45,4 +51,3 @@ builders: builder_factories: ["CopyCompiledJs.new"] build_to: source build_extensions: {'web/worker.dart.js': ['web/shared_worker.dart.js']} - required_inputs: [".dart.js"] \ No newline at end of file diff --git a/examples/app/pubspec.yaml b/examples/app/pubspec.yaml index c08e1131..11f1d4f7 100644 --- a/examples/app/pubspec.yaml +++ b/examples/app/pubspec.yaml @@ -11,7 +11,7 @@ dependencies: flutter: sdk: flutter drift: - drift_dev: + drift_dev: ^2.8.1 file_picker: ^5.2.5 flutter_colorpicker: ^1.0.3 flutter_riverpod: ^2.3.0 @@ -39,7 +39,3 @@ dev_dependencies: flutter: uses-material-design: true - -dependency_overrides: - # Flutter's test packages don't support the latest analyzer yet. - test_api: ^0.4.16