Skip to content

support for --strong option#13859

Merged
a-siva merged 4 commits into
masterfrom
strong-option
Jan 4, 2018
Merged

support for --strong option#13859
a-siva merged 4 commits into
masterfrom
strong-option

Conversation

@a-siva

@a-siva a-siva commented Jan 3, 2018

Copy link
Copy Markdown
Contributor

Plumb the --strong option through to the front end server and the engine so that we can run
apps with strong mode checks enabled.

if (kernelContent != null) {
final String platformKernelDill = artifacts.getArtifactPath(Artifact.platformKernelDill);
final String platformKernelDill = strongMode ?
artifacts.getArtifactPath(Artifact.platformKernelStrongDill) :

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This would require changes in engine's dart_init.cc(line 89) so that correct platform.dill is picked up from the archive.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Scratch that. Like you explained, the file will be put into archive under _kPlatformKernelKey name.

@Hixie

Hixie commented Jan 4, 2018

Copy link
Copy Markdown
Contributor

You can do dart2 without strong mode?

@a-siva

a-siva commented Jan 4, 2018

Copy link
Copy Markdown
Contributor Author

Strong mode will be an integral part of dart2.

This pull request enables us to run flutter apps with strong mode enabled and clean up all the runtime type errors we might potentially hit before we make it the default.
This is just a transient phase, once all the type errors are fixed strong mode will be part
of --preview-dart-2

@a-siva
a-siva merged commit 426d6b0 into master Jan 4, 2018
@a-siva
a-siva deleted the strong-option branch February 8, 2018 17:20
DaveShuckerow pushed a commit to DaveShuckerow/flutter that referenced this pull request May 14, 2018
* Plumb a --strong option through to the front end server and the engine
so that we can run flutter apps in preview-dart-2 and strong mode

* - Address analyzer lint issues
*- correctly set up strong mode option in the case of AOT builds
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Nov 15, 2019
flar pushed a commit that referenced this pull request Nov 15, 2019
* 174e0e9 Roll src/third_party/dart dc35290111..dc808f3fcb (5 commits) (flutter-team-archive/engine#13859)

* 33d997c Roll fuchsia/sdk/core/mac-amd64 from 7XOyl... to VMTIz... (flutter-team-archive/engine#13861)

* b4899d9 Roll src/third_party/skia d860a78fd60c..e57ca4931952 (44 commits) (flutter-team-archive/engine#13862)

* f456423 RendererContextSwitch guard flutter's gl context rework. (flutter-team-archive/engine#13812)

* 6bab64e Fix test to account for pixel ratio transformations being framework responsibility. (flutter-team-archive/engine#13850)

* 5b10fa3 Guard against orphaned semantic objects from referencing dead accessibility bridge on iOS (flutter-team-archive/engine#13857)

* 97df087 [fuchsia] Package flutter_frontend_server snapshot for fuchsia (flutter-team-archive/engine#13865)

* 0832dfd [flow][fuchsia] Add more tracing to layers and Fuchsia surface pool (flutter-team-archive/engine#13864)

* 141dc785d Roll src/third_party/skia e57ca4931952..c1c4634dcb07 (15 commits) (flutter-team-archive/engine#13866)

* 90a6054 Revert "Roll src/third_party/dart dc35290111..dc808f3fcb (5 commits) (#13859)" (flutter-team-archive/engine#13867)
@github-actions github-actions Bot locked as resolved and limited conversation to collaborators Aug 11, 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