2024-09-24 08:21:13 +06:30
|
|
|
import 'package:fcs/firebase_options.dart';
|
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();
|
2024-09-24 08:21:13 +06:30
|
|
|
await Firebase.initializeApp(
|
2024-10-01 18:15:53 +06:30
|
|
|
options: DefaultFirebaseOptions.currentPlatform,
|
|
|
|
|
);
|
2024-09-24 08:21:13 +06:30
|
|
|
|
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,
|
2025-04-03 11:41:04 +06:30
|
|
|
// apiURL: "http://192.168.100.150:9090",
|
|
|
|
|
apiURL: "https://asia-northeast1-fcs-dev1.cloudfunctions.net/API13",
|
2020-05-29 07:45:27 +06:30
|
|
|
level: Level.ALL);
|
2024-09-22 20:46:00 +06:30
|
|
|
runApp(App(title: "FCS - Dev"));
|
2020-05-29 07:45:27 +06:30
|
|
|
}
|