From a85d087729ef74dbbe0ebd3c1bc04b38ff5ed7d5 Mon Sep 17 00:00:00 2001 From: Alexandre Roux Date: Thu, 1 Aug 2024 10:47:34 +0200 Subject: [PATCH] move baseUri to function call instance --- functions_call/lib/src/functions_call.dart | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/functions_call/lib/src/functions_call.dart b/functions_call/lib/src/functions_call.dart index 9dda5a4..ada1dae 100644 --- a/functions_call/lib/src/functions_call.dart +++ b/functions_call/lib/src/functions_call.dart @@ -76,16 +76,21 @@ mixin FirebaseFunctionsCallDefaultMixin implements FirebaseFunctionsCall { /// Firebase functions call service abstract class FirebaseFunctionsCallService { /// Get the firebase functions call instance - FirebaseFunctionsCall functionsCall(App app, {required String region}); + FirebaseFunctionsCall functionsCall(App app, + {required String region, + + /// Not used in flutter + Uri? baseUri}); } /// Firebase functions call service default mixin mixin FirebaseFunctionsCallServiceDefaultMixin implements FirebaseFunctionsCallService { @override - FirebaseFunctionsCall functionsCall(App app, {required String region}) { + FirebaseFunctionsCall functionsCall(App app, + {required String region, Uri? baseUri}) { throw UnimplementedError( - 'FirebaseFunctionsCallService.functionsCall(${app.name}, $region)'); + 'FirebaseFunctionsCallService.functionsCall(${app.name}, $region${baseUri != null ? ', $baseUri' : ''})'); } }