mirror of
https://github.com/lichess-org/mobile.git
synced 2026-05-26 13:50:52 +00:00
67bd78a53c
upload the app to F-Droid store.
56 lines
1.4 KiB
Dart
56 lines
1.4 KiB
Dart
// File used to remove Firebase dependencies.
|
|
import 'package:flutter/foundation.dart';
|
|
|
|
class RemoteMessage {
|
|
Map<String, dynamic> data = const <String, dynamic>{};
|
|
RemoteNotification? notification;
|
|
}
|
|
|
|
class RemoteNotification {
|
|
String? title;
|
|
String? body;
|
|
}
|
|
|
|
class Firebase {
|
|
static Firebase instance = Firebase();
|
|
|
|
static Future<void> initializeApp({DefaultFirebaseOptions? options}) {
|
|
return Future.value();
|
|
}
|
|
}
|
|
|
|
class DefaultFirebaseOptions {
|
|
static DefaultFirebaseOptions? get currentPlatform => null;
|
|
}
|
|
|
|
typedef BackgroundMessageHandler = Future<void> Function(RemoteMessage message);
|
|
|
|
class FirebaseMessaging {
|
|
static FirebaseMessaging instance = FirebaseMessaging();
|
|
|
|
static Stream<RemoteMessage> get onMessage => const Stream.empty();
|
|
|
|
static Stream<RemoteMessage> get onMessageOpenedApp => const Stream.empty();
|
|
|
|
static void onBackgroundMessage(BackgroundMessageHandler handler) {}
|
|
}
|
|
|
|
class FirebaseCrashlytics {
|
|
static FirebaseCrashlytics instance = FirebaseCrashlytics();
|
|
|
|
Future<void> recordError(
|
|
dynamic exception,
|
|
StackTrace? stack, {
|
|
dynamic reason,
|
|
Iterable<Object> information = const [],
|
|
bool? printDetails,
|
|
bool fatal = false,
|
|
}) {
|
|
return Future.value();
|
|
}
|
|
|
|
void recordFlutterFatalError(FlutterErrorDetails flutterErrorDetails) {
|
|
return FlutterError.presentError(flutterErrorDetails);
|
|
}
|
|
}
|