flutterfire_cli
flutterfire_cli copied to clipboard
fix: Support spaces in paths and product name for iOS
Description
If the the app's directory contains space i.e: /Users/Me/With Space/MyApp
, current configuration will read the path as /Users/Me
and that will cause the configuration to fail when trying to access paths as /Users/Me/firebase.json
.
Same issue will happen with product name, so we can't name an application with a space.
Type of Change
- [ ] โจ
feat
-- New feature (non-breaking change which adds functionality) - [x] ๐ ๏ธ
fix
-- Bug fix (non-breaking change which fixes an issue) - [ ] โ
!
-- Breaking change (fix or feature that would cause existing functionality to change) - [ ] ๐งน
refactor
-- Code refactor - [ ] โ
ci
-- Build configuration change - [ ] ๐
docs
-- Documentation - [ ] ๐๏ธ
chore
-- Chore
Hey @AhmedLSayed9 - if you want to resolve the file conflict, I would look to get this merged (providing it passes integration tests) ๐
@russellwheatley Can you check now?
@AhmedLSayed9 - it isn't going to work, the script now sees those Xcode env variables as Dart variables. Look at the results of the CI run for more information.
@AhmedLSayed9 - it isn't going to work, the script now sees those Xcode env variables as Dart variables. Look at the results of the CI run for more information.
My bad, I had to escape the '$'. I've fixed them now.
@AhmedLSayed9 - could you write a test like this: https://github.com/invertase/flutterfire_cli/blob/main/packages/flutterfire_cli/test/configure_test.dart#L342-L379
Except change the applePath to one with spaces in it and create a different one for macOS and iOS. Just select platforms as iOS and macOS in the flutterfire configure command and remove checks unrelated to apple platforms.
@russellwheatley Thanks for the tips. I've added a test case.
This should also fix #243.
@russellwheatley Can you check if there's still something to add?
@AhmedLSayed9 - thanks for the PR. CI won't run correctly for contributor pull requests. I just tested this locally and it was successful:
Good work ๐ช
@russellwheatley This fixes a critical error, shall we have a release for this ? I also faced the same issue.
@rahulraj-idt - This has come out in a dev release: https://github.com/invertase/flutterfire_cli/blob/main/CHANGELOG.md#flutterfire_cli---v101-dev0