From 54beda6309af7cd2156dc73ef2c82e631aed2b22 Mon Sep 17 00:00:00 2001 From: Alexandre Roux Date: Fri, 21 Jun 2024 10:40:01 +0200 Subject: [PATCH] feat: add universal interop def --- functions_node/lib/src/universal/ff_universal.dart | 12 ++++++++++++ .../lib/src/universal_legacy/ff_universal_io.dart | 2 +- 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/functions_node/lib/src/universal/ff_universal.dart b/functions_node/lib/src/universal/ff_universal.dart index 634020b..1b39b45 100644 --- a/functions_node/lib/src/universal/ff_universal.dart +++ b/functions_node/lib/src/universal/ff_universal.dart @@ -1,3 +1,15 @@ +import 'package:tekartik_firebase_functions_node/src/ff_universal_common.dart'; + +import 'ff_universal.dart'; + export 'ff_universal_stub.dart' if (dart.library.js_interop) 'ff_universal_node.dart' if (dart.library.io) 'ff_universal_io.dart'; + +@Deprecated('Use firebaseFunctionsUniversal') +FirebaseFunctionsUniversal get firebaseFunctionsUniversalV1 => + firebaseFunctionsUniversal; + +@Deprecated('Use firebaseFunctionsUniversal') +FirebaseFunctionsUniversal get firebaseFunctionsUniversalV2 => + firebaseFunctionsUniversal; diff --git a/functions_node/lib/src/universal_legacy/ff_universal_io.dart b/functions_node/lib/src/universal_legacy/ff_universal_io.dart index 4c4c5b3..c03f387 100644 --- a/functions_node/lib/src/universal_legacy/ff_universal_io.dart +++ b/functions_node/lib/src/universal_legacy/ff_universal_io.dart @@ -12,7 +12,7 @@ class FirebaseFunctionsHttpUniversalIo extends FirebaseFunctionsHttpUniversal { final FirebaseFunctionsUniversal firebaseFunctionsUniversal = FirebaseFunctionsHttpUniversalIo(); -final FirebaseFunctionsUniversal firebaseFunctionsUniversalV1 = +FirebaseFunctionsUniversal get firebaseFunctionsUniversalV1 => firebaseFunctionsUniversal; FirebaseFunctionsUniversal get firebaseFunctionsUniversalV2 =>