mirror of
https://github.com/SyncrowIOT/syncrow-app.git
synced 2025-11-26 12:44:54 +00:00
firebase prod setup and flavors enhancement.
This commit is contained in:
@ -1,14 +1,16 @@
|
||||
import 'dart:async';
|
||||
|
||||
import 'package:firebase_core/firebase_core.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter_bloc/flutter_bloc.dart';
|
||||
import 'package:flutter_dotenv/flutter_dotenv.dart';
|
||||
import 'package:syncrow_app/firebase_options_prod.dart';
|
||||
import 'package:permission_handler/permission_handler.dart';
|
||||
import 'package:syncrow_app/firebase_options.dart';
|
||||
import 'package:syncrow_app/services/locator.dart';
|
||||
import 'package:syncrow_app/utils/bloc_observer.dart';
|
||||
import 'package:syncrow_app/utils/helpers/localization_helpers.dart';
|
||||
import 'my_app.dart';
|
||||
|
||||
import 'my_app.dart';
|
||||
|
||||
const String buildNumber = '1.0.30+18';
|
||||
|
||||
@ -25,6 +27,10 @@ void main() {
|
||||
// HttpOverrides.global = MyHttpOverrides();
|
||||
WidgetsFlutterBinding.ensureInitialized();
|
||||
|
||||
if (await Permission.nearbyWifiDevices.request().isGranted) {
|
||||
// Permission is granted
|
||||
}
|
||||
|
||||
//license for the font
|
||||
// LicenseRegistry.addLicense(() async* {
|
||||
// final license =
|
||||
@ -36,7 +42,7 @@ void main() {
|
||||
initialSetup();
|
||||
|
||||
await Firebase.initializeApp(
|
||||
options: DefaultFirebaseOptionsStaging.currentPlatform,
|
||||
options: DefaultFirebaseOptions.currentPlatform,
|
||||
);
|
||||
|
||||
//final SharedPreferences prefs = await SharedPreferences.getInstance();
|
||||
|
||||
Reference in New Issue
Block a user