java-james / flutter_dotenv

Loads environment variables from `.env`.
https://pub.dartlang.org/packages/flutter_dotenv
MIT License
213 stars 48 forks source link

Bitrise "Flutter Test" Error reading .env #98

Open michelep2000 opened 6 months ago

michelep2000 commented 6 months ago

In the documentation it says that we have to add the .env to the git ignore file, But i am using Bitrise that is a continuous integration tool that have one step named Flutter Test and it's failing because it's checking this .env and it doesn't exists.

I imagine that the error occurs when i call await dotenv.load(fileName: '.env'); and it's trying to read this .env that doesn't exist because it's not in the repository.

jaxnz commented 5 months ago

Not sure if you got past this, but each app has files you can add in the settings image