-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmain.dart
25 lines (20 loc) · 827 Bytes
/
main.dart
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
import 'package:mobile_app_flutter_redux/client/infra/basic/start_app.dart';
import '../dao/simulated_dao/simulated_dao.dart';
import '../run_config/ab_testing.dart';
import '../run_config/run_config.dart';
void main() async {
//
/// A run-configuration let us change some of the app characteristics at compile time.
/// We can have multiple main methods with different run-configurations, or we can create
/// the run-configuration programmatically.
var runConfig = RunConfig(
//
/// If we inject the REAL dao, it will connect to the real backend service.
/// If we inject the SIMULATED dao, it will simulate the backend service.
// dao: RealDao(),
dao: SimulatedDao(), // Another option.
ifShowRunConfigInTheConfigScreen: true,
abTesting: AbTesting.A,
);
startApp(runConfig);
}