Skip to content
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

feat(shorebird_cli): add shorebird build ipa #534

Merged
merged 2 commits into from
May 24, 2023

Conversation

felangel
Copy link
Contributor

Description

Type of Change

  • ✨ New feature (non-breaking change which adds functionality)
  • 🛠️ Bug fix (non-breaking change which fixes an issue)
  • ❌ Breaking change (fix or feature that would cause existing functionality to change)
  • 🧹 Code refactor
  • ✅ Build configuration change
  • 📝 Documentation
  • 🗑️ Chore

@felangel felangel requested review from eseidel and bryanoltman May 23, 2023 20:54
@felangel felangel self-assigned this May 23, 2023
@felangel felangel enabled auto-merge (squash) May 23, 2023 20:59
Copy link
Contributor

@bryanoltman bryanoltman left a comment

Choose a reason for hiding this comment

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

LGTM, although we'll need to figure out validators at some point

return ExitCode.noUser.code;
}

final validationIssues = await runValidators();
Copy link
Contributor

Choose a reason for hiding this comment

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

This is a fun wrinkle – the default validators list only contains AndroidInternetPermissionValidator, which doesn't apply here. I think we might need to have something similar in the app's entitlements file and/or its Info.plist.

String get name => 'ipa';

@override
Future<int> run() async {
Copy link
Contributor

Choose a reason for hiding this comment

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

Do we want to verify that the current OS can build ipas? I'm sure flutter build ipa will spit up appropriately so maybe we don't really need to.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah I was planning to leverage the error handling built into the flutter tool but happy to adjust this


buildProgress.complete();

const xcarchivePath = './build/ios/archive/Runner.xcarchive';
Copy link
Contributor

Choose a reason for hiding this comment

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

Would probably be good to do a p.join here, even though this should work anywhere you can build an ipa

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sounds good, will adjust in the next PR 👍

@felangel felangel merged commit dc4d3d2 into main May 24, 2023
Copy link
Contributor

@bryanoltman bryanoltman left a comment

Choose a reason for hiding this comment

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

LGTM, although we'll need to figure out validators at some point

@felangel felangel deleted the feat/shorebird-cli-build-ipa branch May 24, 2023 14:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants