Closed dshukertjr closed 3 years ago
cool
I feel like we should discuss how we should go about implementing this, and I am not sure which option might be the best, so I took off the assignment.
I thought we could do something similar to postgrest-js
package where we create a const
variable named version
at build time. It seems like this would be possible with pubspec_generator.
With this, I thought we might be able to setup Github actions to automatically run the build command to generate version.dart
that contains const version = '[current_version]'
and then publish the package automatically using Dart and Flutter Package Publisher. I was thinking something like this.
The concern I have is that automating publishing packages is not recommended by the dart team at the moment. https://github.com/dart-lang/pub/issues/2227
What do you guys think @bdlukaa @phamhieu ?
I guess worst case we can just have a version.dart
file that we manually update every time we publish a new package.
Related to https://github.com/supabase/supabase-dart/issues/45