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

Environment specific config generator #622

Merged
merged 6 commits into from
May 6, 2020

Conversation

TatsuUkraine
Copy link
Contributor

Note: Not sure if it was an appropriate place in source.md, let me know if you want me to move it under another section

Dart command tool to generate Dart class and .env files with keys and params from command.

Allows to configure set of fields, provided in environment_config.yaml or in package.yaml.

Command can be executed for any Flutter application from terminal like

flutter pub run environment_config:generate --<key_name>=<key_value>

with key_names specified in YAML file and key_values for particular build environment.

Primarily created to simplify Flutter App config generation during Application builds in CodeMagic, Bitrise or any other build automation tools.

Dart command to generate Dart class and `.env` files with keys and params from command.

Allows to configure set of fields, provided in `environment_config.yaml` or in `package.yaml`.

Command can be executed for any Flutter application from terminal like
```
flutter pub run environment_config:generate --<key_name>=<key_value>
```
with `key_name`s specified in YAML file and `key_value`s for particular build environment.

Primarily created to simplify Flutter App config generation during Application builds in CodeMagic, Bitrise or any other build automation tools.
@renancaraujo renancaraujo self-assigned this Feb 27, 2020
Copy link
Collaborator

@renancaraujo renancaraujo left a comment

Choose a reason for hiding this comment

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

Looks great. @Solido What about the placement on the MD?

@Solido
Copy link
Owner

Solido commented Mar 2, 2020

Still deciding if it's belongs to Dart or Flutter awesome list !

@TatsuUkraine
Copy link
Contributor Author

@Solido I made this package to be able work in both. But primarily for Flutter and CI/CD tools. Since by default Flutter doesn't provide ability to define and use env variables during build process from the box (for example like webpack for JS), this particular package was created to solve this. Also it allows to generate .env files, that can be used by other packages inside Dart code and inside native (Android/iOS) layer

@TatsuUkraine
Copy link
Contributor Author

@Solido @renancaraujo hello) any update on this PR? just curious)

@jogboms
Copy link
Collaborator

jogboms commented May 4, 2020

Truthfully, I like this package, I haven't had the time or need to explore it but it is really promising. Even though an awesome dart package, it could also pass in here but where to put it. I believe the Utilities tab would do more justice.

@TatsuUkraine
Copy link
Contributor Author

@jogboms should I create PR with it in Awesome Dart?

@jogboms
Copy link
Collaborator

jogboms commented May 4, 2020

As much as that would be nice too I believe it can also stay here but in the utilities section.

@Solido
Copy link
Owner

Solido commented May 4, 2020

@jogboms I think you're in charge for this one.
Put it where you think it belongs & merge.
Thanks !!

@TatsuUkraine
Copy link
Contributor Author

@jogboms link is moved under utilities section

@jogboms jogboms merged commit d659ca4 into Solido:master May 6, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
4 participants