shared_app_config Free
Centralized configuration package for environment variables and flavor management using envied for obfuscated compile-time env var injection.
Version: 1.0.0
Variables
| Variable | Type | Default | Description |
|---|---|---|---|
| appName | string | MyApp | The name of your application |
| isForMonorepo | boolean | true | Whether this is being generated as part of a monorepo |
Usage
Interactive
bash
archipelago generate shared_app_configNon-interactive (CI)
bash
archipelago generate shared_app_config --config my_config.jsonConfig Template
json
{
"@appName": "The name of your application",
"appName": "MyApp",
"@isForMonorepo": "Whether this is being generated as part of a monorepo",
"isForMonorepo": true
}Generated Structure
shared/
└── app_config/
├── .env.example
├── build.yaml
├── lib/
│ ├── app_config.dart # Barrel export
│ └── src/
│ ├── env/
│ │ ├── app_env.dart # Base env definition
│ │ ├── env_development.dart # Development env
│ │ ├── env_production.dart # Production env
│ │ └── env_staging.dart # Staging env
│ └── flavor.dart # Flavor enum
├── analysis_options.yaml
└── pubspec.yaml