utilities_sdk Free
Device info, package info, biometric utilities with clean architecture patterns.
Version: 2.0.0
Variables
| Variable | Type | Default | Description |
|---|---|---|---|
| appName | string | MyApp | Application name |
| organization | string | MyCompany | Your organization or company name |
| domain | string | com | Your organization's top-level domain |
| prefix | string | — | Unique prefix for component naming |
| includeDeviceInfo | boolean | true | Include device information utilities |
| includePackageInfo | boolean | true | Include package information utilities |
| includeBiometric | boolean | true | Include biometric authentication utilities |
| isForMonorepo | boolean | true | Whether this will be part of a monorepo structure |
| includeGenerated | boolean | false | Whether to include generated files in version control |
Usage
Interactive
bash
archipelago generate utilities_sdkNon-interactive (CI)
bash
archipelago generate utilities_sdk --config my_config.jsonConfig Template
json
{
"@appName": "Application name",
"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",
"@includeDeviceInfo": "Include device information utilities",
"includeDeviceInfo": true,
"@includePackageInfo": "Include package information utilities",
"includePackageInfo": true,
"@includeBiometric": "Include biometric authentication utilities",
"includeBiometric": true,
"@isForMonorepo": "Whether this will be part of a monorepo structure",
"isForMonorepo": true,
"@includeGenerated": "Whether to include generated files in version control",
"includeGenerated": false
}Generated Structure
Each utility is generated as a separate API/Impl split under utilities/. When isForMonorepo is true, packages are placed under shared/utilities/.
When includeDeviceInfo is true:
utilities/
└── device_info/
├── device_info_api/
│ ├── lib/
│ │ ├── device_info_api.dart
│ │ └── src/
│ │ ├── device_info_util.dart
│ │ └── supported_biometric.dart
│ └── pubspec.yaml
└── device_info_impl/
├── lib/
│ ├── device_info_impl.dart
│ └── src/
│ ├── di/
│ │ ├── injector.dart
│ │ └── register_module.dart
│ └── utils/
│ └── device_info_impl.dart
├── build.yaml
└── pubspec.yamlWhen includePackageInfo is true:
utilities/
└── package_info/
├── package_info_api/
│ ├── lib/
│ │ ├── package_info_api.dart
│ │ └── src/
│ │ └── package_info_util.dart
│ └── pubspec.yaml
└── package_info_impl/
├── lib/
│ ├── package_info_impl.dart
│ └── src/
│ ├── di/
│ │ ├── injector.dart
│ │ └── register_module.dart
│ └── utils/
│ └── package_info_impl.dart
├── build.yaml
└── pubspec.yamlNote: The
includeBiometricvariable exists inbrick.yamlbut biometric templates are not yet implemented. The variable is reserved for future use.