Files
sf-app-platform/apps/mobile_app/lib/config/env/environment_enum.dart
JulianAlcala ef0abc2f85 feat: add multi-environment support (development, staging, production)
- 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
2026-03-01 00:12:47 +01:00

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,
);
}
}