- 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
16 lines
416 B
Dart
16 lines
416 B
Dart
import 'package:sf_app_platform/config/env/environment.dart';
|
|
import 'package:sf_app_platform/main_development.dart' as dev;
|
|
import 'package:sf_app_platform/main_staging.dart' as staging;
|
|
import 'package:sf_app_platform/main_production.dart' as prod;
|
|
|
|
void main() {
|
|
switch (Environment.env) {
|
|
case 'staging':
|
|
staging.main();
|
|
case 'production':
|
|
prod.main();
|
|
default:
|
|
dev.main();
|
|
}
|
|
}
|