bitrise-steplib / bitrise-step-flutter-build

MIT License
7 stars 14 forks source link

Handle new package file #46

Closed tothszabi closed 1 year ago

tothszabi commented 1 year ago

Checklist

Version

Requires a PATCH version update

Context

The e2e tests started to fail on the Linux stack. After some investigation I have found that the Dart team deprecated the way they were handling the packages and now there is a new json based variant: https://github.com/dart-lang/sdk/issues/48272

They were generously generating the old version too for backwards compatibility but after a certain version it will be completely removed.

This PR introduces handling this new json format.

Changes

The step will first try to parse the old .packages file. If it fails then it will also try to parse the new .dart_tool/package_config.json one.