Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Conversation

@xster
Copy link
Member

@xster xster commented Jan 27, 2021

Fixes flutter/flutter#74767. Make the FlutterEngineGroup initialize the FlutterLoader. This is the same pattern as the FlutterEngine itself.

It's a breaking change though since I need to let the FlutterEngineGroup have a context too.

Copy link
Member

@gaaclarke gaaclarke left a comment

Choose a reason for hiding this comment

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

Change looks good, I think we can do better with the DartEntrypoint API though. It's much easier on iOS because it accepts null to mean the default location. I know we don't want to use null so maybe we can make a const?

engineGroupUnderTest.createAndRunEngine(
RuntimeEnvironment.application,
new DartEntrypoint(
FlutterInjector.instance().flutterLoader().findAppBundlePath(),
Copy link
Member

Choose a reason for hiding this comment

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

This is unfortunate, this is impossible to find for people that want to make a DartEntrypoint. Maybe we could add a const for it in the DartEntrypoint class? DartEntrypoint.DEFAULT_APP_BUNDLE_PATH? I couldn't find an example of anyone using the new API on github. It looks like a series of 2 changes have been deprecated and replaced for this.

Copy link
Member Author

Choose a reason for hiding this comment

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

Totally agree. This API makes no sense lol. But that's a "new feature" and I want to cherry pick this. Left flutter/flutter#74828. Surprised no one complained yet :)

@xster xster added the waiting for tree to go green This PR is approved and tested, but waiting for the tree to be green to land. label Jan 27, 2021
@xster
Copy link
Member Author

xster commented Jan 27, 2021

Can't seem to retrigger the luci fuchsia test on head. Going to poke the infra with this PR.

@xster xster merged commit fad9ae8 into flutter:master Jan 27, 2021
@xster xster deleted the engine-group-loader branch January 27, 2021 21:30
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Jan 27, 2021
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Jan 28, 2021
christopherfujino added a commit that referenced this pull request Feb 3, 2021
…24142)

* add ffi_allocation_patch.dart to libraries.yaml 2 (#23954)

* Use `runes` to get code units in CanvasKit. (#24024)

* [windows] Honor only valid resize requests (#23990)

* Load FlutterLoader when creating FlutterEngineGroup (#23980)

* [canvaskit] remove the DOM node of unrendered platform view (#24001)

* update dart to 2.12.0-259.8.beta

* [web] Fix svg based stroke rendering. (#23969)

* [canvaskit] fix text background, foreground, color; add text style tests (#23800)

* [canvaskit] fix text background, foreground, familyFallback; add style tests

* add leak test

* update goldens_lock.yaml

* remove solo

* Warn when popping out of empty text style stack

* [web] Fix alignment issue in rich paragraphs (#23965)

* [web] Implement CanvasParagraph.getLineBoundary (#24037)

* [web] Fix text alignment when transform + tight constraints + DOM rendering (#24036)

* update licenses_third_party golden

Co-authored-by: Daco Harkes <[email protected]>
Co-authored-by: Harry Terkelsen <[email protected]>
Co-authored-by: Kaushik Iska <[email protected]>
Co-authored-by: xster <[email protected]>
Co-authored-by: Yegor <[email protected]>
Co-authored-by: Ferhat <[email protected]>
Co-authored-by: Mouad Debbar <[email protected]>
hjfreyer pushed a commit to hjfreyer/engine that referenced this pull request Mar 22, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

cla: yes platform-android waiting for tree to go green This PR is approved and tested, but waiting for the tree to be green to land.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Circular dependency in FlutterEngineGroup with custom entrypoint DartEntrypoint

2 participants