2021-09-11 16:56:20 +06:30
|
|
|
import 'package:firebase_core/firebase_core.dart';
|
2021-09-11 08:27:27 +06:30
|
|
|
import 'package:firebase_messaging/firebase_messaging.dart';
|
2020-05-29 07:45:27 +06:30
|
|
|
import 'package:flutter/material.dart';
|
|
|
|
|
import 'package:logging/logging.dart';
|
|
|
|
|
|
|
|
|
|
import 'app.dart';
|
2020-10-07 02:33:06 +06:30
|
|
|
import 'config.dart';
|
2021-09-11 08:27:27 +06:30
|
|
|
import 'data/provider/messaging_fcm.dart';
|
2020-05-29 07:45:27 +06:30
|
|
|
|
2021-09-11 16:56:20 +06:30
|
|
|
Future<void> main() async {
|
2020-09-06 02:36:57 +06:30
|
|
|
WidgetsFlutterBinding.ensureInitialized();
|
2021-09-11 16:56:20 +06:30
|
|
|
await Firebase.initializeApp();
|
2021-09-11 08:27:27 +06:30
|
|
|
FirebaseMessaging.onBackgroundMessage(backgroundMessageHandler);
|
|
|
|
|
|
2020-05-29 07:45:27 +06:30
|
|
|
Config(
|
2020-08-26 16:01:13 +06:30
|
|
|
flavor: Flavor.DEV,
|
2020-05-29 07:45:27 +06:30
|
|
|
color: Colors.blue,
|
2021-10-09 17:08:28 +06:30
|
|
|
apiURL: "https://asia-northeast1-fcs-dev1.cloudfunctions.net/API12",
|
2024-03-02 18:15:05 +06:30
|
|
|
reportURL: "http://petrok.mokkon.com:7071",
|
2020-09-20 05:34:49 +06:30
|
|
|
reportProjectID: "fcs-dev",
|
2021-01-05 18:03:51 +06:30
|
|
|
bucketName: "gs://fcs-dev1-us",
|
2020-05-29 07:45:27 +06:30
|
|
|
level: Level.ALL);
|
2024-01-23 15:15:07 +06:30
|
|
|
runApp(App(title:"FCS - Dev"));
|
2020-05-29 07:45:27 +06:30
|
|
|
}
|