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

Support sentry.properties #42

Closed
marandaneto opened this issue Sep 7, 2022 · 4 comments · Fixed by #191
Closed

Support sentry.properties #42

marandaneto opened this issue Sep 7, 2022 · 4 comments · Fixed by #191
Assignees
Labels

Comments

@marandaneto
Copy link
Contributor

Right now the configuration is read thru the plugin configuration or via env. var.
Sentry Wizard is able to generate a properties file, the plugin could read the conf. from this file as well.

@marandaneto marandaneto moved this to Needs Discussion in Mobile & Cross Platform SDK Sep 7, 2022
@marandaneto marandaneto moved this from Needs Discussion to Backlog in Mobile & Cross Platform SDK Sep 15, 2022
@marandaneto marandaneto added the up-for-grabs A free for all! label May 5, 2023
@PawlikMichal25
Copy link

PawlikMichal25 commented May 17, 2023

Just a small note:
If someone is using pubspec.yaml configuration then it's impossible (as far as I know) to read environment variables inside it eg:

sentry:
   upload_debug_symbols: true
   project: ${PROJECT_FLAVOR}
   auth_token: ${AUTH_TOKEN}

It would be amazing if it was possible with this config file

@marandaneto
Copy link
Contributor Author

@PawlikMichal25 can you just export the env var in your environment?
If you omit project and export SENTRY_PROJECT also works, same for the token.

@PawlikMichal25
Copy link

I'm aware and yes, that works.
But still, if someone needs a custom configuration, I think it would nice to have everything in one place, instead of some parts in pubspec.yaml and some env variables

@jtmuller5
Copy link

  auth_token: ${AUTH_TOKEN}

It is not possible to use environment variables in pubspec: dart-lang/pub#1358

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

5 participants