Skip to content

Commit

Permalink
feat: add universal interop def
Browse files Browse the repository at this point in the history
  • Loading branch information
alextekartik committed Jun 21, 2024
1 parent 5ea9abb commit 54beda6
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
12 changes: 12 additions & 0 deletions functions_node/lib/src/universal/ff_universal.dart
Original file line number Diff line number Diff line change
@@ -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;
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ class FirebaseFunctionsHttpUniversalIo extends FirebaseFunctionsHttpUniversal {
final FirebaseFunctionsUniversal firebaseFunctionsUniversal =
FirebaseFunctionsHttpUniversalIo();

final FirebaseFunctionsUniversal firebaseFunctionsUniversalV1 =
FirebaseFunctionsUniversal get firebaseFunctionsUniversalV1 =>
firebaseFunctionsUniversal;

FirebaseFunctionsUniversal get firebaseFunctionsUniversalV2 =>
Expand Down

0 comments on commit 54beda6

Please sign in to comment.