You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Note that this passes unit tests but currently e2e tests do *not* correctly
use the emulator - the useEmulator() call seems to never happen? And if it were to
happen then many of the tests would fail
Publishing for visibility as others may know better how to hook it up
Copy file name to clipboardExpand all lines: packages/firebase_auth/firebase_auth/android/src/main/java/io/flutter/plugins/firebase/auth/Constants.java
Copy file name to clipboardExpand all lines: packages/firebase_auth/firebase_auth/android/src/main/java/io/flutter/plugins/firebase/auth/FlutterFirebaseAuthPlugin.java
Copy file name to clipboardExpand all lines: packages/firebase_auth/firebase_auth_platform_interface/lib/src/method_channel/method_channel_firebase_auth.dart
+8
Original file line number
Diff line number
Diff line change
@@ -254,6 +254,14 @@ class MethodChannelFirebaseAuth extends FirebaseAuthPlatform {
254
254
returnthis;
255
255
}
256
256
257
+
@override
258
+
Future<void> useEmulator(String host, int port) async {
Copy file name to clipboardExpand all lines: packages/firebase_auth/firebase_auth_platform_interface/lib/src/platform_interface/platform_interface_firebase_auth.dart
+11
Original file line number
Diff line number
Diff line change
@@ -88,6 +88,17 @@ abstract class FirebaseAuthPlatform extends PlatformInterface {
88
88
throwUnimplementedError('setInitialValues() is not implemented');
89
89
}
90
90
91
+
/// Changes this instance to point to an Auth emulator running locally.
92
+
///
93
+
/// Set the [host] and [port] of the local emulator, such as "http://localhost"
94
+
/// with port 9099
95
+
///
96
+
/// Note: Must be called immediately, prior to accessing auth methods.
97
+
/// Do not use with production credentials as emulator traffic is not encrypted.
98
+
Future<void> useEmulator(String host, int port) {
99
+
throwUnimplementedError("useEmulator() is not implemented");
100
+
}
101
+
91
102
/// Returns the current [User] if they are currently signed-in, or `null` if
Copy file name to clipboardExpand all lines: packages/firebase_auth/firebase_auth_platform_interface/test/method_channel_tests/method_channel_firebase_auth_test.dart
Copy file name to clipboardExpand all lines: packages/firebase_auth/firebase_auth_platform_interface/test/platform_interface_tests/platform_interface_auth_test.dart
+10
Original file line number
Diff line number
Diff line change
@@ -401,6 +401,16 @@ void main() {
401
401
fail('Should have thrown an [UnimplementedError]');
0 commit comments