Skip to content
Merged
Show file tree
Hide file tree
Changes from 4 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
12 changes: 11 additions & 1 deletion .ci/scripts/create_all_packages_app.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,15 @@
# found in the LICENSE file.
set -e

# Decide what exclusion file to use, the normal or "wasm" depending on $1
if [ "$1" = "--wasm" ]; then
EXCLUDE="script/configs/exclude_all_packages_app_wasm.yaml"
else
EXCLUDE="script/configs/exclude_all_packages_app.yaml"
fi

# Delete ./all_packages if it exists already
rm -rf ./all_packages

dart ./script/tool/bin/flutter_plugin_tools.dart create-all-packages-app \
--output-dir=. --exclude script/configs/exclude_all_packages_app.yaml
--output-dir=. --exclude $EXCLUDE
7 changes: 7 additions & 0 deletions .ci/targets/web_build_all_packages.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,10 @@ tasks:
- name: build all_packages app for Web release
script: .ci/scripts/build_all_packages_app.sh
args: ["web", "release"]
- name: (Wasm) create all_packages app
script: .ci/scripts/create_all_packages_app.sh
args: ["--wasm"]
infra_step: true # Note infra steps failing prevents "always" from running.
- name: (Wasm) build all_packages app for Web release
script: .ci/scripts/build_all_packages_app.sh
args: ["web", "release", "--wasm"]
2 changes: 1 addition & 1 deletion script/configs/exclude_all_packages_app.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@
# NOTE: camera_android is semi-excluded via special casing in the repo tools.
# See create_all_packages_app_command.dart.

# This is a permament entry, as it should never be a direct app dependency.
# This is a permanent entry, as it should never be a direct app dependency.
- plugin_platform_interface
18 changes: 18 additions & 0 deletions script/configs/exclude_all_packages_app_wasm.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# This list should be kept as short as possible, and things should remain here
# only as long as necessary, since in general the goal is for all of the latest
# versions of packages to be mutually compatible, and compilable with Wasm.

# This is only used for wasm compilation. Once all packages in the repo have
# been migrated, remove this file and use `exclude_all_packages_app.yaml` instead.

# Packages that aren't migrated yet.
# https://github.com/flutter/flutter/issues/117022
- camera
- webview_flutter

# Dependencies are not migrated yet
# https://github.com/flutter/flutter/issues/148624
- google_maps_flutter

# This is a permanent entry, as it should never be a direct app dependency.
- plugin_platform_interface