Skip to content

core_infrastructure_package Free

Essential core infrastructure SDK providing foundation for modular Flutter apps - DI setup, base patterns, logging, common helpers.

Version: 2.0.0

Variables

VariableTypeDefaultDescription
appNamestringMyAppApplication name for identification and naming
organizationstringMyCompanyYour organization or company name
domainstringcomYour organization's top-level domain
prefixstringUnique prefix for component naming
isForMonorepobooleantrueWhether this SDK will be generated for a monorepo structure
includeGeneratedbooleanfalseWhether generated files should be included in version control

Usage

Interactive

bash
archipelago generate core_infrastructure_package

Non-interactive (CI)

bash
archipelago generate core_infrastructure_package --config my_config.json

Config Template

json
{
  "@appName": "Application name for identification and naming",
  "appName": "MyApp",
  "@organization": "Your organization or company name",
  "organization": "MyCompany",
  "@domain": "Your organization's top-level domain",
  "domain": "com",
  "@prefix": "Unique prefix for component naming",
  "prefix": "App",
  "@isForMonorepo": "Whether this SDK will be generated for a monorepo structure",
  "isForMonorepo": true,
  "@includeGenerated": "Whether generated files should be included in version control",
  "includeGenerated": false
}

Generated Structure

shared/
└── core_infrastructure_sdk/
    ├── core_infrastructure_api/
    │   ├── lib/
    │   │   ├── core_infrastructure_api.dart
    │   │   └── src/
    │   │       ├── base/
    │   │       │   ├── base_use_case.dart
    │   │       │   └── either.dart
    │   │       ├── failures/
    │   │       │   └── failure.dart
    │   │       └── log/
    │   │           ├── log.dart
    │   │           └── log_type.dart
    │   ├── analysis_options.yaml
    │   └── pubspec.yaml
    └── core_infrastructure_impl/
        ├── lib/
        │   ├── core_infrastructure_impl.dart
        │   └── src/
        │       ├── di/
        │       │   ├── injector.dart
        │       │   └── register_module.dart
        │       ├── log/
        │       │   ├── filter/
        │       │   │   ├── filter.dart
        │       │   │   └── release_log_filter.dart
        │       │   ├── log.dart
        │       │   └── printer/
        │       │       ├── printer.dart
        │       │       └── simple_log_printer.dart
        │       └── utils/
        │           ├── core_injector_key.dart
        │           ├── extensions.dart
        │           ├── logger.dart
        │           └── utils.dart
        ├── analysis_options.yaml
        ├── build.yaml
        └── pubspec.yaml

Built by Banua Coder