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

Conversation

@dnfield
Copy link
Contributor

@dnfield dnfield commented Jan 17, 2019

flutter/flutter#26630 failed because this still points plugins to the current location for flutter_assets, which was detected when a test tried to load the flutter_gallery video player page.

This updates the default location so that we expect to find flutter_assets inside Frameworks/App.framework. I'm not thrilled with this - but overriding it with a plist value by default would be much harder to make non-breaking for clients.

This will require a manual roll with the changes from https://github.com/dnfield/flutter/tree/flutter_assets_ios

if (flutterAssetsName == nil) {
// Default to "flutter_assets"
flutterAssetsName = @"flutter_assets";
flutterAssetsName = @"Frameworks/App.framework/flutter_assets";
Copy link
Member

Choose a reason for hiding this comment

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

Will flutter_tool changes need to land simultaneously with this engine roll, or have we already made the change there and are using some trick like a symlink to support both paths temporarily?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

See the linked WIP PR. That will be necessary to land this engine roll.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Copy link
Member

@cbracken cbracken Jan 18, 2019

Choose a reason for hiding this comment

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

Just noticed the linked WIP patch flutter/flutter#26713 and the PR description. I think I answered my own question :-)

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'd like to avoid using a symlink if we can - it seems like it increases opportunity for confusion or mistakes

Copy link
Member

@cbracken cbracken left a comment

Choose a reason for hiding this comment

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

My preference, just from a flexibility point of view, would be to pull from a plist value, but fall back to this path. Are there any disadvantages to that?

I ask because people have complained about our current assumptions/hardcoding of Runner. I can imagine cases where someone might also complain about hardcoding App.

@dnfield
Copy link
Contributor Author

dnfield commented Jan 18, 2019

@dnfield
Copy link
Contributor Author

dnfield commented Jan 18, 2019

This PR just updates the default that we fall back to

@dnfield dnfield merged commit 05fee4e into flutter:master Jan 21, 2019
@dnfield dnfield deleted the move_assets_ios branch January 21, 2019 21:43
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Jan 21, 2019
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Jan 22, 2019
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Jan 22, 2019
dnfield added a commit to flutter/flutter that referenced this pull request Jan 22, 2019
* move flutter_assets to App.framework

* Roll engine to 05fee4e

05fee4e Update default flutter_assets path for iOS embedding (flutter/engine#7518)
02205db Roll src/third_party/skia 5d052dac3ac1..02738a86e5fd (4 commits) (flutter/engine#7541)
af907c0 Roll src/third_party/skia 5c7a3ac0e214..5d052dac3ac1 (7 commits) (flutter/engine#7540)
dde2866 IWYU to get SkFontMetrics (flutter/engine#7539)
kangwang1988 pushed a commit to XianyuTech/flutter that referenced this pull request Feb 12, 2019
* move flutter_assets to App.framework

* Roll engine to 05fee4e

05fee4e Update default flutter_assets path for iOS embedding (flutter/engine#7518)
02205db Roll src/third_party/skia 5d052dac3ac1..02738a86e5fd (4 commits) (flutter/engine#7541)
af907c0 Roll src/third_party/skia 5c7a3ac0e214..5d052dac3ac1 (7 commits) (flutter/engine#7540)
dde2866 IWYU to get SkFontMetrics (flutter/engine#7539)
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants