Skip to content

[flutter_tools] Migrate xcode_backend.sh to flutter assemble#49842

Merged
jonahwilliams merged 8 commits intoflutter:masterfrom
jonahwilliams:full_assemble
Feb 4, 2020
Merged

[flutter_tools] Migrate xcode_backend.sh to flutter assemble#49842
jonahwilliams merged 8 commits intoflutter:masterfrom
jonahwilliams:full_assemble

Conversation

@jonahwilliams
Copy link
Contributor

@jonahwilliams jonahwilliams commented Jan 30, 2020

Description

Updates xcode_backend.sh to use (mostly) assemble APIs. This almost completes the migration, though I still need to move the asset unpack step - this is slightly more complicated due to the module format.

Should have no new external behavior, but does allow us to more easily wire up new features like font-subset, dart-defines, and obfuscation (which was never implemented for iOS?)

FYI @dnfield

Fixes #32925

@fluttergithubbot fluttergithubbot added tool Affects the "flutter" command-line tool. See also t: labels. work in progress; do not review labels Jan 30, 2020
@dnfield
Copy link
Contributor

dnfield commented Jan 31, 2020

This is exciting.

@jonahwilliams jonahwilliams marked this pull request as ready for review February 3, 2020 16:50
-dBuildMode=${build_mode} \
-dIosArchs="${ARCHS}" \
-dTrackWidgetCreation="${track_widget_creation_flag}" \
-dEnableBitcode="${bitcode_flag}" \
Copy link
Contributor

Choose a reason for hiding this comment

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

Should this be either true or false? Right now it can end up as an empty string.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

-dTargetFile="${target_path}" \
-dBuildMode=${build_mode} \
-dIosArchs="${ARCHS}" \
-dTrackWidgetCreation="${track_widget_creation_flag}" \
Copy link
Contributor

Choose a reason for hiding this comment

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

Also on this one. Right now this can either come out as true or an empty string.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

Copy link
Contributor

@dnfield dnfield left a comment

Choose a reason for hiding this comment

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

LGTM

I'll be able to integrate this into the font subset PR when it lands and add support for iOS there. Or just do it as a separate PR since that one is getting large.

@jonahwilliams
Copy link
Contributor Author

Separate PR is probably ideal, should be a quick to review PR

bitcode_flag="--bitcode"
fi

# TODO(jonahwilliams): move engine copying to build system.
Copy link
Member

Choose a reason for hiding this comment

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

See copyEngineArtifactToProject in project.dart.

Copy link
Member

@jmagman jmagman left a comment

Choose a reason for hiding this comment

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

Checked out the branch, the following seems to work:

  • Run on a device in Debug, Profile, and Release
  • Run on a simulator in Debug
  • Archive with bitcode enabled
  • Archive with bitcode disabled
  • flutter build ios-framework

LGTM

@fluttergithubbot
Copy link
Contributor

This pull request is not suitable for automatic merging in its current state.

  • The status or check suite tool_tests-integration-macos has failed. Please fix the issues identified (or deflake) before re-applying this label.

@jonahwilliams jonahwilliams added waiting for customer response The Flutter team cannot make further progress on this issue until the original reporter responds waiting for tree to go green and removed waiting for customer response The Flutter team cannot make further progress on this issue until the original reporter responds labels Feb 4, 2020
@jonahwilliams jonahwilliams merged commit c2353b2 into flutter:master Feb 4, 2020
@jonahwilliams jonahwilliams deleted the full_assemble branch February 4, 2020 22:19
jonahwilliams pushed a commit that referenced this pull request Feb 4, 2020
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 1, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

tool Affects the "flutter" command-line tool. See also t: labels.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Re-implement existing iOS and Android build in terms of --legacy flutter assemble targets

5 participants