- Replace dotenv with compile-time dart-define-from-file config per flavor - Add Android product flavors with applicationIdSuffix and per-flavor AndroidManifest - Add iOS build configurations, schemes, per-flavor plists and entitlements - Configure ProGuard rules for R8 compatibility with Entrust/Antelop SDK - Restructure assets into shared/ and per-flavor directories - Generate per-flavor launcher icons for Android and iOS - Refactor app initialization into initApp() with per-flavor entry points - Update asset paths across auth, home, profile, splash modules and sf_shared
17 lines
440 B
Dart
17 lines
440 B
Dart
enum EnvironmentEnum {
|
|
development,
|
|
staging,
|
|
production;
|
|
|
|
bool get isDevelopment => this == EnvironmentEnum.development;
|
|
bool get isStaging => this == EnvironmentEnum.staging;
|
|
bool get isProduction => this == EnvironmentEnum.production;
|
|
|
|
static EnvironmentEnum fromString(String value) {
|
|
return EnvironmentEnum.values.firstWhere(
|
|
(e) => e.name == value,
|
|
orElse: () => EnvironmentEnum.development,
|
|
);
|
|
}
|
|
}
|