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

refactor(shorebird_cli): use scoped ShorebirdEnv and remove buildCodePushClient #1005

Merged
merged 4 commits into from
Aug 3, 2023

Conversation

felangel
Copy link
Contributor

@felangel felangel commented Aug 2, 2023

Description

  • refactor(shorebird_cli): use scoped ShorebirdEnv and remove buildCodePushClient
    • cleaning up a lot of tech debt since it'll make supporting multiple flutter versions easier

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 August 2, 2023 21:54
@felangel felangel self-assigned this Aug 2, 2023
final progress = logger.progress('Retrieving account information');

final User? user;
try {
user = await client.getCurrentUser();
user = await codePushClientWrapper.codePushClient.getCurrentUser();
Copy link
Contributor Author

Choose a reason for hiding this comment

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

planning to refactor this in a separate PR so that we don't need to access the internal codePushClient but this PR is already way too big :/

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.

One minor nit, but lgtm!

packages/shorebird_cli/lib/src/shorebird_env.dart Outdated Show resolved Hide resolved
@felangel felangel merged commit 6b50023 into main Aug 3, 2023
@felangel felangel deleted the refactor/shorebird-cli-shorebird-env branch August 3, 2023 04:23
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