Skip to content

Latest commit

 

History

History
21 lines (16 loc) · 855 Bytes

2-flavors-and-build-settings.md

File metadata and controls

21 lines (16 loc) · 855 Bytes

2 - Flavors and build settings

Actions

  • Creating iOS/Android flavors
  • Creating VS Code launch config
  • Adding ENV configuration loader

Description

Creating iOS/Android flavors

This app has 2 flavors: UAT and PROD. Docs. It can have additional JSON configuration for each flavor. In this case it means you can build:

  • UAT flavor with UAT(ENV var) Configuration Json
  • UAT flavor with PROD Configuration Json
  • PROD flavor with UAT Configuration Json
  • PROD flavor with PROD Configuration Json

Configuration Json can have i.e. API addresses. This way you can connect to your BE environments using various flavors.

Adding ENV configuration loader

It's up to you how your Flutter app handles configurations JSON. Just stay consistent with your files across environments.