Skip to content

Conversation

@sbaranov
Copy link
Contributor

@sbaranov sbaranov commented Aug 13, 2018

This change adds --dynamic flag to the flutter tool, which makes it use the engine produced by gn --dynamic that includes support for dynamic code in profile and release configurations.

@sbaranov sbaranov requested review from Hixie and aam August 14, 2018 16:25
Copy link
Member

Choose a reason for hiding this comment

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

comment above at line 75 seems to need to be updated

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
Member

Choose a reason for hiding this comment

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

Is setting matchingFallbacks like this for these dynamic configurations as intended?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I suspect this setting is inconsequential. It only matters if one of flutter's dependency modules doesn't define given build configuration, and I don't see any sub-modules.

Copy link
Member

Choose a reason for hiding this comment

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

cc @mravn-google in case he knows

@sbaranov sbaranov changed the title Flutter tool support for dynamic code loading Flutter tool support for dynamic code Aug 15, 2018
@sbaranov sbaranov merged commit 25ba90a into flutter:master Aug 15, 2018
@sbaranov sbaranov deleted the flutter-dynamic-flag branch August 15, 2018 19:28
jonahwilliams pushed a commit that referenced this pull request Aug 15, 2018
@tvolkert
Copy link
Contributor

Seeing the following errors with this commit:

2018-08-15T13:02:25.952290: stderr: 
2018-08-15T13:02:25.952794: stderr: Invalid argument(s): Could not find an option named "dynamic".
2018-08-15T13:02:25.953261: stderr: #0      ArgResults.[] (package:args/src/arg_results.dart:64:7)
stderr: #1      FlutterCommand.getBuildMode (package:flutter_tools/src/runner/flutter_command.dart:176:24)
stderr: #2      FlutterCommand.getBuildInfo (package:flutter_tools/src/runner/flutter_command.dart:218:26)
2018-08-15T13:02:25.953391: stderr: #3      BuildIOSCommand.runCommand (package:flutter_tools/src/commands/build_ios.dart:74:33)
stderr: 
stderr: #4      FlutterCommand.verifyThenRunCommand (package:flutter_tools/src/runner/flutter_command.dart:353:18)
stderr: 
stderr: #5      FlutterCommand.run. (package:flutter_tools/src/runner/flutter_command.dart:287:33)
stderr: 
stderr: #6      AppContext.run. (package:flutter_tools/src/base/context.dart:142:29)
stderr: 
stderr: #7      _rootRun (dart:async/zone.dart:1124:13)

@tvolkert
Copy link
Contributor

I see this is being reverted in #20644

jonahwilliams pushed a commit that referenced this pull request Aug 15, 2018
* Revert "iOS Dialog blur, brightness, and layout (#18381)"

This reverts commit 21bc9f1.

* Revert "Flutter tool support for dynamic code. (#20543)"

This reverts commit 25ba90a.
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 10, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants