Skip to content

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

VariableTypeDefaultDescription
appNamestringMyAppThe name of your application
isForMonorepobooleantrueWhether this is being generated as part of a monorepo

Usage

Interactive

bash
archipelago generate shared_app_config

Non-interactive (CI)

bash
archipelago generate shared_app_config --config my_config.json

Config 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

Built by Banua Coder