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

add option --out-dir to packge vector_graphics_compiler #215

Merged
merged 4 commits into from
Sep 21, 2023

Conversation

FursanAbdulhak
Copy link
Contributor

@FursanAbdulhak FursanAbdulhak commented Sep 18, 2023

add new option --out-dir to specific output directory when specific --input-dir option

Comment on lines 162 to 165
if (Platform.isWindows) {
outputPath = '${outDir.path}\\${file.path.split("\\").last}.vec';
} else {
outputPath = '${outDir.path}/${file.path.split("/").last}.vec';
Copy link
Owner

Choose a reason for hiding this comment

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

Use package:path's join method instead.

Copy link
Owner

@dnfield dnfield 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 a test and use path.join

Copy link
Owner

@dnfield dnfield left a comment

Choose a reason for hiding this comment

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

LGTM, thanks!

@jonahwilliams fyi

@dnfield
Copy link
Owner

dnfield commented Sep 20, 2023

(assuming tests pass haha)

@@ -15,6 +15,7 @@ dependencies:
path_parsing: ^1.0.1
xml: ^6.3.0
vector_graphics_codec: 1.1.8
path: ^1.8.3
Copy link
Collaborator

Choose a reason for hiding this comment

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

Doesn't this add a dependency on path to all users of flutter_svg?

Copy link
Owner

Choose a reason for hiding this comment

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

ahhh I think we cheated on this before and put it in dev_dependencies...

Copy link
Owner

Choose a reason for hiding this comment

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

We could also use a more relaxed constraint?

Copy link
Collaborator

Choose a reason for hiding this comment

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

I think you can cheat if its only used in the bin directory, might want to double check. I'd be fine with that.

Copy link
Collaborator

Choose a reason for hiding this comment

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

If that doesn't work, I'd be fine with a loose constraint like we have

Copy link
Owner

Choose a reason for hiding this comment

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

I changed this to ^1.8.0. I'll fix up the analysis issues unrelated to this patch separately.

@dnfield dnfield merged commit c1782b8 into dnfield:main Sep 21, 2023
1 of 3 checks passed
@FursanAbdulhak FursanAbdulhak deleted the new-feature branch September 22, 2023 17:02
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.

3 participants