Skip to content
This repository has been archived by the owner on May 13, 2023. It is now read-only.

X-Client-Info header #40

Closed
dshukertjr opened this issue Aug 24, 2021 · 3 comments
Closed

X-Client-Info header #40

dshukertjr opened this issue Aug 24, 2021 · 3 comments

Comments

@dshukertjr
Copy link
Member

Related to supabase/supabase-dart#45

@dshukertjr dshukertjr self-assigned this Aug 24, 2021
@bdlukaa
Copy link
Contributor

bdlukaa commented Aug 24, 2021

cool

@dshukertjr dshukertjr removed their assignment Aug 25, 2021
@dshukertjr
Copy link
Member Author

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.
dart-lang/pub#2227

What do you guys think @bdlukaa @phamhieu ?

@dshukertjr
Copy link
Member Author

I guess worst case we can just have a version.dart file that we manually update every time we publish a new package.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants