这是indexloc提供的服务,不要输入任何密码
Skip to content

[flutter_tools] add support for --bundle-sksl-path to flutter run / flutter drive #80885

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Apr 21, 2021

Conversation

jonahwilliams
Copy link
Contributor

Fixes #80840

All of the plumbing was already there, just needed to wire it up.

@flutter-dashboard flutter-dashboard bot added c: contributor-productivity Team-specific productivity, code health, technical debt. tool Affects the "flutter" command-line tool. See also t: labels. labels Apr 21, 2021
@google-cla google-cla bot added the cla: yes label Apr 21, 2021
@@ -824,7 +824,7 @@ class PerfTestWithSkSL extends PerfTest {
await _generateSkSL();

// Build the app with SkSL artifacts and run that app
final String observatoryUri = await _buildAndRun();
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 did verify that this works locally too 😄

@jonahwilliams jonahwilliams requested a review from jmagman April 21, 2021 18:27
@@ -824,7 +824,7 @@ class PerfTestWithSkSL extends PerfTest {
await _generateSkSL();

// Build the app with SkSL artifacts and run that app
final String observatoryUri = await _buildAndRun();
final String observatoryUri = await _runApp(skslPath: _skslJsonFileName);
Copy link
Member

Choose a reason for hiding this comment

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

appBinary doesn't need to be passed in anymore?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Instead of building the apk and then running the prebuilt app to work around run not accepting --bundle-sksl-path, we can now just pass the arg to run and have it build the correct app

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.

LGTM

@fluttergithubbot fluttergithubbot merged commit 63ba1b2 into flutter:master Apr 21, 2021
@jonahwilliams jonahwilliams deleted the add_run_sksl_path branch April 30, 2021 21:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
c: contributor-productivity Team-specific productivity, code health, technical debt. tool Affects the "flutter" command-line tool. See also t: labels.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add support for --bundle-sksl-path to flutter run and flutter drive
3 participants