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

Environment configurations management #213

Open
mamillastre opened this issue Mar 5, 2024 · 1 comment
Open

Environment configurations management #213

mamillastre opened this issue Mar 5, 2024 · 1 comment

Comments

@mamillastre
Copy link

mamillastre commented Mar 5, 2024

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:

  • 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
@mamillastre mamillastre changed the title Environment management Environment configuration management Mar 6, 2024
@mamillastre mamillastre changed the title Environment configuration management Environment configurations management Mar 6, 2024
@mamillastre
Copy link
Author

The 1.0.0 was just release on npm: https://www.npmjs.com/package/@mamillastre/capacitor-environment

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

No branches or pull requests

1 participant