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
| Variable | Type | Default | Description |
|---|---|---|---|
| appName | string | MyApp | Application name for identification and naming |
| organization | string | MyCompany | Your organization or company name |
| domain | string | com | Your organization's top-level domain |
| prefix | string | — | Unique prefix for component naming |
| isForMonorepo | boolean | true | Whether this SDK will be generated for a monorepo structure |
| includeGenerated | boolean | false | Whether generated files should be included in version control |
Usage
Interactive
bash
archipelago generate core_infrastructure_packageNon-interactive (CI)
bash
archipelago generate core_infrastructure_package --config my_config.jsonConfig 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