Skip to content

Conversation

@szakarias
Copy link
Contributor

@szakarias szakarias commented Nov 14, 2017

Needed for #12944.

Copy link
Contributor

@jakobr-google jakobr-google left a comment

Choose a reason for hiding this comment

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

LGTM, just a couple of points.

bool codesign: true,
bool usesTerminalUi: true,
}) async {
upgradePbxProjWithFlutterAssets(app.name);
Copy link
Contributor

Choose a reason for hiding this comment

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

You'll need an await here, otherwise it might not be done by the time the build runs.


final StringBuffer buffer = new StringBuffer();
lines.forEach(buffer.writeln);
xcodeProjectFile.writeAsString(buffer.toString());
Copy link
Contributor

Choose a reason for hiding this comment

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

Should add an await here, as well.


printStatus("Upgrading project.pbxproj of $app' to include the "
"'flutter_assets' directory");
lines.insert(lines.indexOf(l1) + 1, l2);
Copy link
Contributor

Choose a reason for hiding this comment

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

This'll work in by far the most cases, but if the user has been tinkering with the project, there's a small risk they might have changed some of these, in which case it'll be hard for us to upgrade the project automatically.

Could you check if these lines exist, and print out a message telling the user what to do manually if they don't?

(if a line doesn't exist, indexOf() returns -1, so the current code will insert the corresponding new line at the beginning of the file.)

final String l7 = ' 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */,';
final String l8 = ' 2D5378261FAA1A9400D5DBA9 /* flutter_assets in Resources */,';

if (lines.contains(l2))
Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe check for a line containing path = Flutter/flutter_assets?

Copy link
Contributor

@jakobr-google jakobr-google left a comment

Choose a reason for hiding this comment

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

LGTM

@Hixie
Copy link
Contributor

Hixie commented Nov 16, 2017

cc @xster who may be interested since he's working on auto-update code.

@Hixie
Copy link
Contributor

Hixie commented Nov 22, 2017

@szakarias is this ready to land?

@szakarias
Copy link
Contributor Author

It should land when #12944 is landed.

@szakarias szakarias closed this Dec 8, 2017
@szakarias szakarias deleted the upgradePbxproj branch December 8, 2017 09:57
@szakarias szakarias restored the upgradePbxproj branch December 12, 2017 08:30
@szakarias szakarias reopened this Dec 12, 2017
@szakarias szakarias merged commit 08128cb into flutter:master Dec 13, 2017
yjbanov added a commit to yjbanov/flutter that referenced this pull request Dec 13, 2017
yjbanov added a commit that referenced this pull request Dec 14, 2017
* Revert "Include a directory with Flutter assets (#12944)"

This reverts commit 3af6b9c.

* Revert "Upgrade project.pbxproj to include flutter_assets (#13011)"

This reverts commit 08128cb.

* Revert "Upgrade complex_layout project.pbxproj to include flutter_assets (#13544)"

This reverts commit 35f1a04.

* mark complex_layout_ios__start_up as flaky
DaveShuckerow pushed a commit to DaveShuckerow/flutter that referenced this pull request May 14, 2018
DaveShuckerow pushed a commit to DaveShuckerow/flutter that referenced this pull request May 14, 2018
* Revert "Include a directory with Flutter assets (flutter#12944)"

This reverts commit 3af6b9c.

* Revert "Upgrade project.pbxproj to include flutter_assets (flutter#13011)"

This reverts commit 08128cb.

* Revert "Upgrade complex_layout project.pbxproj to include flutter_assets (flutter#13544)"

This reverts commit 35f1a04.

* mark complex_layout_ios__start_up as flaky
@jmagman jmagman mentioned this pull request Mar 11, 2020
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 12, 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