This plugin takes advantage of the iOS schemes & Android product flavors to provide a JSON configuration to the running web application.
This extra configuration improves your environment management if you followed the Create Environment Specific Configuration guide.
The advantages of using this plugin instead of managing the environment inside the web application:
One web application build instead of one per environment
Better development experience in the native IDEs by only switching the scheme/flavor
On Android, build all the applications with one command (ex: gradlew bundleRelease) instead of one per environment
Plugin Request
Name: Environment Package:
@capacitor-community/environment
Platform(s)
This plugin supports web, android & iOS.
Existing Solutions
I have already implemented this plugin on my repo: https://github.com/mamillastre/capacitor-environment
Description
This plugin takes advantage of the iOS schemes & Android product flavors to provide a JSON configuration to the running web application. This extra configuration improves your environment management if you followed the Create Environment Specific Configuration guide.
The advantages of using this plugin instead of managing the environment inside the web application: