Skip to content

Commit

Permalink
Stable
Browse files Browse the repository at this point in the history
  • Loading branch information
hmziqrs committed Nov 18, 2024
1 parent dd913a3 commit 47cfcc1
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 18 deletions.
25 changes: 9 additions & 16 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
"type": "dart"
},
{
"name": "sdk gphone64 x86 64 (mobile)",
"deviceId": "emulator-5554",
"name": "macOS (desktop)",
"deviceId": "macos",
"type": "dart",
"request": "launch",
"args": [
Expand All @@ -17,14 +17,8 @@
]
},
{
"name": "Windows (desktop)",
"deviceId": "windows",
"type": "dart",
"request": "launch"
},
{
"name": "Chrome (web)",
"deviceId": "chrome",
"name": "Mac Designed for iPad (desktop)",
"deviceId": "mac-designed-for-ipad",
"type": "dart",
"request": "launch",
"args": [
Expand All @@ -33,8 +27,8 @@
]
},
{
"name": "Edge (web)",
"deviceId": "edge",
"name": "Chrome (web)",
"deviceId": "chrome",
"type": "dart",
"request": "launch",
"args": [
Expand All @@ -47,10 +41,9 @@
{
"name": "current",
"configurations": [
"sdk gphone64 x86 64 (mobile)",
"Windows (desktop)",
"Chrome (web)",
"Edge (web)"
"macOS (desktop)",
"Mac Designed for iPad (desktop)",
"Chrome (web)"
]
}
]
Expand Down
5 changes: 4 additions & 1 deletion lib/main.firebase.dart
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,17 @@ import 'package:flutter/services.dart';
import 'package:flutter_riverpod/flutter_riverpod.dart';
import 'package:gandalf/Utils.dart';
import 'package:gandalf/configs/app.dart';
import 'package:gandalf/firebase_options.dart';
import 'package:google_mobile_ads/google_mobile_ads.dart';
import 'package:video_player_media_kit/video_player_media_kit.dart';

import 'Navigator.dart';

void main() async {
WidgetsFlutterBinding.ensureInitialized();
await Firebase.initializeApp();
await Firebase.initializeApp(
options: DefaultFirebaseOptions.currentPlatform,
);

VideoPlayerMediaKit.ensureInitialized(
web: false,
Expand Down
5 changes: 4 additions & 1 deletion lib/main.web.dart
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,16 @@ import 'package:firebase_core/firebase_core.dart';
import 'package:flutter/material.dart';
import 'package:flutter_riverpod/flutter_riverpod.dart';
import 'package:gandalf/configs/app.dart';
import 'package:gandalf/firebase_options.dart';
import 'package:video_player_media_kit/video_player_media_kit.dart';

import 'Navigator.dart';

void main() async {
WidgetsFlutterBinding.ensureInitialized();
await Firebase.initializeApp();
await Firebase.initializeApp(
options: DefaultFirebaseOptions.currentPlatform,
);
VideoPlayerMediaKit.ensureInitialized(
web: true,
linux: false,
Expand Down

0 comments on commit 47cfcc1

Please sign in to comment.