@capgo/capacitor-env
Securely manage environment variables and configuration across different build environments
Overview
Section titled “Overview”Securely manage environment variables and configuration across different build environments
Start with getKey() and the other core methods listed below.
Platform support
Section titled “Platform support”| Platform | Support | Notes |
|---|---|---|
| iOS | Yes | Native |
| Android | Yes | Native |
| Web | No | Guard with Capacitor.getPlatform() |
Core Capabilities
Section titled “Core Capabilities”getKey- Retrieves the value of a specific environment variable by key.
Public API
Section titled “Public API”| Method | Description |
|---|---|
getKey | Retrieves the value of a specific environment variable by key. |
getPluginVersion | Get the version of the native Capacitor plugin. |
Source Of Truth
Section titled “Source Of Truth”This reference is synced from src/definitions.ts in capacitor-env.
Keep going from @capgo/capacitor-env
Section titled “Keep going from @capgo/capacitor-env”If you are using @capgo/capacitor-env to plan native plugin work, connect it with Using @capgo/capacitor-env for the native capability in Using @capgo/capacitor-env, Capgo Plugin Directory for the product workflow in Capgo Plugin Directory, Capacitor Plugins by Capgo for the implementation detail in Capacitor Plugins by Capgo, Adding or Updating Plugins for the implementation detail in Adding or Updating Plugins, and Ionic Enterprise Plugin Alternatives for the product workflow in Ionic Enterprise Plugin Alternatives.