Skip to content
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
13 changes: 12 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,16 @@
# found in the LICENSE file.
set -e

# The base exclusion file for all_packages app.
exclusions=("script/configs/exclude_all_packages_app.yaml")

# Add a wasm-specific exclusion file if "--wasm" is specified.
if [[ "$1" == "--wasm" ]]; then
exclusions+=",script/configs/exclude_all_packages_app_wasm.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 "$exclusions"
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
15 changes: 15 additions & 0 deletions script/configs/exclude_all_packages_app_wasm.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# 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` only.

# 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