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

fix(shorebird_cli): camel case flavors can confuse path finding for android #1861

Merged
merged 10 commits into from
Apr 9, 2024

Conversation

AbhijithKonnayil
Copy link
Contributor

added kebeb-case in string extensions and used in appbundle path in android command

Description

Ref : #1830

shorebird release android command when passed with multi dimensional flavors, resulted in error since shorebird cant find the app bundle. It was due to the mismatch in file name path due to different case.
The appbundle is created in kebab-case where as shorebird looks for filename in camelCase.

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

@bryanoltman
Copy link
Contributor

Thank you! This is going to require tests.

@bryanoltman bryanoltman changed the title 1830 : fix: camel case flavors can confuse path finding for android fix(shorebird_cli): camel case flavors can confuse path finding for android Apr 4, 2024
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.

Please add tests for the new functionality.

packages/shorebird_cli/lib/src/extensions/string.dart Outdated Show resolved Hide resolved
packages/shorebird_cli/lib/src/extensions/string.dart Outdated Show resolved Hide resolved
@@ -7,4 +7,11 @@ void main() {
expect(''.isNullOrEmpty, true);
expect('test'.isNullOrEmpty, false);
});

test('ToKebabCase', () async {
Copy link
Contributor

Choose a reason for hiding this comment

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

What does this do for text containing spaces?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

it wont make any change as of now, will make changes to convert space to hypen (-).

@bryanoltman
Copy link
Contributor

bryanoltman commented Apr 8, 2024

It looks like there are also some code formatting issues that need to be fixed.

Edit: test/src/extensions/string_test.dart, from https://github.com/shorebirdtech/shorebird/actions/runs/8604701717/job/23579393323?pr=1861

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.

None yet

4 participants