Skip to content

Commit

Permalink
refactor(functions): remove deprecated Android API usages (#7986)
Browse files Browse the repository at this point in the history
  • Loading branch information
russellwheatley committed Feb 3, 2022
1 parent 6557740 commit 232e5f8
Showing 1 changed file with 3 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

package io.flutter.plugins.firebase.functions;

import android.net.Uri;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import com.google.android.gms.tasks.Task;
Expand Down Expand Up @@ -32,10 +33,6 @@ public class FlutterFirebaseFunctionsPlugin
private static final String METHOD_CHANNEL_NAME = "plugins.flutter.io/firebase_functions";
private MethodChannel channel;

private FlutterFirebaseFunctionsPlugin(MethodChannel channel) {
this.channel = channel;
}

/**
* Default Constructor.
*
Expand Down Expand Up @@ -74,11 +71,8 @@ private Task<Object> httpsFunctionCall(Map<String, Object> arguments) {
Object parameters = arguments.get("parameters");

if (origin != null) {
// TODO(helenaford): Placeholder logic for useEmulator when available
// Uri originUri = Uri.parse(origin);
// firebaseFunctions.useEmulator(originUri.getHost(), originUri.getPort());

firebaseFunctions.useFunctionsEmulator(origin);
Uri originUri = Uri.parse(origin);
firebaseFunctions.useEmulator(originUri.getHost(), originUri.getPort());
}

HttpsCallableReference httpsCallableReference =
Expand Down

0 comments on commit 232e5f8

Please sign in to comment.