mirror of
https://github.com/DungeonPaper/dungeon-paper-app.git
synced 2026-05-17 17:58:11 +00:00
fix: web build
This commit is contained in:
@@ -188,4 +188,4 @@ class AuthProvider extends ChangeNotifier
|
||||
mixin AuthProviderMixin {
|
||||
AuthProvider get authProvider =>
|
||||
AuthProvider.of(appGlobalKey.currentContext!);
|
||||
}
|
||||
}
|
||||
@@ -1,3 +1,4 @@
|
||||
import 'package:dungeon_paper/core/platform_helper.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:system_date_time_format/system_date_time_format.dart';
|
||||
|
||||
@@ -25,6 +26,9 @@ class IntlService extends ChangeNotifier {
|
||||
}
|
||||
|
||||
static void _loadDateTimeFormats() async {
|
||||
if (PlatformHelper.isWeb) {
|
||||
return;
|
||||
}
|
||||
final fmt = SystemDateTimeFormat();
|
||||
final dtFormat = await fmt.getDatePattern();
|
||||
final tmFormat = await fmt.getTimePattern();
|
||||
|
||||
@@ -8,4 +8,4 @@ class MultiPlatformScrollBehavior extends MaterialScrollBehavior {
|
||||
PointerDeviceKind.touch,
|
||||
PointerDeviceKind.mouse,
|
||||
};
|
||||
}
|
||||
}
|
||||
@@ -49,7 +49,7 @@ Future<void> _init() async {
|
||||
await Firebase.initializeApp(options: DefaultFirebaseOptions.currentPlatform);
|
||||
await loadSharedPrefs();
|
||||
await initRemoteConfig();
|
||||
if (PlatformHelper.isDesktop && !PlatformHelper.isWeb) {
|
||||
if (!PlatformHelper.isWeb && PlatformHelper.isDesktop) {
|
||||
await windowInit();
|
||||
}
|
||||
FlutterNativeSplash.remove();
|
||||
|
||||
@@ -6,7 +6,6 @@ import FlutterMacOS
|
||||
import Foundation
|
||||
|
||||
import cloud_firestore
|
||||
import firebase_analytics
|
||||
import firebase_auth
|
||||
import firebase_core
|
||||
import firebase_remote_config
|
||||
@@ -26,7 +25,6 @@ import window_manager
|
||||
|
||||
func RegisterGeneratedPlugins(registry: FlutterPluginRegistry) {
|
||||
FLTFirebaseFirestorePlugin.register(with: registry.registrar(forPlugin: "FLTFirebaseFirestorePlugin"))
|
||||
FLTFirebaseAnalyticsPlugin.register(with: registry.registrar(forPlugin: "FLTFirebaseAnalyticsPlugin"))
|
||||
FLTFirebaseAuthPlugin.register(with: registry.registrar(forPlugin: "FLTFirebaseAuthPlugin"))
|
||||
FLTFirebaseCorePlugin.register(with: registry.registrar(forPlugin: "FLTFirebaseCorePlugin"))
|
||||
FLTFirebaseRemoteConfigPlugin.register(with: registry.registrar(forPlugin: "FLTFirebaseRemoteConfigPlugin"))
|
||||
|
||||
24
pubspec.lock
24
pubspec.lock
@@ -366,30 +366,6 @@ packages:
|
||||
url: "https://pub.dev"
|
||||
source: hosted
|
||||
version: "8.0.7"
|
||||
firebase_analytics:
|
||||
dependency: "direct main"
|
||||
description:
|
||||
name: firebase_analytics
|
||||
sha256: "064e5b57b0693305946b7caa6a80ed80a918f46804c247b6cd7ed9cd327df48f"
|
||||
url: "https://pub.dev"
|
||||
source: hosted
|
||||
version: "11.2.1"
|
||||
firebase_analytics_platform_interface:
|
||||
dependency: transitive
|
||||
description:
|
||||
name: firebase_analytics_platform_interface
|
||||
sha256: d094547c9022c404b5ca39b7209607fc80e75e39d38875f050508fa4346b3e74
|
||||
url: "https://pub.dev"
|
||||
source: hosted
|
||||
version: "4.2.1"
|
||||
firebase_analytics_web:
|
||||
dependency: transitive
|
||||
description:
|
||||
name: firebase_analytics_web
|
||||
sha256: "06dc023b0144c0df630a56b6262cc9e7d6069fe78148853d97614dbefb6ea923"
|
||||
url: "https://pub.dev"
|
||||
source: hosted
|
||||
version: "0.5.9+1"
|
||||
firebase_auth:
|
||||
dependency: "direct main"
|
||||
description:
|
||||
|
||||
17
pubspec.yaml
17
pubspec.yaml
@@ -27,18 +27,17 @@ environment:
|
||||
dependencies:
|
||||
animations: ^2.0.2
|
||||
cached_network_image: ^3.3.0
|
||||
cloud_firestore: ^5.1.0
|
||||
cloud_firestore: ^5.2.1
|
||||
cupertino_icons: ^1.0.2
|
||||
# dungeon_world_data:
|
||||
# path: ../dungeon_world_data
|
||||
dungeon_world_data: ^3.1.1
|
||||
dynamic_themes: ^1.1.0
|
||||
email_validator: ^3.0.0
|
||||
firebase_analytics: ^11.2.0
|
||||
firebase_auth: ^5.1.2
|
||||
firebase_core: ^3.2.0
|
||||
firebase_remote_config: ^5.0.3
|
||||
firebase_storage: ^12.1.1
|
||||
firebase_auth: ^5.1.4
|
||||
firebase_core: ^3.3.0
|
||||
firebase_remote_config: ^5.0.4
|
||||
firebase_storage: ^12.1.3
|
||||
file_picker: ^8.0.6
|
||||
flutter:
|
||||
sdk: flutter
|
||||
@@ -65,10 +64,10 @@ dependencies:
|
||||
path: ^1.8.1
|
||||
path_provider: ^2.0.9
|
||||
popover: ^0.3.0+1
|
||||
provider: ^6.1.1
|
||||
provider: ^6.1.2
|
||||
pub_semver: ^2.1.4
|
||||
sentry: ^8.4.0
|
||||
sentry_flutter: ^8.4.0
|
||||
sentry: ^8.7.0
|
||||
sentry_flutter: ^8.7.0
|
||||
shared_preferences: ^2.0.13
|
||||
sign_in_with_apple: ^6.1.1
|
||||
skeleton_loader: ^2.0.0+4
|
||||
|
||||
@@ -24,6 +24,11 @@
|
||||
<meta name="apple-mobile-web-app-capable" content="yes" />
|
||||
<meta name="apple-mobile-web-app-status-bar-style" content="black" />
|
||||
<meta name="apple-mobile-web-app-title" content="Dungeon Paper" />
|
||||
<meta
|
||||
name="google-signin-client_id"
|
||||
content="305638738640-jqbgj8aaol7685ipt6vrtmfiu413kke1.apps.googleusercontent.com"
|
||||
/>
|
||||
|
||||
<link rel="apple-touch-icon" href="icons/Icon-192.png" />
|
||||
<link
|
||||
rel="stylesheet"
|
||||
|
||||
Reference in New Issue
Block a user