This section covers all topics important for Developers.
First of all we need to retrieve all referenced packages with the following command.
dart run pub getThen we need to generate some code with the following command.
dart run build_runner build --delete-conflicting-outputsFor the application to work correctly we need to specify some environment variables. Therefore copy the files and fill in its values afterwards.
Flutter specific
cp ./.env.local.example ./.env.localSupabase specific
cp ./supabase/.env.local.example ./supabase/.env.localℹ️ You can leave the value for the SUPABASE_URL key empty since we fill this with the following script.
For Deep Links to work correctly on external devices we need to set out local IP address to some files. Therefore we created a script to handle this.
- Set the executable permission.
chmod +x ./scripts/set_temporary_values.sh- Run the script.
./scripts/set_temporary_values.shTherefore we also created a script that resets the values.
- Set the executable permission.
chmod +x ./scripts/reset_temporary_values.sh- Run the script.
./scripts/reset_temporary_values.shMake sure Docker is up and running in the background before running this command.
supabase startWhen testing Deep Links in a Browser no matter whether external device or simulator make sure the Web App is up and running on Port 8080 in the background.
Any platform
flutter run --debug --dart-define-from-file=.env.localmacOS
flutter run --debug --dart-define-from-file=.env.local -d macosWindows
flutter run --debug --dart-define-from-file=.env.local -d windowsWeb
flutter run --debug --dart-define-from-file=.env.local --web-port=8080 -d chrome- Support for Windows Deep Links