Skip to content

Conversation

@andrewkolos
Copy link
Contributor

@andrewkolos andrewkolos commented Dec 8, 2023

Reland of #132985. Fixes the path to AssetManifest.bin in flavors_test_ios

Pre-launch Checklist

  • I read the Contributor Guide and followed the process outlined there for submitting PRs.
  • I read the Tree Hygiene wiki page, which explains my responsibilities.
  • I read and followed the Flutter Style Guide, including Features we expect every widget to implement.
  • I signed the CLA.
  • I listed at least one issue that this PR fixes in the description above.
  • I updated/added relevant documentation (doc comments with ///).
  • I added new tests to check the change I am making, or this PR is test-exempt.
  • All existing and new tests are passing.

@github-actions github-actions bot added the tool Affects the "flutter" command-line tool. See also t: labels. label Dec 8, 2023
andrewkolos and others added 2 commits December 8, 2023 15:34
oops

enable for `flutter daemon` and `flutter run --machine`

nit

working (ugly) flavor-collision-handling logic

nits

add commented out tests

refactor main test a little

update tests and add support for deferred components assets

remove extra log statements

add a test for assetsentry parsing

get build_info.dart changes under test

fix asset bundle test for windows

make asset bundle tests work on Windows

typos

remove feature for web

typo

fix some tests

fix xcode_backend_test

remove feature for web

fix a test

fix oopsie

fix test

try fix xcode backend test

restore in-order sequencing of install tests

augment flavors integration tests with flavor-specific assets checks

add support to HotRunner (untested)

more diff cleanup

remove support for flavors for platforms that we haven't documented flavors support for

enable for web

add tests to asset bundle tests

add tests for CopyAssets target and fix logic for unflavored builds

clean up print statements

simplify pubspec syntax

implement group pubspec syntax (very hacky)

group parsing actually works (image displays at runtime)

xcode sends flavor, we use flavor in asset bundling (hacky)

gradle-sends-flavor-to-flutter-assembler

run update-packages

fix test: clean up after flavors test

fixing rebasing oopsies

rebasing because frob asked me to

add tech debt note about redundant parsing

make flavor matching behavior more explicit

remove unused flavor parameter

nits

nit

test based on android manifest (#1)

* remove trace and fix test

* update to use AssetManifest.bin; mirror change in flavors_test_ios

---------

oops again

oops

remove redundant flavor arg from HotRunner

nits

change `flavor` to `flavors` to allow multiple flavors per asset

consider flavor in AssetsEntry.hashCode

fix some tests

fix flavors for deferred components

disallow overlapping entries of different flavors

allow empty flavor when passing to xcode

This shouldn't really matter because the app won't shouldn't build with any empty flavor.

if flavor is null or empty, do not pass it to xcode via -d

remove redundant --flavor option in assemble command

make AssetsEntry parsing functions pure

revert unnecessary extraction of expression into local variable

remove duplicate Xcode define

cleanup

Co-Authored-By: Christopher Fujino <[email protected]>
Co-Authored-By: Andrew Kolos <[email protected]>
@andrewkolos andrewkolos force-pushed the reland-flavor-conditional-asset-bundling branch from d120df3 to 45c375d Compare December 8, 2023 23:47
@andrewkolos andrewkolos marked this pull request as ready for review December 13, 2023 20:36
@christopherfujino
Copy link
Contributor

Is this the tl;dr diff between this PR and the last one?

@christopherfujino
Copy link
Contributor

actually, all i really care about is if you fixed the test. did you get it to pass presubmit?

@andrewkolos
Copy link
Contributor Author

actually, all i really care about is if you fixed the test. did you get it to pass presubmit?

Yup—https://github.com/flutter/flutter/pull/139834/checks?check_run_id=19614729659

Copy link
Contributor

@christopherfujino christopherfujino left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM ship it

@andrewkolos andrewkolos added the autosubmit Merge PR when tree becomes green via auto submit App label Dec 13, 2023
@auto-submit auto-submit bot merged commit 935775c into flutter:master Dec 14, 2023
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Dec 14, 2023
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Dec 14, 2023
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Dec 14, 2023
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Dec 14, 2023
auto-submit bot pushed a commit to flutter/packages that referenced this pull request Dec 14, 2023
flutter/flutter@11a9cb7...a51e33a

2023-12-14 [email protected] Roll Flutter Engine from 223f4b2465dd to caf33276468b (1 revision) (flutter/flutter#140156)
2023-12-14 [email protected] Roll Packages from b5958e2 to 1151191 (10 revisions) (flutter/flutter#140154)
2023-12-14 [email protected] Roll Flutter Engine from a3f9393f9591 to 223f4b2465dd (1 revision) (flutter/flutter#140151)
2023-12-14 [email protected] Roll Flutter Engine from 913446eca57c to a3f9393f9591 (2 revisions) (flutter/flutter#140144)
2023-12-14 [email protected] Roll Flutter Engine from 923f9e29d4b5 to 913446eca57c (1 revision) (flutter/flutter#140132)
2023-12-14 [email protected] Roll Flutter Engine from 9f7004e3e30e to 923f9e29d4b5 (7 revisions) (flutter/flutter#140130)
2023-12-14 [email protected] Add self back to CODEOWNERS (flutter/flutter#140080)
2023-12-14 [email protected] Adapt wording for required Android SDK for plugins (flutter/flutter#140043)
2023-12-14 [email protected] [reland] Support conditional bundling of assets based on `--flavor` (flutter/flutter#139834)
2023-12-14 98614782+auto-submit[bot]@users.noreply.github.com Reverts "Roll Flutter Engine from 9f7004e3e30e to 45b95f264d63 (1 revision)" (flutter/flutter#140123)
2023-12-14 [email protected] [deps] update Android SDK to 34 (flutter/flutter#138183)
2023-12-14 [email protected] Roll Flutter Engine from 9f7004e3e30e to 45b95f264d63 (1 revision) (flutter/flutter#140108)
2023-12-14 [email protected] Catch `Stopwatch` with static analysis (flutter/flutter#140019)
2023-12-14 [email protected] Overlay supports unconstrained environments (flutter/flutter#139513)
2023-12-14 49699333+dependabot[bot]@users.noreply.github.com Bump github/codeql-action from 2.22.10 to 3.22.11 (flutter/flutter#140087)
2023-12-14 [email protected] Remove deprecated `ThemeData.selectedRowColor` (flutter/flutter#139080)
2023-12-14 [email protected] Unpin mac_toolchain version (flutter/flutter#139938)
2023-12-14 [email protected] Optimize file transfer when using proxied devices. (flutter/flutter#139968)
2023-12-14 [email protected] Add commonly used parameter names (flutter/flutter#140027)
2023-12-13 [email protected] Roll Flutter Engine from fc3267724e1b to 9f7004e3e30e (4 revisions) (flutter/flutter#140090)
2023-12-13 [email protected] [Windows] Remove header guard from generated key map (flutter/flutter#140082)
2023-12-13 [email protected] Do not use project in do last (flutter/flutter#139325)
2023-12-13 [email protected] Roll pub packages (flutter/flutter#140024)
2023-12-13 98614782+auto-submit[bot]@users.noreply.github.com Reverts "Warn when Gradle plugins are applied using the legacy "apply script method" way" (flutter/flutter#140102)
2023-12-13 [email protected] Swap iOS back button icon in Material app bar (flutter/flutter#134754)
2023-12-13 [email protected] Roll Packages from 80aa46a to b5958e2 (10 revisions) (flutter/flutter#140069)
2023-12-13 [email protected] Roll Flutter Engine from 9039ac78cf03 to fc3267724e1b (26 revisions) (flutter/flutter#140084)
2023-12-13 [email protected] Warn when Gradle plugins are applied using the legacy "apply script method" way (flutter/flutter#139690)
2023-12-13 [email protected] Add self as bundler dependabot reviewer (flutter/flutter#140081)
2023-12-13 98614782+auto-submit[bot]@users.noreply.github.com Reverts "Make tests more resilient to Skia gold failures and refactor flutter_goldens for extensive technical debt removal" (flutter/flutter#140085)

If this roll has caused a breakage, revert this CL and stop the roller
using the controls here:
https://autoroll.skia.org/r/flutter-packages
Please CC [email protected],[email protected],[email protected] on the revert to ensure that a human
is aware of the problem.

To file a bug in Packages: https://github.com/flutter/flutter/issues/new/choose

To report a problem with the AutoRoller itself, please file a bug:
https://issues.skia.org/issues/new?component=1389291&template=1850622

Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Feb 16, 2024
@andrewkolos andrewkolos deleted the reland-flavor-conditional-asset-bundling branch April 29, 2024 18:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

autosubmit Merge PR when tree becomes green via auto submit App tool Affects the "flutter" command-line tool. See also t: labels.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants