diff --git a/packages/firebase_ui_auth/.gitignore b/packages/firebase_ui_auth/.gitignore
new file mode 100644
index 000000000000..96486fd93024
--- /dev/null
+++ b/packages/firebase_ui_auth/.gitignore
@@ -0,0 +1,30 @@
+# Miscellaneous
+*.class
+*.log
+*.pyc
+*.swp
+.DS_Store
+.atom/
+.buildlog/
+.history
+.svn/
+migrate_working_dir/
+
+# IntelliJ related
+*.iml
+*.ipr
+*.iws
+.idea/
+
+# The .vscode folder contains launch configuration and tasks you configure in
+# VS Code which you may wish to be included in version control, so this line
+# is commented out by default.
+#.vscode/
+
+# Flutter/Dart/Pub related
+# Libraries should not include pubspec.lock, per https://dart.dev/guides/libraries/private-files#pubspeclock.
+/pubspec.lock
+**/doc/api/
+.dart_tool/
+.packages
+build/
diff --git a/packages/firebase_ui_auth/.metadata b/packages/firebase_ui_auth/.metadata
new file mode 100644
index 000000000000..e7011f64f39d
--- /dev/null
+++ b/packages/firebase_ui_auth/.metadata
@@ -0,0 +1,10 @@
+# This file tracks properties of this Flutter project.
+# Used by Flutter tool to assess capabilities and perform upgrades etc.
+#
+# This file should be version controlled and should not be manually edited.
+
+version:
+ revision: f1875d570e39de09040c8f79aa13cc56baab8db1
+ channel: stable
+
+project_type: package
diff --git a/packages/firebase_ui_auth/CHANGELOG.md b/packages/firebase_ui_auth/CHANGELOG.md
new file mode 100644
index 000000000000..e1eaff2ddc91
--- /dev/null
+++ b/packages/firebase_ui_auth/CHANGELOG.md
@@ -0,0 +1,7 @@
+## 1.0.0-dev.0
+
+ - Bump "firebase_ui_auth" to `1.0.0-dev.0`.
+
+## 0.0.1
+
+* TODO: Describe initial release.
diff --git a/packages/firebase_ui_auth/LICENSE b/packages/firebase_ui_auth/LICENSE
new file mode 100644
index 000000000000..5b8ff6261110
--- /dev/null
+++ b/packages/firebase_ui_auth/LICENSE
@@ -0,0 +1,26 @@
+Copyright 2017, the Chromium project authors. All rights reserved.
+Redistribution and use in source and binary forms, with or without
+modification, are permitted provided that the following conditions are
+met:
+
+ * Redistributions of source code must retain the above copyright
+ notice, this list of conditions and the following disclaimer.
+ * Redistributions in binary form must reproduce the above
+ copyright notice, this list of conditions and the following
+ disclaimer in the documentation and/or other materials provided
+ with the distribution.
+ * Neither the name of Google Inc. nor the names of its
+ contributors may be used to endorse or promote products derived
+ from this software without specific prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
+A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
+OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
diff --git a/packages/firebase_ui_auth/README.md b/packages/firebase_ui_auth/README.md
new file mode 100644
index 000000000000..b2d21e063a4a
--- /dev/null
+++ b/packages/firebase_ui_auth/README.md
@@ -0,0 +1,80 @@
+# Firebase UI Auth
+
+[](https://pub.dev/packages/firebase_ui_auth)
+
+Firebase UI Auth is a set of Flutter widgets and utilities designed to help you build and integrate your user interface with Firebase Authentication.
+
+> Please contribute to the [discussion](https://github.com/firebase/flutterfire/discussions/6978) with feedback.
+
+## Platoform support
+
+| Feature/platform | Android | iOS | Web | macOS | Windows | Linux |
+| ------------------ | ------- | --- | ---------------- | ---------------- | ---------------- | ---------------- |
+| Email | ✓ | ✓ | ✓ | ✓ | ✓ (1) | ✓ (1) |
+| Phone | ✓ | ✓ | ✓ | ╳ | ╳ | ╳ |
+| Email link | ✓ | ✓ | ╳ | ╳ | ╳ | ╳ |
+| Email verification | ✓ | ✓ | ✓ (2) | ✓ (2) | ✓ (1) | ✓ (1) |
+| Sign in with Apple | ╳ | ✓ | ╳ | ✓ | ╳ | ╳ |
+| Google Sign in | ✓ | ✓ | ✓ | ✓ | ✓ (1) | ✓ (1) |
+| Twitter Login | ✓ | ✓ | ✓ | ✓ | ✓ (1) | ✓ (1) |
+| Facebook Sign in | ✓ | ✓ | ✓ | ✓ | ✓ (1) | ✓ (1) |
+
+1. Available with [flutterfire_desktop](https://github.com/invertase/flutterfire_desktop)
+2. No deep-linking into app, so email verification link opens a web page
+
+## Installation
+
+```sh
+flutter pub add firebase_ui_auth
+```
+
+## Getting Started
+
+Here's a quick example that shows how to build a `SignInScreen` and `ProfileScreen` in your app
+
+```dart
+import 'package:flutter/material.dart';
+import 'package:firebase_auth/firebase_auth.dart';
+import 'package:firebase_ui_auth/firebase_ui_auth.dart';
+
+class MyApp extends StatelessWidget {
+ @override
+ Widget build(BuildContext context) {
+ const providers = [EmailAuthProvider()];
+
+ return MaterialApp(
+ initialRoute: FirebaseAuth.instance.currentUser == null ? '/sign-in' : '/profile',
+ routes: {
+ '/sign-in': (context) {
+ return SignInScreen(
+ providers: providers,
+ actions: [
+ AuthStateChangeAction((context, state) {
+ Navigator.pushReplacementNamed(context, '/profile');
+ }),
+ ],
+ );
+ },
+ '/profile': (context) {
+ return ProfileScreen(
+ providers: providers,
+ actions: [
+ SignedOutAction((context) {
+ Navigator.pushReplacementNamed(context, '/sign-in');
+ }),
+ ],
+ );
+ },
+ },
+ );
+ }
+}
+```
+
+Learn more [here](https://github.com/firebase/flutterfire/packages/firebase_ui_auth/doc/README.md).
+
+## Roadmap / Features
+
+- For issues, please create a new [issue on the repository](https://github.com/firebase/flutterfire/issues).
+- For feature requests, & questions, please participate on the [discussion](https://github.com/firebase/flutterfire/discussions/6978) thread.
+- To contribute a change to this plugin, please review our [contribution guide](https://github.com/firebase/flutterfire/blob/master/CONTRIBUTING.md) and open a [pull request](https://github.com/firebase/flutterfire/pulls).
diff --git a/packages/firebase_ui_auth/analysis_options.yaml b/packages/firebase_ui_auth/analysis_options.yaml
new file mode 100644
index 000000000000..a5744c1cfbe7
--- /dev/null
+++ b/packages/firebase_ui_auth/analysis_options.yaml
@@ -0,0 +1,4 @@
+include: package:flutter_lints/flutter.yaml
+
+# Additional information about this file can be found at
+# https://dart.dev/guides/language/analysis-options
diff --git a/packages/firebase_ui_auth/doc/README.md b/packages/firebase_ui_auth/doc/README.md
new file mode 100644
index 000000000000..a3d85b0f71de
--- /dev/null
+++ b/packages/firebase_ui_auth/doc/README.md
@@ -0,0 +1,62 @@
+# Firebase UI for authentication
+
+Firebase UI for authentication provides a simple and easy way to implement authentication in your Flutter app.
+The library provides fully featured UI screens to drop into new or existing applications, along with
+lower level abstractions for developers looking for tighter control.
+
+## Installation
+
+Activate FlutterFire CLI
+
+```sh
+dart pub global activate flutterfire_cli
+```
+
+Install dependencies
+
+```sh
+flutter pub add firebase_core
+flutter pub add firebase_auth
+# required for email link sign in and email verification
+flutter pub add firebase_dynamic_links
+flutter pub add firebase_ui_auth
+```
+
+## Configuration
+
+Configure firebase using cli:
+
+```sh
+flutterfire configure
+```
+
+Initialize firebase app:
+
+```dart
+void main() {
+ WidgetsFlutterBinding.ensureInitialized();
+
+ await Firebase.initializeApp(options: DefaultFirebaseOptions.currentPlatform);
+}
+```
+
+## macOS entitlements
+
+If you're building for macOS, make sure to add necessary entitlements. Learn more [from the official Flutter documentation](https://docs.flutter.dev/development/platform-integration/macos/building).
+
+## Next steps
+
+To understand what Firebase UI for authentication offers, the following documentation pages walk you through the various topics on
+how to use the package within your Flutter app.
+
+- Available auth providers:
+
+ - [EmaiAuthProvider](./providers/email.md) - allows registering and signing in using email and password.
+ - [EmailLinkAuthProvider](./providers/email-link.md) - allows registering and signing in using a link sent to email.
+ - [PhoneAuthProvider](./providers/phone.md) - allows registering and signing in using a phone number
+ - [UniversalEmailSignInProvider](./providers/universal-email-sign-in.md) - gets all connected auth providers for a given email.
+ - [OAuth](./providers/oauth.md)
+
+- [Localization](../../firebase_ui_localizations/README.md)
+- [Theming](./theming.md)
+- [Navigation](./navigation.md)
diff --git a/packages/firebase_ui_auth/doc/images/ui-apple-provider.jpg b/packages/firebase_ui_auth/doc/images/ui-apple-provider.jpg
new file mode 100644
index 000000000000..e3683354e636
Binary files /dev/null and b/packages/firebase_ui_auth/doc/images/ui-apple-provider.jpg differ
diff --git a/packages/firebase_ui_auth/doc/images/ui-auth-desktop-side-content.png b/packages/firebase_ui_auth/doc/images/ui-auth-desktop-side-content.png
new file mode 100644
index 000000000000..b797e4b0759f
Binary files /dev/null and b/packages/firebase_ui_auth/doc/images/ui-auth-desktop-side-content.png differ
diff --git a/packages/firebase_ui_auth/doc/images/ui-auth-email-google-provider.png b/packages/firebase_ui_auth/doc/images/ui-auth-email-google-provider.png
new file mode 100644
index 000000000000..1407a8e09d45
Binary files /dev/null and b/packages/firebase_ui_auth/doc/images/ui-auth-email-google-provider.png differ
diff --git a/packages/firebase_ui_auth/doc/images/ui-auth-email-provider.png b/packages/firebase_ui_auth/doc/images/ui-auth-email-provider.png
new file mode 100644
index 000000000000..40cfb022e4a3
Binary files /dev/null and b/packages/firebase_ui_auth/doc/images/ui-auth-email-provider.png differ
diff --git a/packages/firebase_ui_auth/doc/images/ui-auth-forgot-password.png b/packages/firebase_ui_auth/doc/images/ui-auth-forgot-password.png
new file mode 100644
index 000000000000..5f9d783040e4
Binary files /dev/null and b/packages/firebase_ui_auth/doc/images/ui-auth-forgot-password.png differ
diff --git a/packages/firebase_ui_auth/doc/images/ui-auth-google-email-provider.png b/packages/firebase_ui_auth/doc/images/ui-auth-google-email-provider.png
new file mode 100644
index 000000000000..f6ac0a013d54
Binary files /dev/null and b/packages/firebase_ui_auth/doc/images/ui-auth-google-email-provider.png differ
diff --git a/packages/firebase_ui_auth/doc/images/ui-auth-no-providers.png b/packages/firebase_ui_auth/doc/images/ui-auth-no-providers.png
new file mode 100644
index 000000000000..706c40d472d8
Binary files /dev/null and b/packages/firebase_ui_auth/doc/images/ui-auth-no-providers.png differ
diff --git a/packages/firebase_ui_auth/doc/images/ui-auth-phone-input-screen.png b/packages/firebase_ui_auth/doc/images/ui-auth-phone-input-screen.png
new file mode 100644
index 000000000000..91d431725a6c
Binary files /dev/null and b/packages/firebase_ui_auth/doc/images/ui-auth-phone-input-screen.png differ
diff --git a/packages/firebase_ui_auth/doc/images/ui-auth-profile-screen.png b/packages/firebase_ui_auth/doc/images/ui-auth-profile-screen.png
new file mode 100644
index 000000000000..6c464f51b4a9
Binary files /dev/null and b/packages/firebase_ui_auth/doc/images/ui-auth-profile-screen.png differ
diff --git a/packages/firebase_ui_auth/doc/images/ui-auth-register.png b/packages/firebase_ui_auth/doc/images/ui-auth-register.png
new file mode 100644
index 000000000000..4ef43be0b8ee
Binary files /dev/null and b/packages/firebase_ui_auth/doc/images/ui-auth-register.png differ
diff --git a/packages/firebase_ui_auth/doc/images/ui-auth-signin-header.png b/packages/firebase_ui_auth/doc/images/ui-auth-signin-header.png
new file mode 100644
index 000000000000..deae17f87340
Binary files /dev/null and b/packages/firebase_ui_auth/doc/images/ui-auth-signin-header.png differ
diff --git a/packages/firebase_ui_auth/doc/images/ui-auth-signin-subtitle.png b/packages/firebase_ui_auth/doc/images/ui-auth-signin-subtitle.png
new file mode 100644
index 000000000000..ef1a64223f1b
Binary files /dev/null and b/packages/firebase_ui_auth/doc/images/ui-auth-signin-subtitle.png differ
diff --git a/packages/firebase_ui_auth/doc/images/ui-auth-theming-button.png b/packages/firebase_ui_auth/doc/images/ui-auth-theming-button.png
new file mode 100644
index 000000000000..b0f0c406a5f1
Binary files /dev/null and b/packages/firebase_ui_auth/doc/images/ui-auth-theming-button.png differ
diff --git a/packages/firebase_ui_auth/doc/images/ui-auth-theming-default.png b/packages/firebase_ui_auth/doc/images/ui-auth-theming-default.png
new file mode 100644
index 000000000000..f10bf7ba174a
Binary files /dev/null and b/packages/firebase_ui_auth/doc/images/ui-auth-theming-default.png differ
diff --git a/packages/firebase_ui_auth/doc/images/ui-auth-theming-outline-border.png b/packages/firebase_ui_auth/doc/images/ui-auth-theming-outline-border.png
new file mode 100644
index 000000000000..6637fd87a8f9
Binary files /dev/null and b/packages/firebase_ui_auth/doc/images/ui-auth-theming-outline-border.png differ
diff --git a/packages/firebase_ui_auth/doc/images/ui-email-link-provider copy.png b/packages/firebase_ui_auth/doc/images/ui-email-link-provider copy.png
new file mode 100644
index 000000000000..4c6c59f3ff9d
Binary files /dev/null and b/packages/firebase_ui_auth/doc/images/ui-email-link-provider copy.png differ
diff --git a/packages/firebase_ui_auth/doc/images/ui-email-link-provider.png b/packages/firebase_ui_auth/doc/images/ui-email-link-provider.png
new file mode 100644
index 000000000000..4c6c59f3ff9d
Binary files /dev/null and b/packages/firebase_ui_auth/doc/images/ui-email-link-provider.png differ
diff --git a/packages/firebase_ui_auth/doc/images/ui-email-provider.jpg b/packages/firebase_ui_auth/doc/images/ui-email-provider.jpg
new file mode 100644
index 000000000000..2fc232ea5477
Binary files /dev/null and b/packages/firebase_ui_auth/doc/images/ui-email-provider.jpg differ
diff --git a/packages/firebase_ui_auth/doc/images/ui-facebook-client-id copy.png b/packages/firebase_ui_auth/doc/images/ui-facebook-client-id copy.png
new file mode 100644
index 000000000000..8deacaad6d9a
Binary files /dev/null and b/packages/firebase_ui_auth/doc/images/ui-facebook-client-id copy.png differ
diff --git a/packages/firebase_ui_auth/doc/images/ui-facebook-client-id.png b/packages/firebase_ui_auth/doc/images/ui-facebook-client-id.png
new file mode 100644
index 000000000000..8deacaad6d9a
Binary files /dev/null and b/packages/firebase_ui_auth/doc/images/ui-facebook-client-id.png differ
diff --git a/packages/firebase_ui_auth/doc/images/ui-facebook-provider.jpg b/packages/firebase_ui_auth/doc/images/ui-facebook-provider.jpg
new file mode 100644
index 000000000000..6ce0a3b178e6
Binary files /dev/null and b/packages/firebase_ui_auth/doc/images/ui-facebook-provider.jpg differ
diff --git a/packages/firebase_ui_auth/doc/images/ui-google-provider-client-id copy.png b/packages/firebase_ui_auth/doc/images/ui-google-provider-client-id copy.png
new file mode 100644
index 000000000000..19b17a31735a
Binary files /dev/null and b/packages/firebase_ui_auth/doc/images/ui-google-provider-client-id copy.png differ
diff --git a/packages/firebase_ui_auth/doc/images/ui-google-provider-client-id.png b/packages/firebase_ui_auth/doc/images/ui-google-provider-client-id.png
new file mode 100644
index 000000000000..19b17a31735a
Binary files /dev/null and b/packages/firebase_ui_auth/doc/images/ui-google-provider-client-id.png differ
diff --git a/packages/firebase_ui_auth/doc/images/ui-google-provider.jpg b/packages/firebase_ui_auth/doc/images/ui-google-provider.jpg
new file mode 100644
index 000000000000..112c8fc4d6ba
Binary files /dev/null and b/packages/firebase_ui_auth/doc/images/ui-google-provider.jpg differ
diff --git a/packages/firebase_ui_auth/doc/images/ui-phone-provider.jpg b/packages/firebase_ui_auth/doc/images/ui-phone-provider.jpg
new file mode 100644
index 000000000000..f420d9266a3b
Binary files /dev/null and b/packages/firebase_ui_auth/doc/images/ui-phone-provider.jpg differ
diff --git a/packages/firebase_ui_auth/doc/images/ui-twitter-app-id copy.png b/packages/firebase_ui_auth/doc/images/ui-twitter-app-id copy.png
new file mode 100644
index 000000000000..6e992de1ee63
Binary files /dev/null and b/packages/firebase_ui_auth/doc/images/ui-twitter-app-id copy.png differ
diff --git a/packages/firebase_ui_auth/doc/images/ui-twitter-app-id.png b/packages/firebase_ui_auth/doc/images/ui-twitter-app-id.png
new file mode 100644
index 000000000000..6e992de1ee63
Binary files /dev/null and b/packages/firebase_ui_auth/doc/images/ui-twitter-app-id.png differ
diff --git a/packages/firebase_ui_auth/doc/images/ui-twitter-provider.jpg b/packages/firebase_ui_auth/doc/images/ui-twitter-provider.jpg
new file mode 100644
index 000000000000..07fa88b7c3e6
Binary files /dev/null and b/packages/firebase_ui_auth/doc/images/ui-twitter-provider.jpg differ
diff --git a/packages/firebase_ui_auth/doc/navigation.md b/packages/firebase_ui_auth/doc/navigation.md
new file mode 100644
index 000000000000..fdcb3268aa6c
--- /dev/null
+++ b/packages/firebase_ui_auth/doc/navigation.md
@@ -0,0 +1,109 @@
+# Navigation
+
+Firebase UI uses Flutter navigation capabilities to navigate between pages.
+
+By default, it uses "Navigator 1." when a new screen needs to be shown as a result of user interaction (`Navigator.push(context, route)` is used).
+
+For applications using the standard navigation APIs, navigation will work out of the box and require no intervention. However, for applications using
+a custom routing package, you will need to override the default navigation actions to integrate with your routing strategy.
+
+## Custom routing
+
+For this example, the application will create [named routes](https://docs.flutter.dev/cookbook/navigation/named-routes). Within the UI logic, we can
+override the default actions (e.g. signing in or signing out) the UI performs to instead integrate with those named routes.
+
+First, we define the root route that checks for authentication state and renders a `SignInScreen` or `ProfileScreen`:
+
+```dart
+class MyApp extends StatelessWidget {
+ @override
+ Widget build(BuildContext context) {
+ const providers = [EmailProvider()];
+
+ return MaterialApp(
+ initialRoute: FirebaseAuth.instance.currentUser == null ? '/sign-in' : '/profile',
+ routes: {
+ '/sign-in': (context) => SignInScreen(providers: providers),
+ '/profile': (context) => ProfileScreen(providers: providers),
+ },
+ );
+ }
+}
+```
+
+By default, when a user triggers a sign-in via the `SignInScreen`, no action default occurs. Since we are not subscribing to the authentication
+state (via the `authStateChanges` API), we need to manually force the navigator to push to a new screen (the `/profile` route).
+
+To do this, add a `AuthStateChangeAction` action to the `actions` property of the widget, for example for a successful sign in:
+
+```dart
+SignInScreen(
+ actions: [
+ AuthStateChangeAction((context, _) {
+ Navigator.of(context).pushReplacementNamed('/profile');
+ }),
+ ],
+ // ...
+)
+```
+
+You could also react to the user signing out in a similar manner:
+
+```dart
+ProfileScreen(
+ actions: [
+ SignedOutAction((context, _) {
+ Navigator.of(context).pushReplacementNamed('/sign-in');
+ }),
+ ],
+ // ...
+)
+```
+
+Some UI widgets also come with internal actions which triggers navigation to a new screen. For example the `SignInScreen` widget allows users to
+reset their password by pressing the "Forgot Password" button, which internally navigates to a `ForgotPasswordScreen`. To override this action and
+navigate to a named route, provide the `actions` list with a `ForgotPasswordAction`:
+
+```dart
+class MyApp extends StatelessWidget {
+ @override
+ Widget build(BuildContext context) {
+ const providers = [EmailProvider()];
+
+ return MaterialApp(
+ initialRoute: FirebaseAuth.instance.currentUser == null ? '/sign-in' : '/profile',
+ routes: {
+ '/sign-in': (context) {
+ return SignInScreen(
+ providers: providers,
+ actions: [
+ ForgotPasswordAction((context, email) {
+ Navigator.of(context).pushNamed(
+ '/forgot-password',
+ arguments: {'email': email},
+ );
+ }),
+ ],
+ );
+ },
+ '/profile': (context) => ProfileScreen(providers: providers),
+ '/forgot-password': (context) => MyCustomForgotPasswordScreen(),
+ },
+ );
+ }
+}
+```
+
+To learn more about the available actions, check out the [FirebaseUIActions API reference](https://pub.dev/documentation/firebase_ui_auth/latest/firebase_ui_auth/FirebaseUIActions-class.html).
+
+## Other topics
+
+## Other topics
+
+- [EmaiAuthProvider](./providers/email.md) - allows registering and signing using email and password.
+- [EmailLinkAuthProvider](./providers/email-link.md) - allows registering and signing using a link sent to email.
+- [PhoneAuthProvider](./providers/phone.md) - allows registering and signing using a phone number
+- [UniversalEmailSignInProvider](./providers/universal-email-sign-in.md) - gets all connected auth providers for a given email.
+- [OAuth](./providers/oauth.md)
+- [Localization](../../firebase_ui_localizations/README.md)
+- [Theming](./theming.md)
diff --git a/packages/firebase_ui_auth/doc/providers/email-link.md b/packages/firebase_ui_auth/doc/providers/email-link.md
new file mode 100644
index 000000000000..39e79bec1ef7
--- /dev/null
+++ b/packages/firebase_ui_auth/doc/providers/email-link.md
@@ -0,0 +1,258 @@
+# Firebase UI Email provider
+
+## Configuration
+
+To support Email link as a provider, first ensure that the "Email link" is enabled under "Email/Password" provider
+in the [Firebase Console](https://console.firebase.google.com/project/_/authentication/providers):
+
+
+
+Configure email provider:
+
+```dart
+import 'package:firebase_core/firebase_core.dart';
+import 'package:firebase_ui_auth/firebase_ui_auth.dart';
+
+import 'firebase_options.dart';
+
+void main() {
+ WidgetsFlutterBinding.ensureInitialized();
+ await Firebase.initializeApp(options: DefaultFirebaseOptions.currentPlatform);
+
+ FirebaseUIAuth.configureProviders([
+ EmailLinkAuthProvider(
+ actionCodeSettings: ActionCodeSettings(
+ url: 'https://.page.link',
+ handleCodeInApp: true,
+ androidMinimumVersion: '1',
+ androidPackageName:
+ 'io.flutter.plugins.firebase_ui.firebase_ui_example',
+ iOSBundleId: 'io.flutter.plugins.flutterfireui.flutterfireUIExample',
+ ),
+ ),
+ // ... other providers
+ ]);
+}
+```
+
+See [this doc](https://firebase.google.com/docs/auth/flutter/email-link-auth) for more info about `ActionCodeSettings`.
+
+## Using screen
+
+After adding `EmailLinkAuthProvider` to the `FirebaseUIAuth.configureProviders`, `SignInScreen` or `RegisterScren` will have a button that will trigger `EmailLinkSignInAction`, or, if no action provided, will open `EmailLinkSignInScreen` using `Navigator.push`.
+
+```dart
+MaterialApp(
+ intiialRoute: '/login',
+ routes: {
+ '/login': (context) {
+ return SignInScreen(
+ actions: [
+ EmailLinkSignInAction((context) {
+ Navigator.pushReplacementNamed(context, '/email-link-sign-in');
+ }),
+ ],
+ );
+ },
+ '/email-link-sign-in': (context) => EmailLinkSignInScreen(
+ actions: [
+ AuthStateChangeAction((context, state) {
+ Navigator.pushReplacementNamed(context, '/profile');
+ }),
+ ],
+ ),
+ '/profile': (context) => ProfileScreen(),
+ }
+)
+```
+
+> Notes:
+>
+> - see [navigation guide](../navigation.md) to learn how navigation works with Firebase UI.
+> - explore [FirebaseUIActions API docs](https://pub.dev/documentation/firebase_ui_auth/latest/firebase_ui_auth/FirebaseUIAction-class.html).
+
+## Using view
+
+If the pre-built screen don't suit the app's needs, you could use a `EmailLinkSignInView` to build your custom screen:
+
+```dart
+class MyEmailLinkSignInScreen extends StatelessWidget {
+ @override
+ Widget build(BuildContext) {
+ return Scaffold(
+ body: Column(
+ children: [
+ MyCustomHeader(),
+ Expanded(
+ child: Padding(
+ padding: const EdgeInsets.all(16),
+ child: FirebaseUIActions(
+ actions: [
+ AuthStateChangeAction((context, state) {
+ Navigator.pushReplacementNamed(context, '/profile');
+ }
+ ],
+ child: EmailLinkSignInView(provider: emailLinkAuthProvider),
+ ),
+ ),
+ ),
+ ]
+ )
+ )
+ }
+}
+```
+
+## Building a custom widget with `AuthFlowBuilder`
+
+You could also use `AuthFlowBuilder` to facilitate the functionality of the `EmailLinkFlow`:
+
+```dart
+class MyCustomWidget extends StatelessWidget {
+ @override
+ Widget build(BuildContext context) {
+ return AuthFlowBuilder(
+ provider: emailLinkProvider,
+ listener: (oldState, newState, ctrl) {
+ if (newState is SignedIn) {
+ Navigator.of(context).pushReplacementNamed('/profile');
+ }
+ }
+ builder: (context, state, ctrl, child) {
+ if (state is Uninitialized) {
+ return TextField(
+ decoration: InputDecoration(label: Text('Email')),
+ onSubmitted: (email) {
+ ctrl.sendLink(email);
+ },
+ );
+ } else if (state is AwaitingDynamicLink) {
+ return CircularProgressIndicator();
+ } else if (state is AuthFailed) {
+ return ErrorText(exception: state.exception);
+ } else {
+ return Text('Unknown state $state');
+ }
+ },
+ );
+ }
+}
+```
+
+## Building a custom stateful widget
+
+For full control over every phase of the authentication lifecycle you could build a stateful widget, which implements `EmailLinkAuthListener`:
+
+```dart
+class CustomEmailLinkSignIn extends StatefulWidget {
+ const CustomEmailLinkSignIn({Key? key}) : super(key: key);
+
+ @override
+ State createState() => _CustomEmailLinkSignInState();
+}
+
+class _CustomEmailLinkSignInState extends State
+ implements EmailLinkAuthListener {
+ final auth = FirebaseAuth.instance;
+ late final EmailLinkAuthProvider provider =
+ EmailLinkAuthProvider(actionCodeSettings: actionCodeSettings)
+ ..authListener = this;
+
+ late Widget child = TextField(
+ decoration: const InputDecoration(
+ labelText: 'Email',
+ ),
+ onSubmitted: provider.sendLink,
+ );
+
+ @override
+ void onBeforeLinkSent(String email) {
+ setState(() {
+ child = CircularProgressIndicator();
+ });
+ }
+
+ @override
+ void onLinkSent(String email) {
+ setState(() {
+ child = Text('Check your email and click the link');
+ });
+ }
+
+ @override
+ Widget build(BuildContext context) {
+ return Center(child: child);
+ }
+
+ @override
+ void onBeforeCredentialLinked(AuthCredential credential) {
+ setState(() {
+ child = CircularProgressIndicator();
+ });
+ }
+
+ @override
+ void onBeforeProvidersForEmailFetch() {
+ setState(() {
+ child = CircularProgressIndicator();
+ });
+ }
+
+ @override
+ void onBeforeSignIn() {
+ setState(() {
+ child = CircularProgressIndicator();
+ });
+ }
+
+ @override
+ void onCanceled() {
+ setState(() {
+ child = Text('Authenticated cancelled');
+ });
+ }
+
+ @override
+ void onCredentialLinked(AuthCredential credential) {
+ Navigator.of(context).pushReplacementNamed('/profile');
+ }
+
+ @override
+ void onDifferentProvidersFound(
+ String email, List providers, AuthCredential? credential) {
+ showDifferentMethodSignInDialog(
+ context: context,
+ availableProviders: providers,
+ providers: FirebaseUIAuth.providersFor(FirebaseAuth.instance.app),
+ );
+ }
+
+ @override
+ void onError(Object error) {
+ try {
+ // tries default recovery strategy
+ defaultOnAuthError(provider, error);
+ } catch (err) {
+ setState(() {
+ defaultOnAuthError(provider, error);
+ });
+ }
+ }
+
+ @override
+ void onSignedIn(UserCredential credential) {
+ Navigator.of(context).pushReplacementNamed('/profile');
+ }
+}
+```
+
+## Other topics
+
+- [EmaiAuthProvider](./email.md) - allows registering and signing using email and password.
+- [Email verification](./email-verification.md)
+- [PhoneAuthProvider](./phone.md) - allows registering and signing using a phone number
+- [UniversalEmailSignInProvider](./universal-email-sign-in.md) - gets all connected auth providers for a given email.
+- [OAuth](./oauth.md)
+- [Localization](../../../firebase_ui_localizations/README.md)
+- [Theming](../theming.md)
+- [Navigation](../navigation.md)
diff --git a/packages/firebase_ui_auth/doc/providers/email-verification.md b/packages/firebase_ui_auth/doc/providers/email-verification.md
new file mode 100644
index 000000000000..da2e809f4475
--- /dev/null
+++ b/packages/firebase_ui_auth/doc/providers/email-verification.md
@@ -0,0 +1,113 @@
+# Email verification in Firebase UI
+
+Firebase UI provides a pre-built `EmailVerificationScreen`:
+
+```dart
+class App extends StatelessWidget {
+ @override
+ Widget build(BuildContext context) {
+ return MaterialApp(
+ initialRoute: FirebaseAuth.instance.currentUser == null
+ ? '/login'
+ : '/profile',
+ routes: {
+ '/login': (context) {
+ return SignInScreen(
+ actions: [
+ AuthStateChangeAction((context, state) {
+ if (!state.user!.emailVerified) {
+ Navigator.pushNamed(context, '/verify-email');
+ } else {
+ Navigator.pushReplacementNamed(context, '/profile');
+ }
+ }),
+ ]
+ );
+ },
+ '/profile': (context) => ProfileScreen(),
+ '/verify-email': (context) => EmailVerificationScreen(
+ actionCodeSettings: ActionCodeSettngs(...),
+ actions: [
+ EmailVerified(() {
+ Navigator.pushReplacementNamed(context, '/profile');
+ }),
+ Cancel((context) {
+ FirebaseUIAuth.signOut(context: context);
+ Navigator.pushReplacementNamed(context, '/');
+ }),
+ ],
+ ),
+ }
+ )
+ }
+}
+```
+
+Once opened, it triggers a verification email to be sent and will wait for a dynamic link to be received by the app (on supported platforms).
+
+## Using `EmailVerificatioController`
+
+If you want to build a custom email verification screen, you could use `EmailVerificationController`:
+
+```dart
+class MyEmailVerificationScreen extends StatefulWidget {
+ const MyEmailVerificationScreen({Key? key}) : super(key: key);
+
+ @override
+ State createState() =>
+ _MyEmailVerificationScreenState();
+}
+
+class _MyEmailVerificationScreenState extends State {
+ late final ctrl = EmailVerificationController(FirebaseAuth.instance)
+ ..addListener(() {
+ // trigger widget rebuild to reflect new state
+ setState(() {});
+ });
+
+ @override
+ void dispose() {
+ ctrl.dispose();
+ super.dispose();
+ }
+
+ @override
+ Widget build(BuildContext context) {
+ switch (ctrl.state) {
+ case EmailVerificationState.unresolved:
+ case EmailVerificationState.unverified:
+ return TextButton(
+ onPressed: () {
+ ctrl.sendVerificationEmail(
+ Theme.of(context).platform,
+ ActionCodeSettings(...),
+ );
+ },
+ child: Text('Send verification email'),
+ );
+ case EmailVerificationState.dismissed:
+ return Text("Ok, let's verify your email next time");
+ case EmailVerificationState.pending:
+ case EmailVerificationState.sending:
+ return CircularProgressIndicator();
+ case EmailVerificationState.sent:
+ return Text('Check your email');
+ case EmailVerificationState.verified:
+ return Text('Email verified');
+ case EmailVerificationState.failed:
+ return Text('Failed to verify email');
+ }
+ }
+}
+```
+
+## Other topics
+
+- [EmaiAuthProvider](./email.md) - allows registering and signing using email and password.
+- [EmailLinkAuthProvider](./email-link.md) - allows registering and signing using a link sent to email.
+- [PhoneAuthProvider](./phone.md) - allows registering and signing using a phone number
+- [UniversalEmailSignInProvider](./universal-email-sign-in.md) - gets all connected auth providers for a given email.
+- [OAuth](./oauth.md)
+- [Localization](../../../firebase_ui_localizations/README.md)
+- [Theming](../theming.md)
+- [Navigation](../navigation.md)
diff --git a/packages/firebase_ui_auth/doc/providers/email.md b/packages/firebase_ui_auth/doc/providers/email.md
new file mode 100644
index 000000000000..dd2266c1fd0b
--- /dev/null
+++ b/packages/firebase_ui_auth/doc/providers/email.md
@@ -0,0 +1,235 @@
+# Firebase UI Email auth provider
+
+## Configuration
+
+To support email a provider, first ensure that the "Email/Password" provider is
+enabled in the [Firebase Console](https://console.firebase.google.com/project/_/authentication/providers):
+
+
+
+Configure email provider:
+
+```dart
+import 'package:firebase_core/firebase_core.dart';
+import 'package:firebase_ui_auth/firebase_ui_auth.dart';
+
+import 'firebase_options.dart';
+
+void main() {
+ WidgetsFlutterBinding.ensureInitialized();
+ await Firebase.initializeApp(options: DefaultFirebaseOptions.currentPlatform);
+
+ FirebaseUIAuth.configureProviders([
+ EmailProvider(),
+ // ... other providers
+ ]);
+}
+```
+
+## Using screen
+
+After adding `EmailProvider` to the `FirebaseUIAuth.configureProviders` email form would be displayed on the `SignInScreen` or `RegisterScren`.
+
+```dart
+SignInScreen(
+ actions: [
+ AuthStateChangeAction((context, state) {
+ if (!state.user!.emailVerified) {
+ Navigator.pushNamed(context, '/verify-email');
+ } else {
+ Navigator.pushReplacementNamed(context, '/profile');
+ }
+ }),
+ ],
+);
+```
+
+> Notes:
+>
+> - see [navigation guide](../navigation.md) to learn how navigation works with Firebase UI.
+> - explore [FirebaseUIActions API docs](https://pub.dev/documentation/firebase_ui_auth/latest/firebase_ui_auth/FirebaseUIAction-class.html).
+
+## Using view
+
+If the pre-built screens don't suit the app's needs, you could use a `LoginView` to build your custom screen:
+
+```dart
+class MyLoginScreen extends StatelessWidget {
+ @override
+ Widget build(BuildContext) {
+ return Scaffold(
+ body: Row(
+ children: [
+ MyCustomSideBar(),
+ Padding(
+ padding: const EdgeInsets.all(16),
+ child: FirebaseUIActions(
+ actions: [
+ AuthStateChangeAction((context, state) {
+ if (!state.user!.emailVerified) {
+ Navigator.pushNamed(context, '/verify-email');
+ } else {
+ Navigator.pushReplacementNamed(context, '/profile');
+ }
+ }),
+ ],
+ child: LoginView(
+ action: AuthAction.signUp,
+ providers: FirebaseUIAuth.providersFor(
+ FirebaseAuth.instance.app,
+ ),
+ ),
+ ),
+ )
+ ],
+ ),
+ );
+ }
+}
+```
+
+## Using widget
+
+If a view is also not flexible enough, there is an `EmailForm`:
+
+```dart
+class MyCustomWidget extends StatelessWidget {
+ @override
+ Widget build(BuildContext context) {
+ return AuthStateListener(
+ listener: (oldState, newState, controller) {
+ // perform necessary actions based on previous
+ // and current auth state.
+ },
+ child: EmailForm(),
+ )
+ }
+}
+```
+
+## Building a custom widget with `AuthFlowBuilder`
+
+You could also use `AuthFlowBuilder` to facilitate the functionality of the `EmailAuthFlow`:
+
+```dart
+class MyCustomWidget extends StatelessWidget {
+ @override
+ Widget build(BuildContext context) {
+ return AuthFlowBuilder(
+ builder: (context, state, ctrl, child) {
+ if (state is AwaitingEmailAndPassword) {
+ return MyCustomEmailForm();
+ } else if (state is SigningIn) {
+ return CircularProgressIndicator();
+ } else if (state is AuthFailed) {
+ return ErrorText(exception: state.exception);
+ } else {
+ return Text('Unknown state $state');
+ }
+ },
+ );
+ }
+}
+```
+
+## Building a custom stateful widget
+
+For full control over every phase of the authentication lifecycle, you could build a stateful widget which implements `EmailAuthListener`:
+
+```dart
+class CustomEmailSignIn extends StatefulWidget {
+ const CustomEmailSignIn({Key? key}) : super(key: key);
+
+ @override
+ State createState() => _CustomEmailSignInState();
+}
+
+class _CustomEmailSignInState extends State
+ implements EmailAuthListener {
+ final auth = FirebaseAuth.instance;
+ late final EmailAuthProvider provider = EmailAuthProvider()
+ ..authListener = this;
+
+ Widget child = MyCustomEmailForm(onSubmit: (email, password) {
+ provider.authenticate(email, password, AuthAction.signIn);
+ });
+
+ @override
+ Widget build(BuildContext context) {
+ return Center(child: child);
+ }
+
+ @override
+ void onBeforeCredentialLinked(AuthCredential credential) {
+ setState(() {
+ child = CircularProgressIndicator();
+ });
+ }
+
+ @override
+ void onBeforeProvidersForEmailFetch() {
+ setState(() {
+ child = CircularProgressIndicator();
+ });
+ }
+
+ @override
+ void onBeforeSignIn() {
+ setState(() {
+ child = CircularProgressIndicator();
+ });
+ }
+
+ @override
+ void onCanceled() {
+ setState(() {
+ child = MyCustomEmailForm(onSubmit: (email, password) {
+ auth.signInWithEmailAndPassword(email: email, password: password);
+ });
+ });
+ }
+
+ @override
+ void onCredentialLinked(AuthCredential credential) {
+ Navigator.of(context).pushReplacementNamed('/profile');
+ }
+
+ @override
+ void onDifferentProvidersFound(
+ String email, List providers, AuthCredential? credential) {
+ showDifferentMethodSignInDialog(
+ context: context,
+ availableProviders: providers,
+ providers: FirebaseUIAuth.providersFor(FirebaseAuth.instance.app),
+ );
+ }
+
+ @override
+ void onError(Object error) {
+ try {
+ // tries default recovery strategy
+ defaultOnAuthError(provider, error);
+ } catch (err) {
+ setState(() {
+ defaultOnAuthError(provider, error);
+ });
+ }
+ }
+
+ @override
+ void onSignedIn(UserCredential credential) {
+ Navigator.of(context).pushReplacementNamed('/profile');
+ }
+}
+```
+
+## Other topics
+
+- [Email verification](./email-verification.md)
+- [EmailLinkAuthProvider](./email-link.md) - allows registering and signing using a link sent to email.
+- [PhoneAuthProvider](./phone.md) - allows registering and signing using a phone number
+- [UniversalEmailSignInProvider](./universal-email-sign-in.md) - gets all connected auth providers for a given email.
+- [OAuth](./oauth.md)
+- [Localization](../../../firebase_ui_localizations/README.md)
+- [Theming](../theming.md)
+- [Navigation](../navigation.md)
diff --git a/packages/firebase_ui_auth/doc/providers/oauth.md b/packages/firebase_ui_auth/doc/providers/oauth.md
new file mode 100644
index 000000000000..52248b8677db
--- /dev/null
+++ b/packages/firebase_ui_auth/doc/providers/oauth.md
@@ -0,0 +1,195 @@
+# Firebase UI OAuth
+
+## Google Sign In
+
+To support Google as a provider, first install the official [`google_sign_in`](https://pub.dev/packages/google_sign_in)
+plugin to your project as described in the README.
+
+Next, enable the "Google" provider in the Firebase Console:
+
+
+
+> To ensure cross-platform support, please ensure you have followed installation instructions for both the `google_sign_in` package and the provider on the Firebase Console (such as adding a [SHA1 fingerprint](https://developers.google.com/android/guides/client-auth?authuser=0) for Android applications).
+
+You will also need to install [`firebase_ui_oauth_google`](https://pub.dev/packages/firebase_ui_oauth_google):
+
+```sh
+flutter pub add firebase_ui_oauth_google
+```
+
+And add a provider to the configuration:
+
+```dart
+Future main() async {
+ WidgetsFlutterBinding.ensureInitialized();
+ await Firebase.initializeApp(options: DefaultFirebaseOptions.currentPlatform);
+
+ FirebaseUIAuth.configureProviders([
+ GoogleProvider(clientId: GOOGLE_CLIENT_ID),
+ ]);
+}
+```
+
+Now all pre-built screens that support multiple providers (such as `RegisterScreen`, `SignInScreen`, `ProfileScreen` and others) will have a themed button.
+
+The configuration requires the `clientId` property (which can be found in the Firebase Console) to be set for seamless cross-platform support.
+
+
+
+See [Custom screens section](#custom-screens) to learn how to use a button on your custom screen.
+
+## Sign in with Apple
+
+To support Apple as a provider, first install the [`sign_in_with_apple`](https://pub.dev/packages/sign_in_with_apple)
+plugin to your project. Once added, follow the [Integration](https://pub.dev/packages/sign_in_with_apple#integration) steps
+for each platform.
+
+Next, enable the "Apple" provider in the Firebase Console:
+
+
+
+You will also need to install [`firebase_ui_oauth_apple`](https://pub.dev/packages/firebase_ui_oauth_apple):
+
+```sh
+flutter pub add firebase_ui_oauth_apple
+```
+
+And add a provider to the configuration:
+
+```dart
+Future main() async {
+ WidgetsFlutterBinding.ensureInitialized();
+ await Firebase.initializeApp(options: DefaultFirebaseOptions.currentPlatform);
+
+ FirebaseUIAuth.configureProviders([
+ AppleProvider(),
+ ]);
+}
+```
+
+Now all pre-built screens that support multiple providers (such as `RegisterScreen`, `SignInScreen`, `ProfileScreen` and others) will have a themed button. See [Custom screens section](#custom-screens) to learn how to use a button on your custom screen.
+
+## Flutter Facebook Auth
+
+To support Facebook as a provider, first install the [`flutter_facebook_auth`](https://pub.dev/packages/flutter_facebook_auth)
+plugin to your project. Each platform requires that you follow the [installation process](https://facebook.meedu.app) as specified
+in the documentation.
+
+Next, enable the "Facebook" provider in the Firebase Console & provide your created Facebook App ID and secret:
+
+
+
+You will also need to install [`firebase_ui_oauth_facebook`](https://pub.dev/packages/firebase_ui_oauth_facebook):
+
+```sh
+flutter pub add firebase_ui_oauth_facebook
+```
+
+And add a provider to the configuration:
+
+```dart
+Future main() async {
+ WidgetsFlutterBinding.ensureInitialized();
+ await Firebase.initializeApp(options: DefaultFirebaseOptions.currentPlatform);
+
+ FirebaseUIAuth.configureProviders([
+ FacebookProvider(clientId: FACEBOOK_CLIENT_ID),
+ ]);
+}
+```
+
+Now all pre-built screens that support multiple providers (such as `RegisterScreen`, `SignInScreen`, `ProfileScreen` and others) will have a themed button.
+
+The configuration requires the `clientId` property (which can be found in the Firebase Console) to be set for seamless cross-platform support.
+
+
+
+See [Custom screens section](#custom-screens) to learn how to use a button on your custom screen.
+
+## Twitter Login
+
+To support Twitter as a provider, first install the [`twitter_login`](https://pub.dev/packages/twitter_login)
+plugin to your project.
+
+Next, enable the "Twitter" provider in the Firebase Console:
+
+
+
+You will also need to install [`firebase_ui_oauth_twitter`](https://pub.dev/packages/firebase_ui_oauth_twitter):
+
+```sh
+flutter pub add firebase_ui_oauth_twitter
+```
+
+And add a provider to the configuration:
+
+```dart
+Future main() async {
+ WidgetsFlutterBinding.ensureInitialized();
+ await Firebase.initializeApp(options: DefaultFirebaseOptions.currentPlatform);
+
+ FirebaseUIAuth.configureProviders([
+ TwitterProvider(
+ apiKey: TWITTER_API_KEY,
+ apiSecretKey: TWITTER_API_SECRET_KEY,
+ ),
+ ]);
+}
+```
+
+Now all pre-built screens that support multiple providers (such as `RegisterScreen`, `SignInScreen`, `ProfileScreen` and others) will have a themed button.
+
+You can get the `apiKey` and `apiSecretKey` from the Firebase Console or [twitter developer portal](https://developer.twitter.com/en/portal/projects-and-apps).
+
+
+
+Providing the `apiSecretKey` directly is not advised if you are building for the web. Instead, you can use "dart-define" to ensure that the value is omitted from web builds:
+
+```bash
+flutter run --dart-define TWITTER_SECRET=
+```
+
+When building the app on platforms other than the web, the `TWITTER_SECRET` environment variable can be defined using:
+
+```dart
+apiSecretKey: String.fromEnvironment('TWITTER_SECRET', ''),
+```
+
+See [Custom screens section](#custom-screens) to learn how to use a button on your custom screen.
+
+## Custom screens
+
+If you want to use a button on your custom screen, use `OAuthProviderButton`:
+
+```dart
+class MyCustomScreen extends StatelessWidget {
+ const MyCustomScreen({Key? key}) : super(key: key);
+
+ @override
+ Widget build(BuildContext context) {
+ return AuthStateListener(
+ child: OAuthProviderButton(
+ // or any other OAuthProvider
+ provider: GoogleProvider(clientId: GOOGLE_CLIENT_ID),
+ ),
+ listener: (oldState, newState, ctrl) {
+ if (newState is SignedIn) {
+ Navigator.pushReplacementNamed(context, '/profile');
+ }
+ return null;
+ },
+ );
+ }
+}
+```
+
+## Other topics
+
+- [EmaiAuthProvider](./email.md) - allows registering and signing using email and password.
+- [Email verification](./email-verification.md)
+- [EmailLinkAuthProvider](./email-link.md) - allows registering and signing using a link sent to email.
+- [PhoneAuthProvider](./phone.md) - allows registering and signing using a phone number
+- [UniversalEmailSignInProvider](./universal-email-sign-in.md) - gets all connected auth providers for a given email.
+- [Localization](../../../firebase_ui_localizations/README.md)
+- [Theming](../theming.md)
+- [Navigation](../navigation.md)
diff --git a/packages/firebase_ui_auth/doc/providers/phone.md b/packages/firebase_ui_auth/doc/providers/phone.md
new file mode 100644
index 000000000000..1efdbd72e28a
--- /dev/null
+++ b/packages/firebase_ui_auth/doc/providers/phone.md
@@ -0,0 +1,321 @@
+# Firebase UI Email provider
+
+## Configuration
+
+To support Phone Numbers as a provider, first ensure that the "Phone" provider is
+enabled in the [Firebase Console](https://console.firebase.google.com/project/_/authentication/providers):
+
+
+
+Next, follow the [Setup Instructions](https://firebase.google.com/docs/auth/flutter/phone-auth) to configure Phone Authentication for your
+platforms.
+
+Configure email provider:
+
+```dart
+import 'package:firebase_core/firebase_core.dart';
+
+void main() {
+ WidgetsFlutterBinding.ensureInitialized();
+ await Firebase.initializeApp(options: DefaultFirebaseOptions.currentPlatform);
+
+ FirebaseUIAuth.configureProviders([
+ PhoneAuthProvider(),,
+ // ... other providers
+ ]);
+}
+```
+
+## Using screen
+
+After adding `PhoneAuthProvider` to the `FirebaseUIAuth.configureProviders`, a button will be added to the `SignInScreen` and `RegisterScreen`.
+
+```dart
+SignInScreen(
+ actions: [
+ VerifyPhoneAction((context, _) {
+ Navigator.pushNamed(context, '/phone');
+ }),
+ ],
+);
+```
+
+> Notes:
+>
+> - see [navigation guide](../navigation.md) to learn how navigation works with Firebase UI.
+> - explore [FirebaseUIActions API docs](https://pub.dev/documentation/firebase_ui_auth/latest/firebase_ui_auth/FirebaseUIAction-class.html).
+
+Configure a `'/phone'` route to render `PhoneInputScreen`:
+
+```dart
+MaterialApp(
+ routes: {
+ // ...other routes
+ '/phone': (context) => PhoneInputScreen(
+ actions: [
+ SMSCodeRequestedAction((context, action, flowKey, phoneNumber) {
+ Navigator.of(context).push(
+ MaterialPageRoute(
+ builder: (context) => SMSCodeInputScreen(
+ flowKey: flowKey,
+ ),
+ ),
+ );
+ }),
+ ]
+ ),
+ }
+)
+```
+
+## Using view
+
+If the pre-built screens don't suit the app's needs, you could use a `PhoneInputView` to build your custom screen:
+
+```dart
+final _flowKey = Object();
+
+class MyLoginScreen extends StatelessWidget {
+ @override
+ Widget build(BuildContext) {
+ return Scaffold(
+ body: Row(
+ children: [
+ MyCustomSideBar(),
+ Padding(
+ padding: const EdgeInsets.all(16),
+ child: FirebaseUIActions(
+ actions: [
+ SMSCodeRequestedAction((context, action, flowKey, phoneNumber) {
+ Navigator.of(context).push(
+ MaterialPageRoute(
+ builder: (context) => SMSCodeInputScreen(
+ flowKey: flowKey,
+ ),
+ ),
+ );
+ }),
+ ],
+ child: PhoneInputView(flowKey: flowKey),
+ ),
+ )
+ ],
+ ),
+ );
+ }
+}
+```
+
+## Using widget
+
+If a view is also not flexible enough, there are `PhoneInput` and `SMSCodeInput` widgets:
+
+```dart
+class MyCustomWidget extends StatefulWidget {
+ @override
+ State createState() => _MyCustomWidgetState();
+}
+
+class _MyCustomWidgetState extends State {
+ Widget child = PhoneInput(initialCountryCode: 'US');
+
+ @override
+ Widget build(BuildContext context) {
+ return AuthStateListener(
+ listener: (oldState, newState, controller) {
+ if (newState is SMSCodeSent) {
+ setState(() {
+ child = SMSCodeInput(
+ onSubmit: (code) {
+ controller.verifySMSCode(
+ code,
+ verificationId: newState.verificationId,
+ confirmationResult: newState.confirmationResult,
+ );
+ },
+ );
+ });
+ }
+ return null;
+ },
+ child: child,
+ );
+ }
+}
+```
+
+## Building a custom widget with `AuthFlowBuilder`
+
+You could also use `AuthFlowBuilder` to facilitate the functionality of the `PhoneAuthFlow`:
+
+```dart
+class MyCustomWidget extends StatelessWidget {
+ @override
+ Widget build(BuildContext context) {
+ return AuthFlowBuilder(
+ listener: (oldState, newState, controller) {
+ if (newState is PhoneVerified) {
+ Navigator.of(context).pushReplacementNamed('/profile');
+ }
+ },
+ builder: (context, state, ctrl, child) {
+ if (state is AwaitingPhoneNumber) {
+ return PhoneInput(
+ initialCountryCode: 'US',
+ onSubmit: (phoneNumber) {
+ ctrl.acceptPhoneNumber(phoneNumber);
+ },
+ );
+ } else if (state is SMSCodeSent) {
+ return SMSCodeInput(onSubmit: (smsCode) {
+ ctrl.verifySMSCode(
+ smsCode,
+ verificationId: state.verificationId,
+ confirmationResult: state.confirmationResult,
+ );
+ });
+ } else if (state is SigningIn) {
+ return CircularProgressIndicator();
+ } else if (state is AuthFailed) {
+ return ErrorText(exception: state.exception);
+ } else {
+ return Text('Unknown state $state');
+ }
+ },
+ );
+ }
+}
+```
+
+## Building a custom stateful widget
+
+For full control over every phase of the authentication lifecycle you could build a stateful widget, which implements `PhoneAuthController`:
+
+```dart
+class CustomPhoneVerification extends StatefulWidget {
+ const CustomPhoneVerification({Key? key}) : super(key: key);
+
+ @override
+ State createState() =>
+ _CustomPhoneVerificationState();
+}
+
+class _CustomPhoneVerificationState extends State
+ implements PhoneAuthListener {
+ final auth = FirebaseAuth.instance;
+ late final PhoneAuthProvider provider = PhoneAuthProvider()
+ ..authListener = this;
+
+ String? verificationId;
+ ConfirmationResult? confirmationResult;
+
+ late Widget child = PhoneInput(
+ initialCountryCode: 'US',
+ onSubmit: (phoneNumber) {
+ provider.sendVerificationCode(phoneNumber, AuthAction.signIn);
+ },
+ );
+
+ @override
+ void onCodeSent(String verificationId, [int? forceResendToken]) {
+ this.verificationId = verificationId;
+ }
+
+ @override
+ void onConfirmationRequested(ConfirmationResult result) {
+ this.confirmationResult = result;
+ }
+
+ @override
+ void onSMSCodeRequested(String phoneNumber) {
+ setState(() {
+ child = SMSCodeInput(
+ onSubmit: (smsCode) {
+ provider.verifySMSCode(action: AuthAction.signIn, code: smsCode);
+ },
+ );
+ });
+ }
+
+ @override
+ void onVerificationCompleted(PhoneAuthCredential credential) {
+ provider.onCredentialReceived(credential, AuthAction.signIn);
+ }
+
+ @override
+ Widget build(BuildContext context) {
+ return Center(child: child);
+ }
+
+ @override
+ void onBeforeCredentialLinked(AuthCredential credential) {
+ setState(() {
+ child = CircularProgressIndicator();
+ });
+ }
+
+ @override
+ void onBeforeProvidersForEmailFetch() {
+ setState(() {
+ child = CircularProgressIndicator();
+ });
+ }
+
+ @override
+ void onBeforeSignIn() {
+ setState(() {
+ child = CircularProgressIndicator();
+ });
+ }
+
+ @override
+ void onCanceled() {
+ setState(() {
+ child = Text("Phone verification cancelled");
+ });
+ }
+
+ @override
+ void onCredentialLinked(AuthCredential credential) {
+ Navigator.of(context).pushReplacementNamed('/profile');
+ }
+
+ @override
+ void onDifferentProvidersFound(
+ String email, List providers, AuthCredential? credential) {
+ showDifferentMethodSignInDialog(
+ context: context,
+ availableProviders: providers,
+ providers: FirebaseUIAuth.providersFor(FirebaseAuth.instance.app),
+ );
+ }
+
+ @override
+ void onError(Object error) {
+ try {
+ // tries default recovery strategy
+ defaultOnAuthError(provider, error);
+ } catch (err) {
+ setState(() {
+ defaultOnAuthError(provider, error);
+ });
+ }
+ }
+
+ @override
+ void onSignedIn(UserCredential credential) {
+ Navigator.of(context).pushReplacementNamed('/profile');
+ }
+}
+```
+
+## Other topics
+
+- [Email verification](./email-verification.md)
+- [EmailLinkAuthProvider](./email-link.md) - allows registering and signing using a link sent to email.
+- [PhoneAuthProvider](./phone.md) - allows registering and signing using a phone number
+- [UniversalEmailSignInProvider](./universal-email-sign-in.md) - gets all connected auth providers for a given email.
+- [OAuth](./oauth.md)
+- [Localization](../../../firebase_ui_localizations/README.md)
+- [Theming](../theming.md)
+- [Navigation](../navigation.md)
diff --git a/packages/firebase_ui_auth/doc/providers/universal-email-sign-in.md b/packages/firebase_ui_auth/doc/providers/universal-email-sign-in.md
new file mode 100644
index 000000000000..42f7d67250d2
--- /dev/null
+++ b/packages/firebase_ui_auth/doc/providers/universal-email-sign-in.md
@@ -0,0 +1,198 @@
+# Universal email sign in
+
+Universal email sign in is a flow that will resolve connected auth providers with a given email.
+This flow is intended to solve the problem where the user doesn't remember which provider was
+previously used to authenticate.
+
+## Using screen
+
+Firebase UI provides a pre-built `UniversalEmailSignInScreen`.
+
+```dart
+UniversalEmailSignInScreen(
+ // optional, shows a dialog with a sign in ui
+ // with all connected providers.
+ onProvidersFound: (email, providers) {
+ // navigate to a custom sign in that provides
+ // a UI for authentication for received providers.
+ }
+);
+```
+
+## Using view
+
+If the pre-built screens don't suit the app's needs, you could use a `FindProvidersForEmailView` to build your custom screen:
+
+```dart
+class MyLoginScreen extends StatelessWidget {
+ @override
+ Widget build(BuildContext) {
+ return Scaffold(
+ body: Row(
+ children: [
+ MyCustomSideBar(),
+ Padding(
+ padding: const EdgeInsets.all(16),
+ child: FindProvidersForEmailView(
+ onProvidersFound: (email, providers) {
+ // navigate to a custom sign in that provides
+ // a UI for authentication for received providers.
+ },
+ ),
+ )
+ ],
+ ),
+ );
+ }
+}
+```
+
+## Building a custom widget with `AuthFlowBuilder`
+
+You could also use `AuthFlowBuilder` to facilitate the functionality of the `UniversalEmailSignInFlow`:
+
+```dart
+class MyCustomWidget extends StatelessWidget {
+ @override
+ Widget build(BuildContext context) {
+ return AuthFlowBuilder(
+ listener: (oldState, newState, controller) {
+ if (newState is DifferentSignInMethodsFound) {
+ showDifferentMethodSignInDialog(
+ context: context,
+ availableProviders: newState.methods,
+ providers: FirebaseUIAuth.providersFor(
+ FirebaseAuth.instance.app,
+ ),
+ );
+ }
+ },
+ builder: (context, state, ctrl, child) {
+ if (state is Uninitialized) {
+ return TextField(
+ decoration: InputDecoration(
+ labelText: 'Email',
+ ),
+ onSubmitted: (email) {
+ ctrl.findProvidersForEmail(email);
+ },
+ );
+ } else if (state is FetchingProvidersForEmail) {
+ return CircularProgressIndicator();
+ } else if (state is AuthFailed) {
+ return ErrorText(exception: state.exception);
+ } else {
+ return Text('Unknown state $state');
+ }
+ },
+ );
+ }
+}
+```
+
+## Building a custom stateful widget
+
+For full control over every phase of the authentication lifecycle, you could build a stateful widget which implements `UniversalEmailSignInListener`:
+
+```dart
+class CustomUniversalEmailSignIn extends StatefulWidget {
+ const CustomUniversalEmailSignIn({Key? key}) : super(key: key);
+
+ @override
+ State createState() =>
+ _CustomUniversalEmailSignInState();
+}
+
+class _CustomUniversalEmailSignInState extends State
+ implements UniversalEmailSignInListener {
+ final auth = FirebaseAuth.instance;
+ late final UniversalEmailSignInProvider provider =
+ UniversalEmailSignInProvider()..authListener = this;
+
+ late Widget child = TextField(
+ decoration: const InputDecoration(
+ labelText: 'Email',
+ ),
+ onSubmitted: provider.findProvidersForEmail,
+ );
+
+ @override
+ void onBeforeProvidersForEmailFetch() {
+ setState(() {
+ child = CircularProgressIndicator();
+ });
+ }
+
+ @override
+ void onDifferentProvidersFound(
+ String email,
+ List providers,
+ AuthCredential? credential,
+ ) {
+ showDifferentMethodSignInDialog(
+ context: context,
+ availableProviders: providers,
+ providers: FirebaseUIAuth.providersFor(FirebaseAuth.instance.app),
+ );
+ }
+
+ @override
+ Widget build(BuildContext context) {
+ return Center(child: child);
+ }
+
+ @override
+ void onBeforeCredentialLinked(AuthCredential credential) {
+ setState(() {
+ child = CircularProgressIndicator();
+ });
+ }
+
+ @override
+ void onBeforeSignIn() {
+ setState(() {
+ child = CircularProgressIndicator();
+ });
+ }
+
+ @override
+ void onCanceled() {
+ setState(() {
+ child = Text('Authenticated cancelled');
+ });
+ }
+
+ @override
+ void onCredentialLinked(AuthCredential credential) {
+ Navigator.of(context).pushReplacementNamed('/profile');
+ }
+
+ @override
+ void onError(Object error) {
+ try {
+ // tries default recovery strategy
+ defaultOnAuthError(provider, error);
+ } catch (err) {
+ setState(() {
+ defaultOnAuthError(provider, error);
+ });
+ }
+ }
+
+ @override
+ void onSignedIn(UserCredential credential) {
+ Navigator.of(context).pushReplacementNamed('/profile');
+ }
+}
+```
+
+## Other topics
+
+- [EmaiAuthProvider](./email.md) - allows registering and signing using email and password.
+- [Email verification](./email-verification.md)
+- [EmailLinkAuthProvider](./email-link.md) - allows registering and signing using a link sent to email.
+- [PhoneAuthProvider](./phone.md) - allows registering and signing using a phone number
+- [OAuth](./oauth.md)
+- [Localization](../../../firebase_ui_localizations/README.md)
+- [Theming](../theming.md)
+- [Navigation](../navigation.md)
diff --git a/packages/firebase_ui_auth/doc/theming.md b/packages/firebase_ui_auth/doc/theming.md
new file mode 100644
index 000000000000..773d59462b1f
--- /dev/null
+++ b/packages/firebase_ui_auth/doc/theming.md
@@ -0,0 +1,108 @@
+# Theming
+
+Firebase UI widgets are built on top of Material and Cupertino design patterns provided by Flutter.
+
+To provide consistency across your application, the Firebase UI widgets depend on the [`ThemeData`](https://api.flutter.dev/flutter/material/ThemeData-class.html)
+or [`CupertinoThemeData`](https://api.flutter.dev/flutter/cupertino/CupertinoThemeData-class.html) instances provided to your `MaterialApp` or `CupertinoApp` widget.
+
+For example, the `SignInScreen` widget with an email provider wrapped in a `MaterialApp` will use the following widgets:
+
+- [`TextFormField`](https://api.flutter.dev/flutter/material/TextFormField-class.html)
+- [`TextButton`](https://api.flutter.dev/flutter/material/TextButton-class.html)
+- [`OutlinedButton`](https://api.flutter.dev/flutter/material/OutlinedButton-class.html)
+
+```dart
+class FirebaseAuthUIExample extends StatelessWidget {
+ @override
+ Widget build(BuildContext context) {
+ return const MaterialApp(
+ home: SignInScreen(
+ providers: [
+ EmailProvider(),
+ ],
+ ),
+ );
+ }
+}
+```
+
+This will render a screen with the default Material style widgets:
+
+
+
+To update these styles, we can override the `ThemeData` provided to the `MaterialApp`. For example, to apply a border to the input fields,
+we can override the `InputDecorationTheme`:
+
+```dart
+class FirebaseAuthUIExample extends StatelessWidget {
+ @override
+ Widget build(BuildContext context) {
+ return MaterialApp(
+ theme: ThemeData(
+ inputDecorationTheme: InputDecorationTheme(
+ border: OutlineInputBorder(
+ borderRadius: BorderRadius.circular(8),
+ ),
+ ),
+ ),
+ home: const SignInScreen(
+ providers: [
+ EmailProvider(),
+ ],
+ ),
+ );
+ }
+}
+```
+
+The UI widgets will respect the updated theme data, and the UI will be reflected to match:
+
+
+
+Furthermore, we can customize the button used in the UI by overriding the `OutlinedButtonThemeData`:
+
+```dart
+class FirebaseAuthUIExample extends StatelessWidget {
+ @override
+ Widget build(BuildContext context) {
+ return MaterialApp(
+ theme: ThemeData(
+ inputDecorationTheme: InputDecorationTheme(
+ border: OutlineInputBorder(
+ borderRadius: BorderRadius.circular(8),
+ ),
+ ),
+ outlinedButtonTheme: OutlinedButtonThemeData(
+ style: ButtonStyle(
+ padding: MaterialStateProperty.all(
+ const EdgeInsets.all(24),
+ ),
+ backgroundColor: MaterialStateProperty.all(Colors.blue),
+ foregroundColor: MaterialStateProperty.all(Colors.white),
+ ),
+ ),
+ ),
+ home: const SignInScreen(
+ providers: [
+ EmailProvider(),
+ ],
+ ),
+ );
+ }
+}
+```
+
+The button will now respect the updated theme data and display a styled button instead:
+
+
+
+## Other topics
+
+- [EmaiAuthProvider](./providers/email.md) - allows registering and signing using email and password.
+- [EmailLinkAuthProvider](./providers/email-link.md) - allows registering and signing using a link sent to email.
+- [PhoneAuthProvider](./providers/phone.md) - allows registering and signing using a phone number
+- [UniversalEmailSignInProvider](./providers/universal-email-sign-in.md) - gets all connected auth providers for a given email.
+- [OAuth](./providers/oauth.md)
+
+- [Localization](../../firebase_ui_localizations/README.md)
+- [Navigation](./navigation.md)
diff --git a/packages/firebase_ui_auth/example/.gitignore b/packages/firebase_ui_auth/example/.gitignore
new file mode 100644
index 000000000000..a8e938c08397
--- /dev/null
+++ b/packages/firebase_ui_auth/example/.gitignore
@@ -0,0 +1,47 @@
+# Miscellaneous
+*.class
+*.log
+*.pyc
+*.swp
+.DS_Store
+.atom/
+.buildlog/
+.history
+.svn/
+migrate_working_dir/
+
+# IntelliJ related
+*.iml
+*.ipr
+*.iws
+.idea/
+
+# The .vscode folder contains launch configuration and tasks you configure in
+# VS Code which you may wish to be included in version control, so this line
+# is commented out by default.
+#.vscode/
+
+# Flutter/Dart/Pub related
+**/doc/api/
+**/ios/Flutter/.last_build_id
+.dart_tool/
+.flutter-plugins
+.flutter-plugins-dependencies
+.packages
+.pub-cache/
+.pub/
+/build/
+
+# Web related
+lib/generated_plugin_registrant.dart
+
+# Symbolication related
+app.*.symbols
+
+# Obfuscation related
+app.*.map.json
+
+# Android Studio will place build artifacts here
+/android/app/debug
+/android/app/profile
+/android/app/release
diff --git a/packages/firebase_ui_auth/example/.metadata b/packages/firebase_ui_auth/example/.metadata
new file mode 100644
index 000000000000..39f2501e1faf
--- /dev/null
+++ b/packages/firebase_ui_auth/example/.metadata
@@ -0,0 +1,45 @@
+# This file tracks properties of this Flutter project.
+# Used by Flutter tool to assess capabilities and perform upgrades etc.
+#
+# This file should be version controlled.
+
+version:
+ revision: f1875d570e39de09040c8f79aa13cc56baab8db1
+ channel: stable
+
+project_type: app
+
+# Tracks metadata for the flutter migrate command
+migration:
+ platforms:
+ - platform: root
+ create_revision: f1875d570e39de09040c8f79aa13cc56baab8db1
+ base_revision: f1875d570e39de09040c8f79aa13cc56baab8db1
+ - platform: android
+ create_revision: f1875d570e39de09040c8f79aa13cc56baab8db1
+ base_revision: f1875d570e39de09040c8f79aa13cc56baab8db1
+ - platform: ios
+ create_revision: f1875d570e39de09040c8f79aa13cc56baab8db1
+ base_revision: f1875d570e39de09040c8f79aa13cc56baab8db1
+ - platform: linux
+ create_revision: f1875d570e39de09040c8f79aa13cc56baab8db1
+ base_revision: f1875d570e39de09040c8f79aa13cc56baab8db1
+ - platform: macos
+ create_revision: f1875d570e39de09040c8f79aa13cc56baab8db1
+ base_revision: f1875d570e39de09040c8f79aa13cc56baab8db1
+ - platform: web
+ create_revision: f1875d570e39de09040c8f79aa13cc56baab8db1
+ base_revision: f1875d570e39de09040c8f79aa13cc56baab8db1
+ - platform: windows
+ create_revision: f1875d570e39de09040c8f79aa13cc56baab8db1
+ base_revision: f1875d570e39de09040c8f79aa13cc56baab8db1
+
+ # User provided section
+
+ # List of Local paths (relative to this file) that should be
+ # ignored by the migrate tool.
+ #
+ # Files that are not part of the templates will be ignored by default.
+ unmanaged_files:
+ - 'lib/main.dart'
+ - 'ios/Runner.xcodeproj/project.pbxproj'
diff --git a/packages/firebase_ui_auth/example/README.md b/packages/firebase_ui_auth/example/README.md
new file mode 100644
index 000000000000..aa8978474d15
--- /dev/null
+++ b/packages/firebase_ui_auth/example/README.md
@@ -0,0 +1,16 @@
+# firebase_ui_example
+
+A new Flutter project.
+
+## Getting Started
+
+This project is a starting point for a Flutter application.
+
+A few resources to get you started if this is your first Flutter project:
+
+- [Lab: Write your first Flutter app](https://docs.flutter.dev/get-started/codelab)
+- [Cookbook: Useful Flutter samples](https://docs.flutter.dev/cookbook)
+
+For help getting started with Flutter development, view the
+[online documentation](https://docs.flutter.dev/), which offers tutorials,
+samples, guidance on mobile development, and a full API reference.
diff --git a/packages/firebase_ui_auth/example/analysis_options.yaml b/packages/firebase_ui_auth/example/analysis_options.yaml
new file mode 100644
index 000000000000..fd16f9219845
--- /dev/null
+++ b/packages/firebase_ui_auth/example/analysis_options.yaml
@@ -0,0 +1,28 @@
+# This file configures the analyzer, which statically analyzes Dart code to
+# check for errors, warnings, and lints.
+#
+# The issues identified by the analyzer are surfaced in the UI of Dart-enabled
+# IDEs (https://dart.dev/tools#ides-and-editors). The analyzer can also be
+# invoked from the command line by running `flutter analyze`.
+
+# The following line activates a set of recommended lints for Flutter apps,
+# packages, and plugins designed to encourage good coding practices.
+include: package:flutter_lints/flutter.yaml
+
+linter:
+ # The lint rules applied to this project can be customized in the
+ # section below to disable rules from the `package:flutter_lints/flutter.yaml`
+ # included above or to enable additional rules. A list of all available lints
+ # and their documentation is published at
+ # https://dart-lang.github.io/linter/lints/index.html.
+ #
+ # Instead of disabling a lint rule for the entire project in the
+ # section below, it can also be suppressed for a single line of code
+ # or a specific dart file by using the `// ignore: name_of_lint` and
+ # `// ignore_for_file: name_of_lint` syntax on the line or in the file
+ # producing the lint.
+ rules:
+ # avoid_print: false # Uncomment to disable the `avoid_print` rule
+ # prefer_single_quotes: true # Uncomment to enable the `prefer_single_quotes` rule
+# Additional information about this file can be found at
+# https://dart.dev/guides/language/analysis-options
diff --git a/packages/firebase_ui_auth/example/android/.gitignore b/packages/firebase_ui_auth/example/android/.gitignore
new file mode 100644
index 000000000000..6f568019d3c6
--- /dev/null
+++ b/packages/firebase_ui_auth/example/android/.gitignore
@@ -0,0 +1,13 @@
+gradle-wrapper.jar
+/.gradle
+/captures/
+/gradlew
+/gradlew.bat
+/local.properties
+GeneratedPluginRegistrant.java
+
+# Remember to never publicly share your keystore.
+# See https://flutter.dev/docs/deployment/android#reference-the-keystore-from-the-app
+key.properties
+**/*.keystore
+**/*.jks
diff --git a/packages/firebase_ui_auth/example/android/app/build.gradle b/packages/firebase_ui_auth/example/android/app/build.gradle
new file mode 100644
index 000000000000..e613072eb7fa
--- /dev/null
+++ b/packages/firebase_ui_auth/example/android/app/build.gradle
@@ -0,0 +1,72 @@
+def localProperties = new Properties()
+def localPropertiesFile = rootProject.file('local.properties')
+if (localPropertiesFile.exists()) {
+ localPropertiesFile.withReader('UTF-8') { reader ->
+ localProperties.load(reader)
+ }
+}
+
+def flutterRoot = localProperties.getProperty('flutter.sdk')
+if (flutterRoot == null) {
+ throw new GradleException("Flutter SDK not found. Define location with flutter.sdk in the local.properties file.")
+}
+
+def flutterVersionCode = localProperties.getProperty('flutter.versionCode')
+if (flutterVersionCode == null) {
+ flutterVersionCode = '1'
+}
+
+def flutterVersionName = localProperties.getProperty('flutter.versionName')
+if (flutterVersionName == null) {
+ flutterVersionName = '1.0'
+}
+
+apply plugin: 'com.android.application'
+apply plugin: 'kotlin-android'
+apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
+
+android {
+ compileSdkVersion flutter.compileSdkVersion
+ ndkVersion flutter.ndkVersion
+
+ compileOptions {
+ sourceCompatibility JavaVersion.VERSION_1_8
+ targetCompatibility JavaVersion.VERSION_1_8
+ }
+
+ kotlinOptions {
+ jvmTarget = '1.8'
+ }
+
+ sourceSets {
+ main.java.srcDirs += 'src/main/kotlin'
+ }
+
+ defaultConfig {
+ // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
+ applicationId "io.flutter.plugins.firebase_ui_example"
+ // You can update the following values to match your application needs.
+ // For more information, see: https://docs.flutter.dev/deployment/android#reviewing-the-build-configuration.
+ minSdkVersion 19
+ targetSdkVersion flutter.targetSdkVersion
+ versionCode flutterVersionCode.toInteger()
+ versionName flutterVersionName
+ multiDexEnabled true
+ }
+
+ buildTypes {
+ release {
+ // TODO: Add your own signing config for the release build.
+ // Signing with the debug keys for now, so `flutter run --release` works.
+ signingConfig signingConfigs.debug
+ }
+ }
+}
+
+flutter {
+ source '../..'
+}
+
+dependencies {
+ implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
+}
diff --git a/packages/firebase_ui_auth/example/android/app/src/debug/AndroidManifest.xml b/packages/firebase_ui_auth/example/android/app/src/debug/AndroidManifest.xml
new file mode 100644
index 000000000000..ea82eba30f06
--- /dev/null
+++ b/packages/firebase_ui_auth/example/android/app/src/debug/AndroidManifest.xml
@@ -0,0 +1,8 @@
+
+
+
+
diff --git a/packages/firebase_ui_auth/example/android/app/src/main/AndroidManifest.xml b/packages/firebase_ui_auth/example/android/app/src/main/AndroidManifest.xml
new file mode 100644
index 000000000000..36f5b767539a
--- /dev/null
+++ b/packages/firebase_ui_auth/example/android/app/src/main/AndroidManifest.xml
@@ -0,0 +1,43 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/packages/firebase_ui_auth/example/android/app/src/main/kotlin/io/flutter/plugins/firebase_ui_example/MainActivity.kt b/packages/firebase_ui_auth/example/android/app/src/main/kotlin/io/flutter/plugins/firebase_ui_example/MainActivity.kt
new file mode 100644
index 000000000000..e998cfce3205
--- /dev/null
+++ b/packages/firebase_ui_auth/example/android/app/src/main/kotlin/io/flutter/plugins/firebase_ui_example/MainActivity.kt
@@ -0,0 +1,6 @@
+package io.flutter.plugins.firebase_ui_example
+
+import io.flutter.embedding.android.FlutterActivity
+
+class MainActivity: FlutterActivity() {
+}
diff --git a/packages/firebase_ui_auth/example/android/app/src/main/res/drawable-v21/launch_background.xml b/packages/firebase_ui_auth/example/android/app/src/main/res/drawable-v21/launch_background.xml
new file mode 100644
index 000000000000..f74085f3f6a2
--- /dev/null
+++ b/packages/firebase_ui_auth/example/android/app/src/main/res/drawable-v21/launch_background.xml
@@ -0,0 +1,12 @@
+
+
+
+
+
+
+
+
diff --git a/packages/firebase_ui_auth/example/android/app/src/main/res/drawable/launch_background.xml b/packages/firebase_ui_auth/example/android/app/src/main/res/drawable/launch_background.xml
new file mode 100644
index 000000000000..304732f88420
--- /dev/null
+++ b/packages/firebase_ui_auth/example/android/app/src/main/res/drawable/launch_background.xml
@@ -0,0 +1,12 @@
+
+
+
+
+
+
+
+
diff --git a/packages/firebase_ui_auth/example/android/app/src/main/res/mipmap-hdpi/ic_launcher.png b/packages/firebase_ui_auth/example/android/app/src/main/res/mipmap-hdpi/ic_launcher.png
new file mode 100644
index 000000000000..db77bb4b7b09
Binary files /dev/null and b/packages/firebase_ui_auth/example/android/app/src/main/res/mipmap-hdpi/ic_launcher.png differ
diff --git a/packages/firebase_ui_auth/example/android/app/src/main/res/mipmap-mdpi/ic_launcher.png b/packages/firebase_ui_auth/example/android/app/src/main/res/mipmap-mdpi/ic_launcher.png
new file mode 100644
index 000000000000..17987b79bb8a
Binary files /dev/null and b/packages/firebase_ui_auth/example/android/app/src/main/res/mipmap-mdpi/ic_launcher.png differ
diff --git a/packages/firebase_ui_auth/example/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png b/packages/firebase_ui_auth/example/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png
new file mode 100644
index 000000000000..09d4391482be
Binary files /dev/null and b/packages/firebase_ui_auth/example/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png differ
diff --git a/packages/firebase_ui_auth/example/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png b/packages/firebase_ui_auth/example/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png
new file mode 100644
index 000000000000..d5f1c8d34e7a
Binary files /dev/null and b/packages/firebase_ui_auth/example/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png differ
diff --git a/packages/firebase_ui_auth/example/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png b/packages/firebase_ui_auth/example/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png
new file mode 100644
index 000000000000..4d6372eebdb2
Binary files /dev/null and b/packages/firebase_ui_auth/example/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png differ
diff --git a/packages/firebase_ui_auth/example/android/app/src/main/res/values-night/styles.xml b/packages/firebase_ui_auth/example/android/app/src/main/res/values-night/styles.xml
new file mode 100644
index 000000000000..06952be745f9
--- /dev/null
+++ b/packages/firebase_ui_auth/example/android/app/src/main/res/values-night/styles.xml
@@ -0,0 +1,18 @@
+
+
+
+
+
+
+
diff --git a/packages/firebase_ui_auth/example/android/app/src/main/res/values/strings.xml b/packages/firebase_ui_auth/example/android/app/src/main/res/values/strings.xml
new file mode 100644
index 000000000000..4e61b94908a4
--- /dev/null
+++ b/packages/firebase_ui_auth/example/android/app/src/main/res/values/strings.xml
@@ -0,0 +1,5 @@
+
+
+ 128693022464535
+ 16dbbdf0cfb309034a6ad98ac2a21688
+
diff --git a/packages/firebase_ui_auth/example/android/app/src/main/res/values/styles.xml b/packages/firebase_ui_auth/example/android/app/src/main/res/values/styles.xml
new file mode 100644
index 000000000000..cb1ef88056ed
--- /dev/null
+++ b/packages/firebase_ui_auth/example/android/app/src/main/res/values/styles.xml
@@ -0,0 +1,18 @@
+
+
+
+
+
+
+
diff --git a/packages/firebase_ui_auth/example/android/app/src/profile/AndroidManifest.xml b/packages/firebase_ui_auth/example/android/app/src/profile/AndroidManifest.xml
new file mode 100644
index 000000000000..ea82eba30f06
--- /dev/null
+++ b/packages/firebase_ui_auth/example/android/app/src/profile/AndroidManifest.xml
@@ -0,0 +1,8 @@
+
+
+
+
diff --git a/packages/firebase_ui_auth/example/android/build.gradle b/packages/firebase_ui_auth/example/android/build.gradle
new file mode 100644
index 000000000000..83ae220041c7
--- /dev/null
+++ b/packages/firebase_ui_auth/example/android/build.gradle
@@ -0,0 +1,31 @@
+buildscript {
+ ext.kotlin_version = '1.6.10'
+ repositories {
+ google()
+ mavenCentral()
+ }
+
+ dependencies {
+ classpath 'com.android.tools.build:gradle:7.1.2'
+ classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
+ }
+}
+
+allprojects {
+ repositories {
+ google()
+ mavenCentral()
+ }
+}
+
+rootProject.buildDir = '../build'
+subprojects {
+ project.buildDir = "${rootProject.buildDir}/${project.name}"
+}
+subprojects {
+ project.evaluationDependsOn(':app')
+}
+
+task clean(type: Delete) {
+ delete rootProject.buildDir
+}
diff --git a/packages/firebase_ui_auth/example/android/gradle.properties b/packages/firebase_ui_auth/example/android/gradle.properties
new file mode 100644
index 000000000000..94adc3a3f97a
--- /dev/null
+++ b/packages/firebase_ui_auth/example/android/gradle.properties
@@ -0,0 +1,3 @@
+org.gradle.jvmargs=-Xmx1536M
+android.useAndroidX=true
+android.enableJetifier=true
diff --git a/packages/firebase_ui_auth/example/android/gradle/wrapper/gradle-wrapper.properties b/packages/firebase_ui_auth/example/android/gradle/wrapper/gradle-wrapper.properties
new file mode 100644
index 000000000000..cc5527d781a7
--- /dev/null
+++ b/packages/firebase_ui_auth/example/android/gradle/wrapper/gradle-wrapper.properties
@@ -0,0 +1,6 @@
+#Fri Jun 23 08:50:38 CEST 2017
+distributionBase=GRADLE_USER_HOME
+distributionPath=wrapper/dists
+zipStoreBase=GRADLE_USER_HOME
+zipStorePath=wrapper/dists
+distributionUrl=https\://services.gradle.org/distributions/gradle-7.4-all.zip
diff --git a/packages/firebase_ui_auth/example/android/settings.gradle b/packages/firebase_ui_auth/example/android/settings.gradle
new file mode 100644
index 000000000000..44e62bcf06ae
--- /dev/null
+++ b/packages/firebase_ui_auth/example/android/settings.gradle
@@ -0,0 +1,11 @@
+include ':app'
+
+def localPropertiesFile = new File(rootProject.projectDir, "local.properties")
+def properties = new Properties()
+
+assert localPropertiesFile.exists()
+localPropertiesFile.withReader("UTF-8") { reader -> properties.load(reader) }
+
+def flutterSdkPath = properties.getProperty("flutter.sdk")
+assert flutterSdkPath != null, "flutter.sdk not set in local.properties"
+apply from: "$flutterSdkPath/packages/flutter_tools/gradle/app_plugin_loader.gradle"
diff --git a/packages/firebase_ui_auth/example/assets/images/firebase_logo.svg b/packages/firebase_ui_auth/example/assets/images/firebase_logo.svg
new file mode 100644
index 000000000000..dbf717473387
--- /dev/null
+++ b/packages/firebase_ui_auth/example/assets/images/firebase_logo.svg
@@ -0,0 +1 @@
+
diff --git a/packages/firebase_ui_auth/example/assets/images/flutterfire_logo.png b/packages/firebase_ui_auth/example/assets/images/flutterfire_logo.png
new file mode 100644
index 000000000000..604593b8e481
Binary files /dev/null and b/packages/firebase_ui_auth/example/assets/images/flutterfire_logo.png differ
diff --git a/packages/firebase_ui_auth/example/ios/.gitignore b/packages/firebase_ui_auth/example/ios/.gitignore
new file mode 100644
index 000000000000..7a7f9873ad7d
--- /dev/null
+++ b/packages/firebase_ui_auth/example/ios/.gitignore
@@ -0,0 +1,34 @@
+**/dgph
+*.mode1v3
+*.mode2v3
+*.moved-aside
+*.pbxuser
+*.perspectivev3
+**/*sync/
+.sconsign.dblite
+.tags*
+**/.vagrant/
+**/DerivedData/
+Icon?
+**/Pods/
+**/.symlinks/
+profile
+xcuserdata
+**/.generated/
+Flutter/App.framework
+Flutter/Flutter.framework
+Flutter/Flutter.podspec
+Flutter/Generated.xcconfig
+Flutter/ephemeral/
+Flutter/app.flx
+Flutter/app.zip
+Flutter/flutter_assets/
+Flutter/flutter_export_environment.sh
+ServiceDefinitions.json
+Runner/GeneratedPluginRegistrant.*
+
+# Exceptions to above rules.
+!default.mode1v3
+!default.mode2v3
+!default.pbxuser
+!default.perspectivev3
diff --git a/packages/firebase_ui_auth/example/ios/Flutter/AppFrameworkInfo.plist b/packages/firebase_ui_auth/example/ios/Flutter/AppFrameworkInfo.plist
new file mode 100644
index 000000000000..8d4492f977ad
--- /dev/null
+++ b/packages/firebase_ui_auth/example/ios/Flutter/AppFrameworkInfo.plist
@@ -0,0 +1,26 @@
+
+
+
+
+ CFBundleDevelopmentRegion
+ en
+ CFBundleExecutable
+ App
+ CFBundleIdentifier
+ io.flutter.flutter.app
+ CFBundleInfoDictionaryVersion
+ 6.0
+ CFBundleName
+ App
+ CFBundlePackageType
+ FMWK
+ CFBundleShortVersionString
+ 1.0
+ CFBundleSignature
+ ????
+ CFBundleVersion
+ 1.0
+ MinimumOSVersion
+ 9.0
+
+
diff --git a/packages/firebase_ui_auth/example/ios/Flutter/Debug.xcconfig b/packages/firebase_ui_auth/example/ios/Flutter/Debug.xcconfig
new file mode 100644
index 000000000000..ec97fc6f3021
--- /dev/null
+++ b/packages/firebase_ui_auth/example/ios/Flutter/Debug.xcconfig
@@ -0,0 +1,2 @@
+#include? "Pods/Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig"
+#include "Generated.xcconfig"
diff --git a/packages/firebase_ui_auth/example/ios/Flutter/Release.xcconfig b/packages/firebase_ui_auth/example/ios/Flutter/Release.xcconfig
new file mode 100644
index 000000000000..c4855bfe2000
--- /dev/null
+++ b/packages/firebase_ui_auth/example/ios/Flutter/Release.xcconfig
@@ -0,0 +1,2 @@
+#include? "Pods/Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig"
+#include "Generated.xcconfig"
diff --git a/packages/firebase_ui_auth/example/ios/Podfile b/packages/firebase_ui_auth/example/ios/Podfile
new file mode 100644
index 000000000000..1e8c3c90a55e
--- /dev/null
+++ b/packages/firebase_ui_auth/example/ios/Podfile
@@ -0,0 +1,41 @@
+# Uncomment this line to define a global platform for your project
+# platform :ios, '9.0'
+
+# CocoaPods analytics sends network stats synchronously affecting flutter build latency.
+ENV['COCOAPODS_DISABLE_STATS'] = 'true'
+
+project 'Runner', {
+ 'Debug' => :debug,
+ 'Profile' => :release,
+ 'Release' => :release,
+}
+
+def flutter_root
+ generated_xcode_build_settings_path = File.expand_path(File.join('..', 'Flutter', 'Generated.xcconfig'), __FILE__)
+ unless File.exist?(generated_xcode_build_settings_path)
+ raise "#{generated_xcode_build_settings_path} must exist. If you're running pod install manually, make sure flutter pub get is executed first"
+ end
+
+ File.foreach(generated_xcode_build_settings_path) do |line|
+ matches = line.match(/FLUTTER_ROOT\=(.*)/)
+ return matches[1].strip if matches
+ end
+ raise "FLUTTER_ROOT not found in #{generated_xcode_build_settings_path}. Try deleting Generated.xcconfig, then run flutter pub get"
+end
+
+require File.expand_path(File.join('packages', 'flutter_tools', 'bin', 'podhelper'), flutter_root)
+
+flutter_ios_podfile_setup
+
+target 'Runner' do
+ use_frameworks!
+ use_modular_headers!
+
+ flutter_install_all_ios_pods File.dirname(File.realpath(__FILE__))
+end
+
+post_install do |installer|
+ installer.pods_project.targets.each do |target|
+ flutter_additional_ios_build_settings(target)
+ end
+end
diff --git a/packages/firebase_ui_auth/example/ios/Runner.xcodeproj/project.pbxproj b/packages/firebase_ui_auth/example/ios/Runner.xcodeproj/project.pbxproj
new file mode 100644
index 000000000000..e673022acc75
--- /dev/null
+++ b/packages/firebase_ui_auth/example/ios/Runner.xcodeproj/project.pbxproj
@@ -0,0 +1,484 @@
+// !$*UTF8*$!
+{
+ archiveVersion = 1;
+ classes = {
+ };
+ objectVersion = 50;
+ objects = {
+
+/* Begin PBXBuildFile section */
+ 1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */ = {isa = PBXBuildFile; fileRef = 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */; };
+ 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */ = {isa = PBXBuildFile; fileRef = 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */; };
+ 74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 74858FAE1ED2DC5600515810 /* AppDelegate.swift */; };
+ 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FA1CF9000F007C117D /* Main.storyboard */; };
+ 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FD1CF9000F007C117D /* Assets.xcassets */; };
+ 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */; };
+/* End PBXBuildFile section */
+
+/* Begin PBXCopyFilesBuildPhase section */
+ 9705A1C41CF9048500538489 /* Embed Frameworks */ = {
+ isa = PBXCopyFilesBuildPhase;
+ buildActionMask = 2147483647;
+ dstPath = "";
+ dstSubfolderSpec = 10;
+ files = (
+ );
+ name = "Embed Frameworks";
+ runOnlyForDeploymentPostprocessing = 0;
+ };
+/* End PBXCopyFilesBuildPhase section */
+
+/* Begin PBXFileReference section */
+ 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = GeneratedPluginRegistrant.h; sourceTree = ""; };
+ 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GeneratedPluginRegistrant.m; sourceTree = ""; };
+ 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = AppFrameworkInfo.plist; path = Flutter/AppFrameworkInfo.plist; sourceTree = ""; };
+ 74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "Runner-Bridging-Header.h"; sourceTree = ""; };
+ 74858FAE1ED2DC5600515810 /* AppDelegate.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; };
+ 7AFA3C8E1D35360C0083082E /* Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; name = Release.xcconfig; path = Flutter/Release.xcconfig; sourceTree = ""; };
+ 9740EEB21CF90195004384FC /* Debug.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Debug.xcconfig; path = Flutter/Debug.xcconfig; sourceTree = ""; };
+ 9740EEB31CF90195004384FC /* Generated.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Generated.xcconfig; path = Flutter/Generated.xcconfig; sourceTree = ""; };
+ 97C146EE1CF9000F007C117D /* Runner.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Runner.app; sourceTree = BUILT_PRODUCTS_DIR; };
+ 97C146FB1CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; };
+ 97C146FD1CF9000F007C117D /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; };
+ 97C147001CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; };
+ 97C147021CF9000F007C117D /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; };
+/* End PBXFileReference section */
+
+/* Begin PBXFrameworksBuildPhase section */
+ 97C146EB1CF9000F007C117D /* Frameworks */ = {
+ isa = PBXFrameworksBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ };
+/* End PBXFrameworksBuildPhase section */
+
+/* Begin PBXGroup section */
+ 9740EEB11CF90186004384FC /* Flutter */ = {
+ isa = PBXGroup;
+ children = (
+ 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */,
+ 9740EEB21CF90195004384FC /* Debug.xcconfig */,
+ 7AFA3C8E1D35360C0083082E /* Release.xcconfig */,
+ 9740EEB31CF90195004384FC /* Generated.xcconfig */,
+ );
+ name = Flutter;
+ sourceTree = "";
+ };
+ 97C146E51CF9000F007C117D = {
+ isa = PBXGroup;
+ children = (
+ 9740EEB11CF90186004384FC /* Flutter */,
+ 97C146F01CF9000F007C117D /* Runner */,
+ 97C146EF1CF9000F007C117D /* Products */,
+ );
+ sourceTree = "";
+ };
+ 97C146EF1CF9000F007C117D /* Products */ = {
+ isa = PBXGroup;
+ children = (
+ 97C146EE1CF9000F007C117D /* Runner.app */,
+ );
+ name = Products;
+ sourceTree = "";
+ };
+ 97C146F01CF9000F007C117D /* Runner */ = {
+ isa = PBXGroup;
+ children = (
+ 97C146FA1CF9000F007C117D /* Main.storyboard */,
+ 97C146FD1CF9000F007C117D /* Assets.xcassets */,
+ 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */,
+ 97C147021CF9000F007C117D /* Info.plist */,
+ 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */,
+ 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */,
+ 74858FAE1ED2DC5600515810 /* AppDelegate.swift */,
+ 74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */,
+ );
+ path = Runner;
+ sourceTree = "";
+ };
+/* End PBXGroup section */
+
+/* Begin PBXNativeTarget section */
+ 97C146ED1CF9000F007C117D /* Runner */ = {
+ isa = PBXNativeTarget;
+ buildConfigurationList = 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */;
+ buildPhases = (
+ 9740EEB61CF901F6004384FC /* Run Script */,
+ 97C146EA1CF9000F007C117D /* Sources */,
+ 97C146EB1CF9000F007C117D /* Frameworks */,
+ 97C146EC1CF9000F007C117D /* Resources */,
+ 9705A1C41CF9048500538489 /* Embed Frameworks */,
+ 3B06AD1E1E4923F5004D2608 /* Thin Binary */,
+ );
+ buildRules = (
+ );
+ dependencies = (
+ );
+ name = Runner;
+ productName = Runner;
+ productReference = 97C146EE1CF9000F007C117D /* Runner.app */;
+ productType = "com.apple.product-type.application";
+ };
+/* End PBXNativeTarget section */
+
+/* Begin PBXProject section */
+ 97C146E61CF9000F007C117D /* Project object */ = {
+ isa = PBXProject;
+ attributes = {
+ LastUpgradeCheck = 1300;
+ ORGANIZATIONNAME = "";
+ TargetAttributes = {
+ 97C146ED1CF9000F007C117D = {
+ CreatedOnToolsVersion = 7.3.1;
+ LastSwiftMigration = 1100;
+ };
+ };
+ };
+ buildConfigurationList = 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */;
+ compatibilityVersion = "Xcode 9.3";
+ developmentRegion = en;
+ hasScannedForEncodings = 0;
+ knownRegions = (
+ en,
+ Base,
+ );
+ mainGroup = 97C146E51CF9000F007C117D;
+ productRefGroup = 97C146EF1CF9000F007C117D /* Products */;
+ projectDirPath = "";
+ projectRoot = "";
+ targets = (
+ 97C146ED1CF9000F007C117D /* Runner */,
+ );
+ };
+/* End PBXProject section */
+
+/* Begin PBXResourcesBuildPhase section */
+ 97C146EC1CF9000F007C117D /* Resources */ = {
+ isa = PBXResourcesBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */,
+ 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */,
+ 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */,
+ 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */,
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ };
+/* End PBXResourcesBuildPhase section */
+
+/* Begin PBXShellScriptBuildPhase section */
+ 3B06AD1E1E4923F5004D2608 /* Thin Binary */ = {
+ isa = PBXShellScriptBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ );
+ inputPaths = (
+ );
+ name = "Thin Binary";
+ outputPaths = (
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ shellPath = /bin/sh;
+ shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" embed_and_thin";
+ };
+ 9740EEB61CF901F6004384FC /* Run Script */ = {
+ isa = PBXShellScriptBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ );
+ inputPaths = (
+ );
+ name = "Run Script";
+ outputPaths = (
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ shellPath = /bin/sh;
+ shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" build";
+ };
+/* End PBXShellScriptBuildPhase section */
+
+/* Begin PBXSourcesBuildPhase section */
+ 97C146EA1CF9000F007C117D /* Sources */ = {
+ isa = PBXSourcesBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ 74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */,
+ 1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */,
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ };
+/* End PBXSourcesBuildPhase section */
+
+/* Begin PBXVariantGroup section */
+ 97C146FA1CF9000F007C117D /* Main.storyboard */ = {
+ isa = PBXVariantGroup;
+ children = (
+ 97C146FB1CF9000F007C117D /* Base */,
+ );
+ name = Main.storyboard;
+ sourceTree = "";
+ };
+ 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */ = {
+ isa = PBXVariantGroup;
+ children = (
+ 97C147001CF9000F007C117D /* Base */,
+ );
+ name = LaunchScreen.storyboard;
+ sourceTree = "";
+ };
+/* End PBXVariantGroup section */
+
+/* Begin XCBuildConfiguration section */
+ 249021D3217E4FDB00AE95B9 /* Profile */ = {
+ isa = XCBuildConfiguration;
+ buildSettings = {
+ ALWAYS_SEARCH_USER_PATHS = NO;
+ CLANG_ANALYZER_NONNULL = YES;
+ CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
+ CLANG_CXX_LIBRARY = "libc++";
+ CLANG_ENABLE_MODULES = YES;
+ CLANG_ENABLE_OBJC_ARC = YES;
+ CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
+ CLANG_WARN_BOOL_CONVERSION = YES;
+ CLANG_WARN_COMMA = YES;
+ CLANG_WARN_CONSTANT_CONVERSION = YES;
+ CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
+ CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
+ CLANG_WARN_EMPTY_BODY = YES;
+ CLANG_WARN_ENUM_CONVERSION = YES;
+ CLANG_WARN_INFINITE_RECURSION = YES;
+ CLANG_WARN_INT_CONVERSION = YES;
+ CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
+ CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
+ CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
+ CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
+ CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
+ CLANG_WARN_STRICT_PROTOTYPES = YES;
+ CLANG_WARN_SUSPICIOUS_MOVE = YES;
+ CLANG_WARN_UNREACHABLE_CODE = YES;
+ CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
+ "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
+ COPY_PHASE_STRIP = NO;
+ DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
+ ENABLE_NS_ASSERTIONS = NO;
+ ENABLE_STRICT_OBJC_MSGSEND = YES;
+ GCC_C_LANGUAGE_STANDARD = gnu99;
+ GCC_NO_COMMON_BLOCKS = YES;
+ GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
+ GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
+ GCC_WARN_UNDECLARED_SELECTOR = YES;
+ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
+ GCC_WARN_UNUSED_FUNCTION = YES;
+ GCC_WARN_UNUSED_VARIABLE = YES;
+ IPHONEOS_DEPLOYMENT_TARGET = 9.0;
+ MTL_ENABLE_DEBUG_INFO = NO;
+ SDKROOT = iphoneos;
+ SUPPORTED_PLATFORMS = iphoneos;
+ TARGETED_DEVICE_FAMILY = "1,2";
+ VALIDATE_PRODUCT = YES;
+ };
+ name = Profile;
+ };
+ 249021D4217E4FDB00AE95B9 /* Profile */ = {
+ isa = XCBuildConfiguration;
+ baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */;
+ buildSettings = {
+ ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
+ CLANG_ENABLE_MODULES = YES;
+ CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
+ DEVELOPMENT_TEAM = ZPF26SRXG5;
+ ENABLE_BITCODE = NO;
+ INFOPLIST_FILE = Runner/Info.plist;
+ LD_RUNPATH_SEARCH_PATHS = (
+ "$(inherited)",
+ "@executable_path/Frameworks",
+ );
+ PRODUCT_BUNDLE_IDENTIFIER = io.flutter.plugins.firebaseUiExample;
+ PRODUCT_NAME = "$(TARGET_NAME)";
+ SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
+ SWIFT_VERSION = 5.0;
+ VERSIONING_SYSTEM = "apple-generic";
+ };
+ name = Profile;
+ };
+ 97C147031CF9000F007C117D /* Debug */ = {
+ isa = XCBuildConfiguration;
+ buildSettings = {
+ ALWAYS_SEARCH_USER_PATHS = NO;
+ CLANG_ANALYZER_NONNULL = YES;
+ CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
+ CLANG_CXX_LIBRARY = "libc++";
+ CLANG_ENABLE_MODULES = YES;
+ CLANG_ENABLE_OBJC_ARC = YES;
+ CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
+ CLANG_WARN_BOOL_CONVERSION = YES;
+ CLANG_WARN_COMMA = YES;
+ CLANG_WARN_CONSTANT_CONVERSION = YES;
+ CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
+ CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
+ CLANG_WARN_EMPTY_BODY = YES;
+ CLANG_WARN_ENUM_CONVERSION = YES;
+ CLANG_WARN_INFINITE_RECURSION = YES;
+ CLANG_WARN_INT_CONVERSION = YES;
+ CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
+ CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
+ CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
+ CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
+ CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
+ CLANG_WARN_STRICT_PROTOTYPES = YES;
+ CLANG_WARN_SUSPICIOUS_MOVE = YES;
+ CLANG_WARN_UNREACHABLE_CODE = YES;
+ CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
+ "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
+ COPY_PHASE_STRIP = NO;
+ DEBUG_INFORMATION_FORMAT = dwarf;
+ ENABLE_STRICT_OBJC_MSGSEND = YES;
+ ENABLE_TESTABILITY = YES;
+ GCC_C_LANGUAGE_STANDARD = gnu99;
+ GCC_DYNAMIC_NO_PIC = NO;
+ GCC_NO_COMMON_BLOCKS = YES;
+ GCC_OPTIMIZATION_LEVEL = 0;
+ GCC_PREPROCESSOR_DEFINITIONS = (
+ "DEBUG=1",
+ "$(inherited)",
+ );
+ GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
+ GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
+ GCC_WARN_UNDECLARED_SELECTOR = YES;
+ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
+ GCC_WARN_UNUSED_FUNCTION = YES;
+ GCC_WARN_UNUSED_VARIABLE = YES;
+ IPHONEOS_DEPLOYMENT_TARGET = 9.0;
+ MTL_ENABLE_DEBUG_INFO = YES;
+ ONLY_ACTIVE_ARCH = YES;
+ SDKROOT = iphoneos;
+ TARGETED_DEVICE_FAMILY = "1,2";
+ };
+ name = Debug;
+ };
+ 97C147041CF9000F007C117D /* Release */ = {
+ isa = XCBuildConfiguration;
+ buildSettings = {
+ ALWAYS_SEARCH_USER_PATHS = NO;
+ CLANG_ANALYZER_NONNULL = YES;
+ CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
+ CLANG_CXX_LIBRARY = "libc++";
+ CLANG_ENABLE_MODULES = YES;
+ CLANG_ENABLE_OBJC_ARC = YES;
+ CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
+ CLANG_WARN_BOOL_CONVERSION = YES;
+ CLANG_WARN_COMMA = YES;
+ CLANG_WARN_CONSTANT_CONVERSION = YES;
+ CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
+ CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
+ CLANG_WARN_EMPTY_BODY = YES;
+ CLANG_WARN_ENUM_CONVERSION = YES;
+ CLANG_WARN_INFINITE_RECURSION = YES;
+ CLANG_WARN_INT_CONVERSION = YES;
+ CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
+ CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
+ CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
+ CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
+ CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
+ CLANG_WARN_STRICT_PROTOTYPES = YES;
+ CLANG_WARN_SUSPICIOUS_MOVE = YES;
+ CLANG_WARN_UNREACHABLE_CODE = YES;
+ CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
+ "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
+ COPY_PHASE_STRIP = NO;
+ DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
+ ENABLE_NS_ASSERTIONS = NO;
+ ENABLE_STRICT_OBJC_MSGSEND = YES;
+ GCC_C_LANGUAGE_STANDARD = gnu99;
+ GCC_NO_COMMON_BLOCKS = YES;
+ GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
+ GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
+ GCC_WARN_UNDECLARED_SELECTOR = YES;
+ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
+ GCC_WARN_UNUSED_FUNCTION = YES;
+ GCC_WARN_UNUSED_VARIABLE = YES;
+ IPHONEOS_DEPLOYMENT_TARGET = 9.0;
+ MTL_ENABLE_DEBUG_INFO = NO;
+ SDKROOT = iphoneos;
+ SUPPORTED_PLATFORMS = iphoneos;
+ SWIFT_COMPILATION_MODE = wholemodule;
+ SWIFT_OPTIMIZATION_LEVEL = "-O";
+ TARGETED_DEVICE_FAMILY = "1,2";
+ VALIDATE_PRODUCT = YES;
+ };
+ name = Release;
+ };
+ 97C147061CF9000F007C117D /* Debug */ = {
+ isa = XCBuildConfiguration;
+ baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */;
+ buildSettings = {
+ ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
+ CLANG_ENABLE_MODULES = YES;
+ CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
+ DEVELOPMENT_TEAM = ZPF26SRXG5;
+ ENABLE_BITCODE = NO;
+ INFOPLIST_FILE = Runner/Info.plist;
+ LD_RUNPATH_SEARCH_PATHS = (
+ "$(inherited)",
+ "@executable_path/Frameworks",
+ );
+ PRODUCT_BUNDLE_IDENTIFIER = io.flutter.plugins.firebaseUiExample;
+ PRODUCT_NAME = "$(TARGET_NAME)";
+ SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
+ SWIFT_OPTIMIZATION_LEVEL = "-Onone";
+ SWIFT_VERSION = 5.0;
+ VERSIONING_SYSTEM = "apple-generic";
+ };
+ name = Debug;
+ };
+ 97C147071CF9000F007C117D /* Release */ = {
+ isa = XCBuildConfiguration;
+ baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */;
+ buildSettings = {
+ ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
+ CLANG_ENABLE_MODULES = YES;
+ CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
+ DEVELOPMENT_TEAM = ZPF26SRXG5;
+ ENABLE_BITCODE = NO;
+ INFOPLIST_FILE = Runner/Info.plist;
+ LD_RUNPATH_SEARCH_PATHS = (
+ "$(inherited)",
+ "@executable_path/Frameworks",
+ );
+ PRODUCT_BUNDLE_IDENTIFIER = io.flutter.plugins.firebaseUiExample;
+ PRODUCT_NAME = "$(TARGET_NAME)";
+ SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
+ SWIFT_VERSION = 5.0;
+ VERSIONING_SYSTEM = "apple-generic";
+ };
+ name = Release;
+ };
+/* End XCBuildConfiguration section */
+
+/* Begin XCConfigurationList section */
+ 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */ = {
+ isa = XCConfigurationList;
+ buildConfigurations = (
+ 97C147031CF9000F007C117D /* Debug */,
+ 97C147041CF9000F007C117D /* Release */,
+ 249021D3217E4FDB00AE95B9 /* Profile */,
+ );
+ defaultConfigurationIsVisible = 0;
+ defaultConfigurationName = Release;
+ };
+ 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */ = {
+ isa = XCConfigurationList;
+ buildConfigurations = (
+ 97C147061CF9000F007C117D /* Debug */,
+ 97C147071CF9000F007C117D /* Release */,
+ 249021D4217E4FDB00AE95B9 /* Profile */,
+ );
+ defaultConfigurationIsVisible = 0;
+ defaultConfigurationName = Release;
+ };
+/* End XCConfigurationList section */
+ };
+ rootObject = 97C146E61CF9000F007C117D /* Project object */;
+}
diff --git a/packages/firebase_ui_auth/example/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata b/packages/firebase_ui_auth/example/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata
new file mode 100644
index 000000000000..919434a6254f
--- /dev/null
+++ b/packages/firebase_ui_auth/example/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata
@@ -0,0 +1,7 @@
+
+
+
+
+
diff --git a/packages/firebase_ui_auth/example/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist b/packages/firebase_ui_auth/example/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist
new file mode 100644
index 000000000000..18d981003d68
--- /dev/null
+++ b/packages/firebase_ui_auth/example/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist
@@ -0,0 +1,8 @@
+
+
+
+
+ IDEDidComputeMac32BitWarning
+
+
+
diff --git a/packages/firebase_ui_auth/example/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings b/packages/firebase_ui_auth/example/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings
new file mode 100644
index 000000000000..f9b0d7c5ea15
--- /dev/null
+++ b/packages/firebase_ui_auth/example/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings
@@ -0,0 +1,8 @@
+
+
+
+
+ PreviewsEnabled
+
+
+
diff --git a/packages/firebase_ui_auth/example/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme b/packages/firebase_ui_auth/example/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme
new file mode 100644
index 000000000000..c87d15a33520
--- /dev/null
+++ b/packages/firebase_ui_auth/example/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme
@@ -0,0 +1,87 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/packages/firebase_ui_auth/example/ios/Runner.xcworkspace/contents.xcworkspacedata b/packages/firebase_ui_auth/example/ios/Runner.xcworkspace/contents.xcworkspacedata
new file mode 100644
index 000000000000..1d526a16ed0f
--- /dev/null
+++ b/packages/firebase_ui_auth/example/ios/Runner.xcworkspace/contents.xcworkspacedata
@@ -0,0 +1,7 @@
+
+
+
+
+
diff --git a/packages/firebase_ui_auth/example/ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist b/packages/firebase_ui_auth/example/ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist
new file mode 100644
index 000000000000..18d981003d68
--- /dev/null
+++ b/packages/firebase_ui_auth/example/ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist
@@ -0,0 +1,8 @@
+
+
+
+
+ IDEDidComputeMac32BitWarning
+
+
+
diff --git a/packages/firebase_ui_auth/example/ios/Runner.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings b/packages/firebase_ui_auth/example/ios/Runner.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings
new file mode 100644
index 000000000000..f9b0d7c5ea15
--- /dev/null
+++ b/packages/firebase_ui_auth/example/ios/Runner.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings
@@ -0,0 +1,8 @@
+
+
+
+
+ PreviewsEnabled
+
+
+
diff --git a/packages/firebase_ui_auth/example/ios/Runner/AppDelegate.swift b/packages/firebase_ui_auth/example/ios/Runner/AppDelegate.swift
new file mode 100644
index 000000000000..70693e4a8c12
--- /dev/null
+++ b/packages/firebase_ui_auth/example/ios/Runner/AppDelegate.swift
@@ -0,0 +1,13 @@
+import UIKit
+import Flutter
+
+@UIApplicationMain
+@objc class AppDelegate: FlutterAppDelegate {
+ override func application(
+ _ application: UIApplication,
+ didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?
+ ) -> Bool {
+ GeneratedPluginRegistrant.register(with: self)
+ return super.application(application, didFinishLaunchingWithOptions: launchOptions)
+ }
+}
diff --git a/packages/firebase_ui_auth/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json b/packages/firebase_ui_auth/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json
new file mode 100644
index 000000000000..d36b1fab2d9d
--- /dev/null
+++ b/packages/firebase_ui_auth/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json
@@ -0,0 +1,122 @@
+{
+ "images" : [
+ {
+ "size" : "20x20",
+ "idiom" : "iphone",
+ "filename" : "Icon-App-20x20@2x.png",
+ "scale" : "2x"
+ },
+ {
+ "size" : "20x20",
+ "idiom" : "iphone",
+ "filename" : "Icon-App-20x20@3x.png",
+ "scale" : "3x"
+ },
+ {
+ "size" : "29x29",
+ "idiom" : "iphone",
+ "filename" : "Icon-App-29x29@1x.png",
+ "scale" : "1x"
+ },
+ {
+ "size" : "29x29",
+ "idiom" : "iphone",
+ "filename" : "Icon-App-29x29@2x.png",
+ "scale" : "2x"
+ },
+ {
+ "size" : "29x29",
+ "idiom" : "iphone",
+ "filename" : "Icon-App-29x29@3x.png",
+ "scale" : "3x"
+ },
+ {
+ "size" : "40x40",
+ "idiom" : "iphone",
+ "filename" : "Icon-App-40x40@2x.png",
+ "scale" : "2x"
+ },
+ {
+ "size" : "40x40",
+ "idiom" : "iphone",
+ "filename" : "Icon-App-40x40@3x.png",
+ "scale" : "3x"
+ },
+ {
+ "size" : "60x60",
+ "idiom" : "iphone",
+ "filename" : "Icon-App-60x60@2x.png",
+ "scale" : "2x"
+ },
+ {
+ "size" : "60x60",
+ "idiom" : "iphone",
+ "filename" : "Icon-App-60x60@3x.png",
+ "scale" : "3x"
+ },
+ {
+ "size" : "20x20",
+ "idiom" : "ipad",
+ "filename" : "Icon-App-20x20@1x.png",
+ "scale" : "1x"
+ },
+ {
+ "size" : "20x20",
+ "idiom" : "ipad",
+ "filename" : "Icon-App-20x20@2x.png",
+ "scale" : "2x"
+ },
+ {
+ "size" : "29x29",
+ "idiom" : "ipad",
+ "filename" : "Icon-App-29x29@1x.png",
+ "scale" : "1x"
+ },
+ {
+ "size" : "29x29",
+ "idiom" : "ipad",
+ "filename" : "Icon-App-29x29@2x.png",
+ "scale" : "2x"
+ },
+ {
+ "size" : "40x40",
+ "idiom" : "ipad",
+ "filename" : "Icon-App-40x40@1x.png",
+ "scale" : "1x"
+ },
+ {
+ "size" : "40x40",
+ "idiom" : "ipad",
+ "filename" : "Icon-App-40x40@2x.png",
+ "scale" : "2x"
+ },
+ {
+ "size" : "76x76",
+ "idiom" : "ipad",
+ "filename" : "Icon-App-76x76@1x.png",
+ "scale" : "1x"
+ },
+ {
+ "size" : "76x76",
+ "idiom" : "ipad",
+ "filename" : "Icon-App-76x76@2x.png",
+ "scale" : "2x"
+ },
+ {
+ "size" : "83.5x83.5",
+ "idiom" : "ipad",
+ "filename" : "Icon-App-83.5x83.5@2x.png",
+ "scale" : "2x"
+ },
+ {
+ "size" : "1024x1024",
+ "idiom" : "ios-marketing",
+ "filename" : "Icon-App-1024x1024@1x.png",
+ "scale" : "1x"
+ }
+ ],
+ "info" : {
+ "version" : 1,
+ "author" : "xcode"
+ }
+}
diff --git a/packages/firebase_ui_auth/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png b/packages/firebase_ui_auth/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png
new file mode 100644
index 000000000000..dc9ada4725e9
Binary files /dev/null and b/packages/firebase_ui_auth/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png differ
diff --git a/packages/firebase_ui_auth/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png b/packages/firebase_ui_auth/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png
new file mode 100644
index 000000000000..28c6bf03016f
Binary files /dev/null and b/packages/firebase_ui_auth/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png differ
diff --git a/packages/firebase_ui_auth/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png b/packages/firebase_ui_auth/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png
new file mode 100644
index 000000000000..2ccbfd967d96
Binary files /dev/null and b/packages/firebase_ui_auth/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png differ
diff --git a/packages/firebase_ui_auth/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png b/packages/firebase_ui_auth/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png
new file mode 100644
index 000000000000..f091b6b0bca8
Binary files /dev/null and b/packages/firebase_ui_auth/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png differ
diff --git a/packages/firebase_ui_auth/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png b/packages/firebase_ui_auth/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png
new file mode 100644
index 000000000000..4cde12118dda
Binary files /dev/null and b/packages/firebase_ui_auth/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png differ
diff --git a/packages/firebase_ui_auth/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png b/packages/firebase_ui_auth/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png
new file mode 100644
index 000000000000..d0ef06e7edb8
Binary files /dev/null and b/packages/firebase_ui_auth/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png differ
diff --git a/packages/firebase_ui_auth/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png b/packages/firebase_ui_auth/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png
new file mode 100644
index 000000000000..dcdc2306c285
Binary files /dev/null and b/packages/firebase_ui_auth/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png differ
diff --git a/packages/firebase_ui_auth/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png b/packages/firebase_ui_auth/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png
new file mode 100644
index 000000000000..2ccbfd967d96
Binary files /dev/null and b/packages/firebase_ui_auth/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png differ
diff --git a/packages/firebase_ui_auth/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png b/packages/firebase_ui_auth/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png
new file mode 100644
index 000000000000..c8f9ed8f5cee
Binary files /dev/null and b/packages/firebase_ui_auth/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png differ
diff --git a/packages/firebase_ui_auth/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png b/packages/firebase_ui_auth/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png
new file mode 100644
index 000000000000..a6d6b8609df0
Binary files /dev/null and b/packages/firebase_ui_auth/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png differ
diff --git a/packages/firebase_ui_auth/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png b/packages/firebase_ui_auth/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png
new file mode 100644
index 000000000000..a6d6b8609df0
Binary files /dev/null and b/packages/firebase_ui_auth/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png differ
diff --git a/packages/firebase_ui_auth/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png b/packages/firebase_ui_auth/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png
new file mode 100644
index 000000000000..75b2d164a5a9
Binary files /dev/null and b/packages/firebase_ui_auth/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png differ
diff --git a/packages/firebase_ui_auth/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png b/packages/firebase_ui_auth/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png
new file mode 100644
index 000000000000..c4df70d39da7
Binary files /dev/null and b/packages/firebase_ui_auth/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png differ
diff --git a/packages/firebase_ui_auth/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png b/packages/firebase_ui_auth/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png
new file mode 100644
index 000000000000..6a84f41e14e2
Binary files /dev/null and b/packages/firebase_ui_auth/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png differ
diff --git a/packages/firebase_ui_auth/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png b/packages/firebase_ui_auth/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png
new file mode 100644
index 000000000000..d0e1f5853602
Binary files /dev/null and b/packages/firebase_ui_auth/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png differ
diff --git a/packages/firebase_ui_auth/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json b/packages/firebase_ui_auth/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json
new file mode 100644
index 000000000000..0bedcf2fd467
--- /dev/null
+++ b/packages/firebase_ui_auth/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json
@@ -0,0 +1,23 @@
+{
+ "images" : [
+ {
+ "idiom" : "universal",
+ "filename" : "LaunchImage.png",
+ "scale" : "1x"
+ },
+ {
+ "idiom" : "universal",
+ "filename" : "LaunchImage@2x.png",
+ "scale" : "2x"
+ },
+ {
+ "idiom" : "universal",
+ "filename" : "LaunchImage@3x.png",
+ "scale" : "3x"
+ }
+ ],
+ "info" : {
+ "version" : 1,
+ "author" : "xcode"
+ }
+}
diff --git a/packages/firebase_ui_auth/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png b/packages/firebase_ui_auth/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png
new file mode 100644
index 000000000000..9da19eacad3b
Binary files /dev/null and b/packages/firebase_ui_auth/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png differ
diff --git a/packages/firebase_ui_auth/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png b/packages/firebase_ui_auth/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png
new file mode 100644
index 000000000000..9da19eacad3b
Binary files /dev/null and b/packages/firebase_ui_auth/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png differ
diff --git a/packages/firebase_ui_auth/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png b/packages/firebase_ui_auth/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png
new file mode 100644
index 000000000000..9da19eacad3b
Binary files /dev/null and b/packages/firebase_ui_auth/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png differ
diff --git a/packages/firebase_ui_auth/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md b/packages/firebase_ui_auth/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md
new file mode 100644
index 000000000000..89c2725b70f1
--- /dev/null
+++ b/packages/firebase_ui_auth/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md
@@ -0,0 +1,5 @@
+# Launch Screen Assets
+
+You can customize the launch screen with your own desired assets by replacing the image files in this directory.
+
+You can also do it by opening your Flutter project's Xcode project with `open ios/Runner.xcworkspace`, selecting `Runner/Assets.xcassets` in the Project Navigator and dropping in the desired images.
\ No newline at end of file
diff --git a/packages/firebase_ui_auth/example/ios/Runner/Base.lproj/LaunchScreen.storyboard b/packages/firebase_ui_auth/example/ios/Runner/Base.lproj/LaunchScreen.storyboard
new file mode 100644
index 000000000000..f2e259c7c939
--- /dev/null
+++ b/packages/firebase_ui_auth/example/ios/Runner/Base.lproj/LaunchScreen.storyboard
@@ -0,0 +1,37 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/packages/firebase_ui_auth/example/ios/Runner/Base.lproj/Main.storyboard b/packages/firebase_ui_auth/example/ios/Runner/Base.lproj/Main.storyboard
new file mode 100644
index 000000000000..f3c28516fb38
--- /dev/null
+++ b/packages/firebase_ui_auth/example/ios/Runner/Base.lproj/Main.storyboard
@@ -0,0 +1,26 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/packages/firebase_ui_auth/example/ios/Runner/Info.plist b/packages/firebase_ui_auth/example/ios/Runner/Info.plist
new file mode 100644
index 000000000000..06305e3a1026
--- /dev/null
+++ b/packages/firebase_ui_auth/example/ios/Runner/Info.plist
@@ -0,0 +1,49 @@
+
+
+
+
+ CFBundleDevelopmentRegion
+ $(DEVELOPMENT_LANGUAGE)
+ CFBundleDisplayName
+ Firebase Ui Example
+ CFBundleExecutable
+ $(EXECUTABLE_NAME)
+ CFBundleIdentifier
+ $(PRODUCT_BUNDLE_IDENTIFIER)
+ CFBundleInfoDictionaryVersion
+ 6.0
+ CFBundleName
+ firebase_ui_example
+ CFBundlePackageType
+ APPL
+ CFBundleShortVersionString
+ $(FLUTTER_BUILD_NAME)
+ CFBundleSignature
+ ????
+ CFBundleVersion
+ $(FLUTTER_BUILD_NUMBER)
+ LSRequiresIPhoneOS
+
+ UILaunchStoryboardName
+ LaunchScreen
+ UIMainStoryboardFile
+ Main
+ UISupportedInterfaceOrientations
+
+ UIInterfaceOrientationPortrait
+ UIInterfaceOrientationLandscapeLeft
+ UIInterfaceOrientationLandscapeRight
+
+ UISupportedInterfaceOrientations~ipad
+
+ UIInterfaceOrientationPortrait
+ UIInterfaceOrientationPortraitUpsideDown
+ UIInterfaceOrientationLandscapeLeft
+ UIInterfaceOrientationLandscapeRight
+
+ UIViewControllerBasedStatusBarAppearance
+
+ CADisableMinimumFrameDurationOnPhone
+
+
+
diff --git a/packages/firebase_ui_auth/example/ios/Runner/Runner-Bridging-Header.h b/packages/firebase_ui_auth/example/ios/Runner/Runner-Bridging-Header.h
new file mode 100644
index 000000000000..308a2a560b42
--- /dev/null
+++ b/packages/firebase_ui_auth/example/ios/Runner/Runner-Bridging-Header.h
@@ -0,0 +1 @@
+#import "GeneratedPluginRegistrant.h"
diff --git a/packages/firebase_ui_auth/example/lib/config.dart b/packages/firebase_ui_auth/example/lib/config.dart
new file mode 100644
index 000000000000..c0a1ab37135f
--- /dev/null
+++ b/packages/firebase_ui_auth/example/lib/config.dart
@@ -0,0 +1,12 @@
+// ignore_for_file: do_not_use_environment, constant_identifier_names
+
+const GOOGLE_CLIENT_ID =
+ '448618578101-sg12d2qin42cpr00f8b0gehs5s7inm0v.apps.googleusercontent.com';
+const GOOGLE_REDIRECT_URI =
+ 'https://react-native-firebase-testing.firebaseapp.com/__/auth/handler';
+
+const TWITTER_API_KEY = String.fromEnvironment('TWITTER_API_KEY');
+const TWITTER_API_SECRET_KEY = String.fromEnvironment('TWITTER_API_SECRET_KEY');
+const TWITTER_REDIRECT_URI = 'ffire://';
+
+const FACEBOOK_CLIENT_ID = '128693022464535';
diff --git a/packages/firebase_ui_auth/example/lib/decorations.dart b/packages/firebase_ui_auth/example/lib/decorations.dart
new file mode 100644
index 000000000000..f7a16ecea993
--- /dev/null
+++ b/packages/firebase_ui_auth/example/lib/decorations.dart
@@ -0,0 +1,48 @@
+import 'package:flutter/material.dart';
+import 'package:firebase_ui_auth/firebase_ui_auth.dart';
+
+HeaderBuilder headerImage(String assetName) {
+ return (context, constraints, _) {
+ return Padding(
+ padding: const EdgeInsets.all(20),
+ child: Image.asset(assetName),
+ );
+ };
+}
+
+HeaderBuilder headerIcon(IconData icon) {
+ return (context, constraints, shrinkOffset) {
+ return Padding(
+ padding: const EdgeInsets.all(20).copyWith(top: 40),
+ child: Icon(
+ icon,
+ color: Colors.blue,
+ size: constraints.maxWidth / 4 * (1 - shrinkOffset),
+ ),
+ );
+ };
+}
+
+SideBuilder sideImage(String assetName) {
+ return (context, constraints) {
+ return Center(
+ child: Padding(
+ padding: EdgeInsets.all(constraints.maxWidth / 4),
+ child: Image.asset(assetName),
+ ),
+ );
+ };
+}
+
+SideBuilder sideIcon(IconData icon) {
+ return (context, constraints) {
+ return Padding(
+ padding: const EdgeInsets.all(20),
+ child: Icon(
+ icon,
+ color: Colors.blue,
+ size: constraints.maxWidth / 3,
+ ),
+ );
+ };
+}
diff --git a/packages/firebase_ui_auth/example/lib/firebase_options.dart b/packages/firebase_ui_auth/example/lib/firebase_options.dart
new file mode 100644
index 000000000000..a09bac6945fb
--- /dev/null
+++ b/packages/firebase_ui_auth/example/lib/firebase_options.dart
@@ -0,0 +1,97 @@
+// File generated by FlutterFire CLI.
+// ignore_for_file: lines_longer_than_80_chars, avoid_classes_with_only_static_members
+import 'package:firebase_core/firebase_core.dart' show FirebaseOptions;
+import 'package:flutter/foundation.dart'
+ show defaultTargetPlatform, kIsWeb, TargetPlatform;
+
+/// Default [FirebaseOptions] for use with your Firebase apps.
+///
+/// Example:
+/// ```dart
+/// import 'firebase_options.dart';
+/// // ...
+/// await Firebase.initializeApp(
+/// options: DefaultFirebaseOptions.currentPlatform,
+/// );
+/// ```
+class DefaultFirebaseOptions {
+ static FirebaseOptions get currentPlatform {
+ if (kIsWeb) {
+ return web;
+ }
+ switch (defaultTargetPlatform) {
+ case TargetPlatform.android:
+ return android;
+ case TargetPlatform.iOS:
+ return ios;
+ case TargetPlatform.macOS:
+ return macos;
+ case TargetPlatform.windows:
+ throw UnsupportedError(
+ 'DefaultFirebaseOptions have not been configured for windows - '
+ 'you can reconfigure this by running the FlutterFire CLI again.',
+ );
+ case TargetPlatform.linux:
+ throw UnsupportedError(
+ 'DefaultFirebaseOptions have not been configured for linux - '
+ 'you can reconfigure this by running the FlutterFire CLI again.',
+ );
+ default:
+ throw UnsupportedError(
+ 'DefaultFirebaseOptions are not supported for this platform.',
+ );
+ }
+ }
+
+ static const FirebaseOptions web = FirebaseOptions(
+ apiKey: 'AIzaSyB7wZb2tO1-Fs6GbDADUSTs2Qs3w08Hovw',
+ appId: '1:406099696497:web:8639aa69bac133513574d0',
+ messagingSenderId: '406099696497',
+ projectId: 'flutterfire-e2e-tests',
+ authDomain: 'flutterfire-e2e-tests.firebaseapp.com',
+ databaseURL:
+ 'https://flutterfire-e2e-tests-default-rtdb.europe-west1.firebasedatabase.app',
+ storageBucket: 'flutterfire-e2e-tests.appspot.com',
+ measurementId: 'G-X3614TQ65V',
+ );
+
+ static const FirebaseOptions android = FirebaseOptions(
+ apiKey: 'AIzaSyCdRjCVZlhrq72RuEklEyyxYlBRCYhI2Sw',
+ appId: '1:406099696497:android:899c6485cfce26c13574d0',
+ messagingSenderId: '406099696497',
+ projectId: 'flutterfire-e2e-tests',
+ databaseURL:
+ 'https://flutterfire-e2e-tests-default-rtdb.europe-west1.firebasedatabase.app',
+ storageBucket: 'flutterfire-e2e-tests.appspot.com',
+ );
+
+ static const FirebaseOptions ios = FirebaseOptions(
+ apiKey: 'AIzaSyDooSUGSf63Ghq02_iIhtnmwMDs4HlWS6c',
+ appId: '1:406099696497:ios:24bb8dcaefc434a73574d0',
+ messagingSenderId: '406099696497',
+ projectId: 'flutterfire-e2e-tests',
+ databaseURL:
+ 'https://flutterfire-e2e-tests-default-rtdb.europe-west1.firebasedatabase.app',
+ storageBucket: 'flutterfire-e2e-tests.appspot.com',
+ androidClientId:
+ '406099696497-17qn06u8a0dc717u8ul7s49ampk13lul.apps.googleusercontent.com',
+ iosClientId:
+ '406099696497-65v1b9ffv6sgfqngfjab5ol5qdikh2rm.apps.googleusercontent.com',
+ iosBundleId: 'io.flutter.plugins.firebaseUiExample',
+ );
+
+ static const FirebaseOptions macos = FirebaseOptions(
+ apiKey: 'AIzaSyDooSUGSf63Ghq02_iIhtnmwMDs4HlWS6c',
+ appId: '1:406099696497:ios:24bb8dcaefc434a73574d0',
+ messagingSenderId: '406099696497',
+ projectId: 'flutterfire-e2e-tests',
+ databaseURL:
+ 'https://flutterfire-e2e-tests-default-rtdb.europe-west1.firebasedatabase.app',
+ storageBucket: 'flutterfire-e2e-tests.appspot.com',
+ androidClientId:
+ '406099696497-17qn06u8a0dc717u8ul7s49ampk13lul.apps.googleusercontent.com',
+ iosClientId:
+ '406099696497-65v1b9ffv6sgfqngfjab5ol5qdikh2rm.apps.googleusercontent.com',
+ iosBundleId: 'io.flutter.plugins.firebaseUiExample',
+ );
+}
diff --git a/packages/firebase_ui_auth/example/lib/main.dart b/packages/firebase_ui_auth/example/lib/main.dart
new file mode 100644
index 000000000000..34ae32c7c9db
--- /dev/null
+++ b/packages/firebase_ui_auth/example/lib/main.dart
@@ -0,0 +1,272 @@
+import 'package:firebase_auth/firebase_auth.dart'
+ hide PhoneAuthProvider, EmailAuthProvider;
+import 'package:firebase_core/firebase_core.dart';
+import 'package:flutter/material.dart';
+import 'package:firebase_ui_auth/firebase_ui_auth.dart';
+import 'package:firebase_ui_localizations/firebase_ui_localizations.dart';
+import 'package:firebase_ui_oauth_apple/firebase_ui_oauth_apple.dart';
+import 'package:firebase_ui_oauth_facebook/firebase_ui_oauth_facebook.dart';
+import 'package:firebase_ui_oauth_google/firebase_ui_oauth_google.dart';
+import 'package:firebase_ui_oauth_twitter/firebase_ui_oauth_twitter.dart';
+import 'package:flutter_localizations/flutter_localizations.dart';
+
+import 'firebase_options.dart';
+
+import 'config.dart';
+import 'decorations.dart';
+
+final actionCodeSettings = ActionCodeSettings(
+ url: 'https://flutterfire-e2e-tests.firebaseapp.com',
+ handleCodeInApp: true,
+ androidMinimumVersion: '1',
+ androidPackageName: 'io.flutter.plugins.firebase_ui.firebase_ui_example',
+ iOSBundleId: 'io.flutter.plugins.fireabaseUiExample',
+);
+final emailLinkProviderConfig = EmailLinkAuthProvider(
+ actionCodeSettings: actionCodeSettings,
+);
+
+Future main() async {
+ WidgetsFlutterBinding.ensureInitialized();
+ await Firebase.initializeApp(options: DefaultFirebaseOptions.currentPlatform);
+
+ FirebaseUIAuth.configureProviders([
+ EmailAuthProvider(),
+ emailLinkProviderConfig,
+ PhoneAuthProvider(),
+ GoogleProvider(clientId: GOOGLE_CLIENT_ID),
+ AppleProvider(),
+ FacebookProvider(clientId: FACEBOOK_CLIENT_ID),
+ TwitterProvider(
+ apiKey: TWITTER_API_KEY,
+ apiSecretKey: TWITTER_API_SECRET_KEY,
+ redirectUri: TWITTER_REDIRECT_URI,
+ ),
+ ]);
+
+ runApp(const FirebaseAuthUIExample());
+}
+
+// Overrides a label for en locale
+// To add localization for a custom language follow the guide here:
+// https://flutter.dev/docs/development/accessibility-and-localization/internationalization#an-alternative-class-for-the-apps-localized-resources
+class LabelOverrides extends DefaultLocalizations {
+ const LabelOverrides();
+
+ @override
+ String get emailInputLabel => 'Enter your email';
+}
+
+class FirebaseAuthUIExample extends StatelessWidget {
+ const FirebaseAuthUIExample({Key? key}) : super(key: key);
+
+ String get initialRoute {
+ final auth = FirebaseAuth.instance;
+
+ if (auth.currentUser == null) {
+ return '/';
+ }
+
+ if (!auth.currentUser!.emailVerified && auth.currentUser!.email != null) {
+ return '/verify-email';
+ }
+
+ return '/profile';
+ }
+
+ @override
+ Widget build(BuildContext context) {
+ final buttonStyle = ButtonStyle(
+ padding: MaterialStateProperty.all(const EdgeInsets.all(12)),
+ shape: MaterialStateProperty.all(
+ RoundedRectangleBorder(borderRadius: BorderRadius.circular(8)),
+ ),
+ );
+
+ final mfaAction = AuthStateChangeAction(
+ (context, state) async {
+ final nav = Navigator.of(context);
+
+ await startMFAVerification(
+ resolver: state.resolver,
+ context: context,
+ );
+
+ nav.pushReplacementNamed('/profile');
+ },
+ );
+
+ return MaterialApp(
+ theme: ThemeData(
+ brightness: Brightness.light,
+ visualDensity: VisualDensity.standard,
+ inputDecorationTheme: const InputDecorationTheme(
+ border: OutlineInputBorder(),
+ ),
+ elevatedButtonTheme: ElevatedButtonThemeData(style: buttonStyle),
+ textButtonTheme: TextButtonThemeData(style: buttonStyle),
+ outlinedButtonTheme: OutlinedButtonThemeData(style: buttonStyle),
+ ),
+ initialRoute: initialRoute,
+ routes: {
+ '/': (context) {
+ return SignInScreen(
+ actions: [
+ ForgotPasswordAction((context, email) {
+ Navigator.pushNamed(
+ context,
+ '/forgot-password',
+ arguments: {'email': email},
+ );
+ }),
+ VerifyPhoneAction((context, _) {
+ Navigator.pushNamed(context, '/phone');
+ }),
+ AuthStateChangeAction((context, state) {
+ if (!state.user!.emailVerified) {
+ Navigator.pushNamed(context, '/verify-email');
+ } else {
+ Navigator.pushReplacementNamed(context, '/profile');
+ }
+ }),
+ AuthStateChangeAction((context, state) {
+ if (!state.credential.user!.emailVerified) {
+ Navigator.pushNamed(context, '/verify-email');
+ } else {
+ Navigator.pushReplacementNamed(context, '/profile');
+ }
+ }),
+ mfaAction,
+ EmailLinkSignInAction((context) {
+ Navigator.pushReplacementNamed(context, '/email-link-sign-in');
+ }),
+ ],
+ styles: const {
+ EmailFormStyle(signInButtonVariant: ButtonVariant.filled),
+ },
+ headerBuilder: headerImage('assets/images/flutterfire_logo.png'),
+ sideBuilder: sideImage('assets/images/flutterfire_logo.png'),
+ subtitleBuilder: (context, action) {
+ return Padding(
+ padding: const EdgeInsets.only(bottom: 8),
+ child: Text(
+ action == AuthAction.signIn
+ ? 'Welcome to Firebase UI! Please sign in to continue.'
+ : 'Welcome to Firebase UI! Please create an account to continue',
+ ),
+ );
+ },
+ footerBuilder: (context, action) {
+ return Center(
+ child: Padding(
+ padding: const EdgeInsets.only(top: 16),
+ child: Text(
+ action == AuthAction.signIn
+ ? 'By signing in, you agree to our terms and conditions.'
+ : 'By registering, you agree to our terms and conditions.',
+ style: const TextStyle(color: Colors.grey),
+ ),
+ ),
+ );
+ },
+ );
+ },
+ '/verify-email': (context) {
+ return EmailVerificationScreen(
+ headerBuilder: headerIcon(Icons.verified),
+ sideBuilder: sideIcon(Icons.verified),
+ actionCodeSettings: actionCodeSettings,
+ actions: [
+ EmailVerifiedAction(() {
+ Navigator.pushReplacementNamed(context, '/profile');
+ }),
+ AuthCancelledAction((context) {
+ FirebaseUIAuth.signOut(context: context);
+ Navigator.pushReplacementNamed(context, '/');
+ }),
+ ],
+ );
+ },
+ '/phone': (context) {
+ return PhoneInputScreen(
+ actions: [
+ SMSCodeRequestedAction((context, action, flowKey, phone) {
+ Navigator.of(context).pushReplacementNamed(
+ '/sms',
+ arguments: {
+ 'action': action,
+ 'flowKey': flowKey,
+ 'phone': phone,
+ },
+ );
+ }),
+ ],
+ headerBuilder: headerIcon(Icons.phone),
+ sideBuilder: sideIcon(Icons.phone),
+ );
+ },
+ '/sms': (context) {
+ final arguments = ModalRoute.of(context)?.settings.arguments
+ as Map?;
+
+ return SMSCodeInputScreen(
+ actions: [
+ AuthStateChangeAction((context, state) {
+ Navigator.of(context).pushReplacementNamed('/profile');
+ })
+ ],
+ flowKey: arguments?['flowKey'],
+ action: arguments?['action'],
+ headerBuilder: headerIcon(Icons.sms_outlined),
+ sideBuilder: sideIcon(Icons.sms_outlined),
+ );
+ },
+ '/forgot-password': (context) {
+ final arguments = ModalRoute.of(context)?.settings.arguments
+ as Map?;
+
+ return ForgotPasswordScreen(
+ email: arguments?['email'],
+ headerMaxExtent: 200,
+ headerBuilder: headerIcon(Icons.lock),
+ sideBuilder: sideIcon(Icons.lock),
+ );
+ },
+ '/email-link-sign-in': (context) {
+ return EmailLinkSignInScreen(
+ actions: [
+ AuthStateChangeAction((context, state) {
+ Navigator.pushReplacementNamed(context, '/');
+ }),
+ ],
+ provider: emailLinkProviderConfig,
+ headerMaxExtent: 200,
+ headerBuilder: headerIcon(Icons.link),
+ sideBuilder: sideIcon(Icons.link),
+ );
+ },
+ '/profile': (context) {
+ return ProfileScreen(
+ actions: [
+ SignedOutAction((context) {
+ Navigator.pushReplacementNamed(context, '/');
+ }),
+ mfaAction,
+ ],
+ actionCodeSettings: actionCodeSettings,
+ showMFATile: true,
+ );
+ },
+ },
+ title: 'Firebase UI demo',
+ debugShowCheckedModeBanner: false,
+ locale: const Locale('en'),
+ localizationsDelegates: [
+ FirebaseUILocalizations.withDefaultOverrides(const LabelOverrides()),
+ GlobalMaterialLocalizations.delegate,
+ GlobalWidgetsLocalizations.delegate,
+ FirebaseUILocalizations.delegate,
+ ],
+ );
+ }
+}
diff --git a/packages/firebase_ui_auth/example/linux/.gitignore b/packages/firebase_ui_auth/example/linux/.gitignore
new file mode 100644
index 000000000000..d3896c98444f
--- /dev/null
+++ b/packages/firebase_ui_auth/example/linux/.gitignore
@@ -0,0 +1 @@
+flutter/ephemeral
diff --git a/packages/firebase_ui_auth/example/linux/CMakeLists.txt b/packages/firebase_ui_auth/example/linux/CMakeLists.txt
new file mode 100644
index 000000000000..adb9eb957b25
--- /dev/null
+++ b/packages/firebase_ui_auth/example/linux/CMakeLists.txt
@@ -0,0 +1,138 @@
+# Project-level configuration.
+cmake_minimum_required(VERSION 3.10)
+project(runner LANGUAGES CXX)
+
+# The name of the executable created for the application. Change this to change
+# the on-disk name of your application.
+set(BINARY_NAME "firebase_ui_example")
+# The unique GTK application identifier for this application. See:
+# https://wiki.gnome.org/HowDoI/ChooseApplicationID
+set(APPLICATION_ID "io.flutter.plugins.firebase_ui_example")
+
+# Explicitly opt in to modern CMake behaviors to avoid warnings with recent
+# versions of CMake.
+cmake_policy(SET CMP0063 NEW)
+
+# Load bundled libraries from the lib/ directory relative to the binary.
+set(CMAKE_INSTALL_RPATH "$ORIGIN/lib")
+
+# Root filesystem for cross-building.
+if(FLUTTER_TARGET_PLATFORM_SYSROOT)
+ set(CMAKE_SYSROOT ${FLUTTER_TARGET_PLATFORM_SYSROOT})
+ set(CMAKE_FIND_ROOT_PATH ${CMAKE_SYSROOT})
+ set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)
+ set(CMAKE_FIND_ROOT_PATH_MODE_PACKAGE ONLY)
+ set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)
+ set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)
+endif()
+
+# Define build configuration options.
+if(NOT CMAKE_BUILD_TYPE AND NOT CMAKE_CONFIGURATION_TYPES)
+ set(CMAKE_BUILD_TYPE "Debug" CACHE
+ STRING "Flutter build mode" FORCE)
+ set_property(CACHE CMAKE_BUILD_TYPE PROPERTY STRINGS
+ "Debug" "Profile" "Release")
+endif()
+
+# Compilation settings that should be applied to most targets.
+#
+# Be cautious about adding new options here, as plugins use this function by
+# default. In most cases, you should add new options to specific targets instead
+# of modifying this function.
+function(APPLY_STANDARD_SETTINGS TARGET)
+ target_compile_features(${TARGET} PUBLIC cxx_std_14)
+ target_compile_options(${TARGET} PRIVATE -Wall -Werror)
+ target_compile_options(${TARGET} PRIVATE "$<$>:-O3>")
+ target_compile_definitions(${TARGET} PRIVATE "$<$>:NDEBUG>")
+endfunction()
+
+# Flutter library and tool build rules.
+set(FLUTTER_MANAGED_DIR "${CMAKE_CURRENT_SOURCE_DIR}/flutter")
+add_subdirectory(${FLUTTER_MANAGED_DIR})
+
+# System-level dependencies.
+find_package(PkgConfig REQUIRED)
+pkg_check_modules(GTK REQUIRED IMPORTED_TARGET gtk+-3.0)
+
+add_definitions(-DAPPLICATION_ID="${APPLICATION_ID}")
+
+# Define the application target. To change its name, change BINARY_NAME above,
+# not the value here, or `flutter run` will no longer work.
+#
+# Any new source files that you add to the application should be added here.
+add_executable(${BINARY_NAME}
+ "main.cc"
+ "my_application.cc"
+ "${FLUTTER_MANAGED_DIR}/generated_plugin_registrant.cc"
+)
+
+# Apply the standard set of build settings. This can be removed for applications
+# that need different build settings.
+apply_standard_settings(${BINARY_NAME})
+
+# Add dependency libraries. Add any application-specific dependencies here.
+target_link_libraries(${BINARY_NAME} PRIVATE flutter)
+target_link_libraries(${BINARY_NAME} PRIVATE PkgConfig::GTK)
+
+# Run the Flutter tool portions of the build. This must not be removed.
+add_dependencies(${BINARY_NAME} flutter_assemble)
+
+# Only the install-generated bundle's copy of the executable will launch
+# correctly, since the resources must in the right relative locations. To avoid
+# people trying to run the unbundled copy, put it in a subdirectory instead of
+# the default top-level location.
+set_target_properties(${BINARY_NAME}
+ PROPERTIES
+ RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/intermediates_do_not_run"
+)
+
+# Generated plugin build rules, which manage building the plugins and adding
+# them to the application.
+include(flutter/generated_plugins.cmake)
+
+
+# === Installation ===
+# By default, "installing" just makes a relocatable bundle in the build
+# directory.
+set(BUILD_BUNDLE_DIR "${PROJECT_BINARY_DIR}/bundle")
+if(CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT)
+ set(CMAKE_INSTALL_PREFIX "${BUILD_BUNDLE_DIR}" CACHE PATH "..." FORCE)
+endif()
+
+# Start with a clean build bundle directory every time.
+install(CODE "
+ file(REMOVE_RECURSE \"${BUILD_BUNDLE_DIR}/\")
+ " COMPONENT Runtime)
+
+set(INSTALL_BUNDLE_DATA_DIR "${CMAKE_INSTALL_PREFIX}/data")
+set(INSTALL_BUNDLE_LIB_DIR "${CMAKE_INSTALL_PREFIX}/lib")
+
+install(TARGETS ${BINARY_NAME} RUNTIME DESTINATION "${CMAKE_INSTALL_PREFIX}"
+ COMPONENT Runtime)
+
+install(FILES "${FLUTTER_ICU_DATA_FILE}" DESTINATION "${INSTALL_BUNDLE_DATA_DIR}"
+ COMPONENT Runtime)
+
+install(FILES "${FLUTTER_LIBRARY}" DESTINATION "${INSTALL_BUNDLE_LIB_DIR}"
+ COMPONENT Runtime)
+
+foreach(bundled_library ${PLUGIN_BUNDLED_LIBRARIES})
+ install(FILES "${bundled_library}"
+ DESTINATION "${INSTALL_BUNDLE_LIB_DIR}"
+ COMPONENT Runtime)
+endforeach(bundled_library)
+
+# Fully re-copy the assets directory on each build to avoid having stale files
+# from a previous install.
+set(FLUTTER_ASSET_DIR_NAME "flutter_assets")
+install(CODE "
+ file(REMOVE_RECURSE \"${INSTALL_BUNDLE_DATA_DIR}/${FLUTTER_ASSET_DIR_NAME}\")
+ " COMPONENT Runtime)
+install(DIRECTORY "${PROJECT_BUILD_DIR}/${FLUTTER_ASSET_DIR_NAME}"
+ DESTINATION "${INSTALL_BUNDLE_DATA_DIR}" COMPONENT Runtime)
+
+# Install the AOT library on non-Debug builds only.
+if(NOT CMAKE_BUILD_TYPE MATCHES "Debug")
+ install(FILES "${AOT_LIBRARY}" DESTINATION "${INSTALL_BUNDLE_LIB_DIR}"
+ COMPONENT Runtime)
+endif()
diff --git a/packages/firebase_ui_auth/example/linux/flutter/CMakeLists.txt b/packages/firebase_ui_auth/example/linux/flutter/CMakeLists.txt
new file mode 100644
index 000000000000..d5bd01648a96
--- /dev/null
+++ b/packages/firebase_ui_auth/example/linux/flutter/CMakeLists.txt
@@ -0,0 +1,88 @@
+# This file controls Flutter-level build steps. It should not be edited.
+cmake_minimum_required(VERSION 3.10)
+
+set(EPHEMERAL_DIR "${CMAKE_CURRENT_SOURCE_DIR}/ephemeral")
+
+# Configuration provided via flutter tool.
+include(${EPHEMERAL_DIR}/generated_config.cmake)
+
+# TODO: Move the rest of this into files in ephemeral. See
+# https://github.com/flutter/flutter/issues/57146.
+
+# Serves the same purpose as list(TRANSFORM ... PREPEND ...),
+# which isn't available in 3.10.
+function(list_prepend LIST_NAME PREFIX)
+ set(NEW_LIST "")
+ foreach(element ${${LIST_NAME}})
+ list(APPEND NEW_LIST "${PREFIX}${element}")
+ endforeach(element)
+ set(${LIST_NAME} "${NEW_LIST}" PARENT_SCOPE)
+endfunction()
+
+# === Flutter Library ===
+# System-level dependencies.
+find_package(PkgConfig REQUIRED)
+pkg_check_modules(GTK REQUIRED IMPORTED_TARGET gtk+-3.0)
+pkg_check_modules(GLIB REQUIRED IMPORTED_TARGET glib-2.0)
+pkg_check_modules(GIO REQUIRED IMPORTED_TARGET gio-2.0)
+
+set(FLUTTER_LIBRARY "${EPHEMERAL_DIR}/libflutter_linux_gtk.so")
+
+# Published to parent scope for install step.
+set(FLUTTER_LIBRARY ${FLUTTER_LIBRARY} PARENT_SCOPE)
+set(FLUTTER_ICU_DATA_FILE "${EPHEMERAL_DIR}/icudtl.dat" PARENT_SCOPE)
+set(PROJECT_BUILD_DIR "${PROJECT_DIR}/build/" PARENT_SCOPE)
+set(AOT_LIBRARY "${PROJECT_DIR}/build/lib/libapp.so" PARENT_SCOPE)
+
+list(APPEND FLUTTER_LIBRARY_HEADERS
+ "fl_basic_message_channel.h"
+ "fl_binary_codec.h"
+ "fl_binary_messenger.h"
+ "fl_dart_project.h"
+ "fl_engine.h"
+ "fl_json_message_codec.h"
+ "fl_json_method_codec.h"
+ "fl_message_codec.h"
+ "fl_method_call.h"
+ "fl_method_channel.h"
+ "fl_method_codec.h"
+ "fl_method_response.h"
+ "fl_plugin_registrar.h"
+ "fl_plugin_registry.h"
+ "fl_standard_message_codec.h"
+ "fl_standard_method_codec.h"
+ "fl_string_codec.h"
+ "fl_value.h"
+ "fl_view.h"
+ "flutter_linux.h"
+)
+list_prepend(FLUTTER_LIBRARY_HEADERS "${EPHEMERAL_DIR}/flutter_linux/")
+add_library(flutter INTERFACE)
+target_include_directories(flutter INTERFACE
+ "${EPHEMERAL_DIR}"
+)
+target_link_libraries(flutter INTERFACE "${FLUTTER_LIBRARY}")
+target_link_libraries(flutter INTERFACE
+ PkgConfig::GTK
+ PkgConfig::GLIB
+ PkgConfig::GIO
+)
+add_dependencies(flutter flutter_assemble)
+
+# === Flutter tool backend ===
+# _phony_ is a non-existent file to force this command to run every time,
+# since currently there's no way to get a full input/output list from the
+# flutter tool.
+add_custom_command(
+ OUTPUT ${FLUTTER_LIBRARY} ${FLUTTER_LIBRARY_HEADERS}
+ ${CMAKE_CURRENT_BINARY_DIR}/_phony_
+ COMMAND ${CMAKE_COMMAND} -E env
+ ${FLUTTER_TOOL_ENVIRONMENT}
+ "${FLUTTER_ROOT}/packages/flutter_tools/bin/tool_backend.sh"
+ ${FLUTTER_TARGET_PLATFORM} ${CMAKE_BUILD_TYPE}
+ VERBATIM
+)
+add_custom_target(flutter_assemble DEPENDS
+ "${FLUTTER_LIBRARY}"
+ ${FLUTTER_LIBRARY_HEADERS}
+)
diff --git a/packages/firebase_ui_auth/example/linux/flutter/generated_plugin_registrant.cc b/packages/firebase_ui_auth/example/linux/flutter/generated_plugin_registrant.cc
new file mode 100644
index 000000000000..1c65bab7f8ed
--- /dev/null
+++ b/packages/firebase_ui_auth/example/linux/flutter/generated_plugin_registrant.cc
@@ -0,0 +1,15 @@
+//
+// Generated file. Do not edit.
+//
+
+// clang-format off
+
+#include "generated_plugin_registrant.h"
+
+#include
+
+void fl_register_plugins(FlPluginRegistry* registry) {
+ g_autoptr(FlPluginRegistrar) desktop_webview_auth_registrar =
+ fl_plugin_registry_get_registrar_for_plugin(registry, "DesktopWebviewAuthPlugin");
+ desktop_webview_auth_plugin_register_with_registrar(desktop_webview_auth_registrar);
+}
diff --git a/packages/firebase_ui_auth/example/linux/flutter/generated_plugin_registrant.h b/packages/firebase_ui_auth/example/linux/flutter/generated_plugin_registrant.h
new file mode 100644
index 000000000000..e0f0a47bc08f
--- /dev/null
+++ b/packages/firebase_ui_auth/example/linux/flutter/generated_plugin_registrant.h
@@ -0,0 +1,15 @@
+//
+// Generated file. Do not edit.
+//
+
+// clang-format off
+
+#ifndef GENERATED_PLUGIN_REGISTRANT_
+#define GENERATED_PLUGIN_REGISTRANT_
+
+#include
+
+// Registers Flutter plugins.
+void fl_register_plugins(FlPluginRegistry* registry);
+
+#endif // GENERATED_PLUGIN_REGISTRANT_
diff --git a/packages/firebase_ui_auth/example/linux/flutter/generated_plugins.cmake b/packages/firebase_ui_auth/example/linux/flutter/generated_plugins.cmake
new file mode 100644
index 000000000000..e5bf8b2ecb02
--- /dev/null
+++ b/packages/firebase_ui_auth/example/linux/flutter/generated_plugins.cmake
@@ -0,0 +1,24 @@
+#
+# Generated file, do not edit.
+#
+
+list(APPEND FLUTTER_PLUGIN_LIST
+ desktop_webview_auth
+)
+
+list(APPEND FLUTTER_FFI_PLUGIN_LIST
+)
+
+set(PLUGIN_BUNDLED_LIBRARIES)
+
+foreach(plugin ${FLUTTER_PLUGIN_LIST})
+ add_subdirectory(flutter/ephemeral/.plugin_symlinks/${plugin}/linux plugins/${plugin})
+ target_link_libraries(${BINARY_NAME} PRIVATE ${plugin}_plugin)
+ list(APPEND PLUGIN_BUNDLED_LIBRARIES $)
+ list(APPEND PLUGIN_BUNDLED_LIBRARIES ${${plugin}_bundled_libraries})
+endforeach(plugin)
+
+foreach(ffi_plugin ${FLUTTER_FFI_PLUGIN_LIST})
+ add_subdirectory(flutter/ephemeral/.plugin_symlinks/${ffi_plugin}/linux plugins/${ffi_plugin})
+ list(APPEND PLUGIN_BUNDLED_LIBRARIES ${${ffi_plugin}_bundled_libraries})
+endforeach(ffi_plugin)
diff --git a/packages/firebase_ui_auth/example/linux/main.cc b/packages/firebase_ui_auth/example/linux/main.cc
new file mode 100644
index 000000000000..e7c5c5437037
--- /dev/null
+++ b/packages/firebase_ui_auth/example/linux/main.cc
@@ -0,0 +1,6 @@
+#include "my_application.h"
+
+int main(int argc, char** argv) {
+ g_autoptr(MyApplication) app = my_application_new();
+ return g_application_run(G_APPLICATION(app), argc, argv);
+}
diff --git a/packages/firebase_ui_auth/example/linux/my_application.cc b/packages/firebase_ui_auth/example/linux/my_application.cc
new file mode 100644
index 000000000000..d60fbee8c004
--- /dev/null
+++ b/packages/firebase_ui_auth/example/linux/my_application.cc
@@ -0,0 +1,107 @@
+#include "my_application.h"
+
+#include
+#ifdef GDK_WINDOWING_X11
+#include
+#endif
+
+#include "flutter/generated_plugin_registrant.h"
+
+struct _MyApplication {
+ GtkApplication parent_instance;
+ char** dart_entrypoint_arguments;
+};
+
+G_DEFINE_TYPE(MyApplication, my_application, GTK_TYPE_APPLICATION)
+
+// Implements GApplication::activate.
+static void my_application_activate(GApplication* application) {
+ MyApplication* self = MY_APPLICATION(application);
+ GtkWindow* window =
+ GTK_WINDOW(gtk_application_window_new(GTK_APPLICATION(application)));
+
+ // Use a header bar when running in GNOME as this is the common style used
+ // by applications and is the setup most users will be using (e.g. Ubuntu
+ // desktop).
+ // If running on X and not using GNOME then just use a traditional title bar
+ // in case the window manager does more exotic layout, e.g. tiling.
+ // If running on Wayland assume the header bar will work (may need changing
+ // if future cases occur).
+ gboolean use_header_bar = TRUE;
+#ifdef GDK_WINDOWING_X11
+ GdkScreen* screen = gtk_window_get_screen(window);
+ if (GDK_IS_X11_SCREEN(screen)) {
+ const gchar* wm_name = gdk_x11_screen_get_window_manager_name(screen);
+ if (g_strcmp0(wm_name, "GNOME Shell") != 0) {
+ use_header_bar = FALSE;
+ }
+ }
+#endif
+ if (use_header_bar) {
+ GtkHeaderBar* header_bar = GTK_HEADER_BAR(gtk_header_bar_new());
+ gtk_widget_show(GTK_WIDGET(header_bar));
+ gtk_header_bar_set_title(header_bar, "firebase_ui_example");
+ gtk_header_bar_set_show_close_button(header_bar, TRUE);
+ gtk_window_set_titlebar(window, GTK_WIDGET(header_bar));
+ } else {
+ gtk_window_set_title(window, "firebase_ui_example");
+ }
+
+ gtk_window_set_default_size(window, 1280, 720);
+ gtk_widget_show(GTK_WIDGET(window));
+
+ g_autoptr(FlDartProject) project = fl_dart_project_new();
+ fl_dart_project_set_dart_entrypoint_arguments(
+ project, self->dart_entrypoint_arguments);
+
+ FlView* view = fl_view_new(project);
+ gtk_widget_show(GTK_WIDGET(view));
+ gtk_container_add(GTK_CONTAINER(window), GTK_WIDGET(view));
+
+ fl_register_plugins(FL_PLUGIN_REGISTRY(view));
+
+ gtk_widget_grab_focus(GTK_WIDGET(view));
+}
+
+// Implements GApplication::local_command_line.
+static gboolean my_application_local_command_line(GApplication* application,
+ gchar*** arguments,
+ int* exit_status) {
+ MyApplication* self = MY_APPLICATION(application);
+ // Strip out the first argument as it is the binary name.
+ self->dart_entrypoint_arguments = g_strdupv(*arguments + 1);
+
+ g_autoptr(GError) error = nullptr;
+ if (!g_application_register(application, nullptr, &error)) {
+ g_warning("Failed to register: %s", error->message);
+ *exit_status = 1;
+ return TRUE;
+ }
+
+ g_application_activate(application);
+ *exit_status = 0;
+
+ return TRUE;
+}
+
+// Implements GObject::dispose.
+static void my_application_dispose(GObject* object) {
+ MyApplication* self = MY_APPLICATION(object);
+ g_clear_pointer(&self->dart_entrypoint_arguments, g_strfreev);
+ G_OBJECT_CLASS(my_application_parent_class)->dispose(object);
+}
+
+static void my_application_class_init(MyApplicationClass* klass) {
+ G_APPLICATION_CLASS(klass)->activate = my_application_activate;
+ G_APPLICATION_CLASS(klass)->local_command_line =
+ my_application_local_command_line;
+ G_OBJECT_CLASS(klass)->dispose = my_application_dispose;
+}
+
+static void my_application_init(MyApplication* self) {}
+
+MyApplication* my_application_new() {
+ return MY_APPLICATION(g_object_new(my_application_get_type(),
+ "application-id", APPLICATION_ID, "flags",
+ G_APPLICATION_NON_UNIQUE, nullptr));
+}
diff --git a/packages/firebase_ui_auth/example/linux/my_application.h b/packages/firebase_ui_auth/example/linux/my_application.h
new file mode 100644
index 000000000000..72271d5e4170
--- /dev/null
+++ b/packages/firebase_ui_auth/example/linux/my_application.h
@@ -0,0 +1,18 @@
+#ifndef FLUTTER_MY_APPLICATION_H_
+#define FLUTTER_MY_APPLICATION_H_
+
+#include
+
+G_DECLARE_FINAL_TYPE(MyApplication, my_application, MY, APPLICATION,
+ GtkApplication)
+
+/**
+ * my_application_new:
+ *
+ * Creates a new Flutter-based application.
+ *
+ * Returns: a new #MyApplication.
+ */
+MyApplication* my_application_new();
+
+#endif // FLUTTER_MY_APPLICATION_H_
diff --git a/packages/firebase_ui_auth/example/macos/.gitignore b/packages/firebase_ui_auth/example/macos/.gitignore
new file mode 100644
index 000000000000..746adbb6b9e1
--- /dev/null
+++ b/packages/firebase_ui_auth/example/macos/.gitignore
@@ -0,0 +1,7 @@
+# Flutter-related
+**/Flutter/ephemeral/
+**/Pods/
+
+# Xcode-related
+**/dgph
+**/xcuserdata/
diff --git a/packages/firebase_ui_auth/example/macos/Flutter/Flutter-Debug.xcconfig b/packages/firebase_ui_auth/example/macos/Flutter/Flutter-Debug.xcconfig
new file mode 100644
index 000000000000..4b81f9b2d200
--- /dev/null
+++ b/packages/firebase_ui_auth/example/macos/Flutter/Flutter-Debug.xcconfig
@@ -0,0 +1,2 @@
+#include? "Pods/Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig"
+#include "ephemeral/Flutter-Generated.xcconfig"
diff --git a/packages/firebase_ui_auth/example/macos/Flutter/Flutter-Release.xcconfig b/packages/firebase_ui_auth/example/macos/Flutter/Flutter-Release.xcconfig
new file mode 100644
index 000000000000..5caa9d1579e4
--- /dev/null
+++ b/packages/firebase_ui_auth/example/macos/Flutter/Flutter-Release.xcconfig
@@ -0,0 +1,2 @@
+#include? "Pods/Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig"
+#include "ephemeral/Flutter-Generated.xcconfig"
diff --git a/packages/firebase_ui_auth/example/macos/Podfile b/packages/firebase_ui_auth/example/macos/Podfile
new file mode 100644
index 000000000000..22d9caad2e9d
--- /dev/null
+++ b/packages/firebase_ui_auth/example/macos/Podfile
@@ -0,0 +1,40 @@
+platform :osx, '10.12'
+
+# CocoaPods analytics sends network stats synchronously affecting flutter build latency.
+ENV['COCOAPODS_DISABLE_STATS'] = 'true'
+
+project 'Runner', {
+ 'Debug' => :debug,
+ 'Profile' => :release,
+ 'Release' => :release,
+}
+
+def flutter_root
+ generated_xcode_build_settings_path = File.expand_path(File.join('..', 'Flutter', 'ephemeral', 'Flutter-Generated.xcconfig'), __FILE__)
+ unless File.exist?(generated_xcode_build_settings_path)
+ raise "#{generated_xcode_build_settings_path} must exist. If you're running pod install manually, make sure \"flutter pub get\" is executed first"
+ end
+
+ File.foreach(generated_xcode_build_settings_path) do |line|
+ matches = line.match(/FLUTTER_ROOT\=(.*)/)
+ return matches[1].strip if matches
+ end
+ raise "FLUTTER_ROOT not found in #{generated_xcode_build_settings_path}. Try deleting Flutter-Generated.xcconfig, then run \"flutter pub get\""
+end
+
+require File.expand_path(File.join('packages', 'flutter_tools', 'bin', 'podhelper'), flutter_root)
+
+flutter_macos_podfile_setup
+
+target 'Runner' do
+ use_frameworks!
+ use_modular_headers!
+
+ flutter_install_all_macos_pods File.dirname(File.realpath(__FILE__))
+end
+
+post_install do |installer|
+ installer.pods_project.targets.each do |target|
+ flutter_additional_macos_build_settings(target)
+ end
+end
diff --git a/packages/firebase_ui_auth/example/macos/Runner.xcodeproj/project.pbxproj b/packages/firebase_ui_auth/example/macos/Runner.xcodeproj/project.pbxproj
new file mode 100644
index 000000000000..2510f0494b30
--- /dev/null
+++ b/packages/firebase_ui_auth/example/macos/Runner.xcodeproj/project.pbxproj
@@ -0,0 +1,637 @@
+// !$*UTF8*$!
+{
+ archiveVersion = 1;
+ classes = {
+ };
+ objectVersion = 51;
+ objects = {
+
+/* Begin PBXAggregateTarget section */
+ 33CC111A2044C6BA0003C045 /* Flutter Assemble */ = {
+ isa = PBXAggregateTarget;
+ buildConfigurationList = 33CC111B2044C6BA0003C045 /* Build configuration list for PBXAggregateTarget "Flutter Assemble" */;
+ buildPhases = (
+ 33CC111E2044C6BF0003C045 /* ShellScript */,
+ );
+ dependencies = (
+ );
+ name = "Flutter Assemble";
+ productName = FLX;
+ };
+/* End PBXAggregateTarget section */
+
+/* Begin PBXBuildFile section */
+ 335BBD1B22A9A15E00E9071D /* GeneratedPluginRegistrant.swift in Sources */ = {isa = PBXBuildFile; fileRef = 335BBD1A22A9A15E00E9071D /* GeneratedPluginRegistrant.swift */; };
+ 33CC10F12044A3C60003C045 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 33CC10F02044A3C60003C045 /* AppDelegate.swift */; };
+ 33CC10F32044A3C60003C045 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 33CC10F22044A3C60003C045 /* Assets.xcassets */; };
+ 33CC10F62044A3C60003C045 /* MainMenu.xib in Resources */ = {isa = PBXBuildFile; fileRef = 33CC10F42044A3C60003C045 /* MainMenu.xib */; };
+ 33CC11132044BFA00003C045 /* MainFlutterWindow.swift in Sources */ = {isa = PBXBuildFile; fileRef = 33CC11122044BFA00003C045 /* MainFlutterWindow.swift */; };
+ 5A1968DEC0E00AD3A7C83ACE /* Pods_Runner.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 68543B5EFF434AB35E5B519A /* Pods_Runner.framework */; };
+/* End PBXBuildFile section */
+
+/* Begin PBXContainerItemProxy section */
+ 33CC111F2044C79F0003C045 /* PBXContainerItemProxy */ = {
+ isa = PBXContainerItemProxy;
+ containerPortal = 33CC10E52044A3C60003C045 /* Project object */;
+ proxyType = 1;
+ remoteGlobalIDString = 33CC111A2044C6BA0003C045;
+ remoteInfo = FLX;
+ };
+/* End PBXContainerItemProxy section */
+
+/* Begin PBXCopyFilesBuildPhase section */
+ 33CC110E2044A8840003C045 /* Bundle Framework */ = {
+ isa = PBXCopyFilesBuildPhase;
+ buildActionMask = 2147483647;
+ dstPath = "";
+ dstSubfolderSpec = 10;
+ files = (
+ );
+ name = "Bundle Framework";
+ runOnlyForDeploymentPostprocessing = 0;
+ };
+/* End PBXCopyFilesBuildPhase section */
+
+/* Begin PBXFileReference section */
+ 1BCE21F44B33D08989B8AFC1 /* Pods-Runner.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.debug.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig"; sourceTree = ""; };
+ 333000ED22D3DE5D00554162 /* Warnings.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = Warnings.xcconfig; sourceTree = ""; };
+ 335BBD1A22A9A15E00E9071D /* GeneratedPluginRegistrant.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = GeneratedPluginRegistrant.swift; sourceTree = ""; };
+ 33CC10ED2044A3C60003C045 /* firebase_ui_example.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = firebase_ui_example.app; sourceTree = BUILT_PRODUCTS_DIR; };
+ 33CC10F02044A3C60003C045 /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; };
+ 33CC10F22044A3C60003C045 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; name = Assets.xcassets; path = Runner/Assets.xcassets; sourceTree = ""; };
+ 33CC10F52044A3C60003C045 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/MainMenu.xib; sourceTree = ""; };
+ 33CC10F72044A3C60003C045 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; name = Info.plist; path = Runner/Info.plist; sourceTree = ""; };
+ 33CC11122044BFA00003C045 /* MainFlutterWindow.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = MainFlutterWindow.swift; sourceTree = ""; };
+ 33CEB47222A05771004F2AC0 /* Flutter-Debug.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = "Flutter-Debug.xcconfig"; sourceTree = ""; };
+ 33CEB47422A05771004F2AC0 /* Flutter-Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = "Flutter-Release.xcconfig"; sourceTree = ""; };
+ 33CEB47722A0578A004F2AC0 /* Flutter-Generated.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; name = "Flutter-Generated.xcconfig"; path = "ephemeral/Flutter-Generated.xcconfig"; sourceTree = ""; };
+ 33E51913231747F40026EE4D /* DebugProfile.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.plist.entitlements; path = DebugProfile.entitlements; sourceTree = ""; };
+ 33E51914231749380026EE4D /* Release.entitlements */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.entitlements; path = Release.entitlements; sourceTree = ""; };
+ 33E5194F232828860026EE4D /* AppInfo.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = AppInfo.xcconfig; sourceTree = ""; };
+ 68543B5EFF434AB35E5B519A /* Pods_Runner.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_Runner.framework; sourceTree = BUILT_PRODUCTS_DIR; };
+ 7AFA3C8E1D35360C0083082E /* Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = Release.xcconfig; sourceTree = ""; };
+ 9740EEB21CF90195004384FC /* Debug.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; path = Debug.xcconfig; sourceTree = ""; };
+ D224B1C435F5909B86D5F172 /* Pods-Runner.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.release.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig"; sourceTree = ""; };
+ DF9E6F18FCE53B288DFC2F68 /* Pods-Runner.profile.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.profile.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.profile.xcconfig"; sourceTree = ""; };
+/* End PBXFileReference section */
+
+/* Begin PBXFrameworksBuildPhase section */
+ 33CC10EA2044A3C60003C045 /* Frameworks */ = {
+ isa = PBXFrameworksBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ 5A1968DEC0E00AD3A7C83ACE /* Pods_Runner.framework in Frameworks */,
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ };
+/* End PBXFrameworksBuildPhase section */
+
+/* Begin PBXGroup section */
+ 33BA886A226E78AF003329D5 /* Configs */ = {
+ isa = PBXGroup;
+ children = (
+ 33E5194F232828860026EE4D /* AppInfo.xcconfig */,
+ 9740EEB21CF90195004384FC /* Debug.xcconfig */,
+ 7AFA3C8E1D35360C0083082E /* Release.xcconfig */,
+ 333000ED22D3DE5D00554162 /* Warnings.xcconfig */,
+ );
+ path = Configs;
+ sourceTree = "";
+ };
+ 33CC10E42044A3C60003C045 = {
+ isa = PBXGroup;
+ children = (
+ 33FAB671232836740065AC1E /* Runner */,
+ 33CEB47122A05771004F2AC0 /* Flutter */,
+ 33CC10EE2044A3C60003C045 /* Products */,
+ D73912EC22F37F3D000D13A0 /* Frameworks */,
+ C9DF0F4ED19FEFFE79E8E3BE /* Pods */,
+ );
+ sourceTree = "";
+ };
+ 33CC10EE2044A3C60003C045 /* Products */ = {
+ isa = PBXGroup;
+ children = (
+ 33CC10ED2044A3C60003C045 /* firebase_ui_example.app */,
+ );
+ name = Products;
+ sourceTree = "";
+ };
+ 33CC11242044D66E0003C045 /* Resources */ = {
+ isa = PBXGroup;
+ children = (
+ 33CC10F22044A3C60003C045 /* Assets.xcassets */,
+ 33CC10F42044A3C60003C045 /* MainMenu.xib */,
+ 33CC10F72044A3C60003C045 /* Info.plist */,
+ );
+ name = Resources;
+ path = ..;
+ sourceTree = "";
+ };
+ 33CEB47122A05771004F2AC0 /* Flutter */ = {
+ isa = PBXGroup;
+ children = (
+ 335BBD1A22A9A15E00E9071D /* GeneratedPluginRegistrant.swift */,
+ 33CEB47222A05771004F2AC0 /* Flutter-Debug.xcconfig */,
+ 33CEB47422A05771004F2AC0 /* Flutter-Release.xcconfig */,
+ 33CEB47722A0578A004F2AC0 /* Flutter-Generated.xcconfig */,
+ );
+ path = Flutter;
+ sourceTree = "";
+ };
+ 33FAB671232836740065AC1E /* Runner */ = {
+ isa = PBXGroup;
+ children = (
+ 33CC10F02044A3C60003C045 /* AppDelegate.swift */,
+ 33CC11122044BFA00003C045 /* MainFlutterWindow.swift */,
+ 33E51913231747F40026EE4D /* DebugProfile.entitlements */,
+ 33E51914231749380026EE4D /* Release.entitlements */,
+ 33CC11242044D66E0003C045 /* Resources */,
+ 33BA886A226E78AF003329D5 /* Configs */,
+ );
+ path = Runner;
+ sourceTree = "";
+ };
+ C9DF0F4ED19FEFFE79E8E3BE /* Pods */ = {
+ isa = PBXGroup;
+ children = (
+ 1BCE21F44B33D08989B8AFC1 /* Pods-Runner.debug.xcconfig */,
+ D224B1C435F5909B86D5F172 /* Pods-Runner.release.xcconfig */,
+ DF9E6F18FCE53B288DFC2F68 /* Pods-Runner.profile.xcconfig */,
+ );
+ path = Pods;
+ sourceTree = "";
+ };
+ D73912EC22F37F3D000D13A0 /* Frameworks */ = {
+ isa = PBXGroup;
+ children = (
+ 68543B5EFF434AB35E5B519A /* Pods_Runner.framework */,
+ );
+ name = Frameworks;
+ sourceTree = "";
+ };
+/* End PBXGroup section */
+
+/* Begin PBXNativeTarget section */
+ 33CC10EC2044A3C60003C045 /* Runner */ = {
+ isa = PBXNativeTarget;
+ buildConfigurationList = 33CC10FB2044A3C60003C045 /* Build configuration list for PBXNativeTarget "Runner" */;
+ buildPhases = (
+ 736778EA2F52FA14E3F90547 /* [CP] Check Pods Manifest.lock */,
+ 33CC10E92044A3C60003C045 /* Sources */,
+ 33CC10EA2044A3C60003C045 /* Frameworks */,
+ 33CC10EB2044A3C60003C045 /* Resources */,
+ 33CC110E2044A8840003C045 /* Bundle Framework */,
+ 3399D490228B24CF009A79C7 /* ShellScript */,
+ 29B9D2F5EB6E6BDBA26D3667 /* [CP] Embed Pods Frameworks */,
+ );
+ buildRules = (
+ );
+ dependencies = (
+ 33CC11202044C79F0003C045 /* PBXTargetDependency */,
+ );
+ name = Runner;
+ productName = Runner;
+ productReference = 33CC10ED2044A3C60003C045 /* firebase_ui_example.app */;
+ productType = "com.apple.product-type.application";
+ };
+/* End PBXNativeTarget section */
+
+/* Begin PBXProject section */
+ 33CC10E52044A3C60003C045 /* Project object */ = {
+ isa = PBXProject;
+ attributes = {
+ LastSwiftUpdateCheck = 0920;
+ LastUpgradeCheck = 1300;
+ ORGANIZATIONNAME = "";
+ TargetAttributes = {
+ 33CC10EC2044A3C60003C045 = {
+ CreatedOnToolsVersion = 9.2;
+ LastSwiftMigration = 1100;
+ ProvisioningStyle = Automatic;
+ SystemCapabilities = {
+ com.apple.Sandbox = {
+ enabled = 1;
+ };
+ };
+ };
+ 33CC111A2044C6BA0003C045 = {
+ CreatedOnToolsVersion = 9.2;
+ ProvisioningStyle = Manual;
+ };
+ };
+ };
+ buildConfigurationList = 33CC10E82044A3C60003C045 /* Build configuration list for PBXProject "Runner" */;
+ compatibilityVersion = "Xcode 9.3";
+ developmentRegion = en;
+ hasScannedForEncodings = 0;
+ knownRegions = (
+ en,
+ Base,
+ );
+ mainGroup = 33CC10E42044A3C60003C045;
+ productRefGroup = 33CC10EE2044A3C60003C045 /* Products */;
+ projectDirPath = "";
+ projectRoot = "";
+ targets = (
+ 33CC10EC2044A3C60003C045 /* Runner */,
+ 33CC111A2044C6BA0003C045 /* Flutter Assemble */,
+ );
+ };
+/* End PBXProject section */
+
+/* Begin PBXResourcesBuildPhase section */
+ 33CC10EB2044A3C60003C045 /* Resources */ = {
+ isa = PBXResourcesBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ 33CC10F32044A3C60003C045 /* Assets.xcassets in Resources */,
+ 33CC10F62044A3C60003C045 /* MainMenu.xib in Resources */,
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ };
+/* End PBXResourcesBuildPhase section */
+
+/* Begin PBXShellScriptBuildPhase section */
+ 29B9D2F5EB6E6BDBA26D3667 /* [CP] Embed Pods Frameworks */ = {
+ isa = PBXShellScriptBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ );
+ inputFileListPaths = (
+ "${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks-${CONFIGURATION}-input-files.xcfilelist",
+ );
+ name = "[CP] Embed Pods Frameworks";
+ outputFileListPaths = (
+ "${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks-${CONFIGURATION}-output-files.xcfilelist",
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ shellPath = /bin/sh;
+ shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks.sh\"\n";
+ showEnvVarsInLog = 0;
+ };
+ 3399D490228B24CF009A79C7 /* ShellScript */ = {
+ isa = PBXShellScriptBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ );
+ inputFileListPaths = (
+ );
+ inputPaths = (
+ );
+ outputFileListPaths = (
+ );
+ outputPaths = (
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ shellPath = /bin/sh;
+ shellScript = "echo \"$PRODUCT_NAME.app\" > \"$PROJECT_DIR\"/Flutter/ephemeral/.app_filename && \"$FLUTTER_ROOT\"/packages/flutter_tools/bin/macos_assemble.sh embed\n";
+ };
+ 33CC111E2044C6BF0003C045 /* ShellScript */ = {
+ isa = PBXShellScriptBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ );
+ inputFileListPaths = (
+ Flutter/ephemeral/FlutterInputs.xcfilelist,
+ );
+ inputPaths = (
+ Flutter/ephemeral/tripwire,
+ );
+ outputFileListPaths = (
+ Flutter/ephemeral/FlutterOutputs.xcfilelist,
+ );
+ outputPaths = (
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ shellPath = /bin/sh;
+ shellScript = "\"$FLUTTER_ROOT\"/packages/flutter_tools/bin/macos_assemble.sh && touch Flutter/ephemeral/tripwire";
+ };
+ 736778EA2F52FA14E3F90547 /* [CP] Check Pods Manifest.lock */ = {
+ isa = PBXShellScriptBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ );
+ inputFileListPaths = (
+ );
+ inputPaths = (
+ "${PODS_PODFILE_DIR_PATH}/Podfile.lock",
+ "${PODS_ROOT}/Manifest.lock",
+ );
+ name = "[CP] Check Pods Manifest.lock";
+ outputFileListPaths = (
+ );
+ outputPaths = (
+ "$(DERIVED_FILE_DIR)/Pods-Runner-checkManifestLockResult.txt",
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ shellPath = /bin/sh;
+ shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n";
+ showEnvVarsInLog = 0;
+ };
+/* End PBXShellScriptBuildPhase section */
+
+/* Begin PBXSourcesBuildPhase section */
+ 33CC10E92044A3C60003C045 /* Sources */ = {
+ isa = PBXSourcesBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ 33CC11132044BFA00003C045 /* MainFlutterWindow.swift in Sources */,
+ 33CC10F12044A3C60003C045 /* AppDelegate.swift in Sources */,
+ 335BBD1B22A9A15E00E9071D /* GeneratedPluginRegistrant.swift in Sources */,
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ };
+/* End PBXSourcesBuildPhase section */
+
+/* Begin PBXTargetDependency section */
+ 33CC11202044C79F0003C045 /* PBXTargetDependency */ = {
+ isa = PBXTargetDependency;
+ target = 33CC111A2044C6BA0003C045 /* Flutter Assemble */;
+ targetProxy = 33CC111F2044C79F0003C045 /* PBXContainerItemProxy */;
+ };
+/* End PBXTargetDependency section */
+
+/* Begin PBXVariantGroup section */
+ 33CC10F42044A3C60003C045 /* MainMenu.xib */ = {
+ isa = PBXVariantGroup;
+ children = (
+ 33CC10F52044A3C60003C045 /* Base */,
+ );
+ name = MainMenu.xib;
+ path = Runner;
+ sourceTree = "";
+ };
+/* End PBXVariantGroup section */
+
+/* Begin XCBuildConfiguration section */
+ 338D0CE9231458BD00FA5F75 /* Profile */ = {
+ isa = XCBuildConfiguration;
+ baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */;
+ buildSettings = {
+ ALWAYS_SEARCH_USER_PATHS = NO;
+ CLANG_ANALYZER_NONNULL = YES;
+ CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
+ CLANG_CXX_LANGUAGE_STANDARD = "gnu++14";
+ CLANG_CXX_LIBRARY = "libc++";
+ CLANG_ENABLE_MODULES = YES;
+ CLANG_ENABLE_OBJC_ARC = YES;
+ CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
+ CLANG_WARN_BOOL_CONVERSION = YES;
+ CLANG_WARN_CONSTANT_CONVERSION = YES;
+ CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
+ CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
+ CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
+ CLANG_WARN_EMPTY_BODY = YES;
+ CLANG_WARN_ENUM_CONVERSION = YES;
+ CLANG_WARN_INFINITE_RECURSION = YES;
+ CLANG_WARN_INT_CONVERSION = YES;
+ CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
+ CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
+ CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
+ CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
+ CLANG_WARN_SUSPICIOUS_MOVE = YES;
+ CODE_SIGN_IDENTITY = "-";
+ COPY_PHASE_STRIP = NO;
+ DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
+ ENABLE_NS_ASSERTIONS = NO;
+ ENABLE_STRICT_OBJC_MSGSEND = YES;
+ GCC_C_LANGUAGE_STANDARD = gnu11;
+ GCC_NO_COMMON_BLOCKS = YES;
+ GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
+ GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
+ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
+ GCC_WARN_UNUSED_FUNCTION = YES;
+ GCC_WARN_UNUSED_VARIABLE = YES;
+ MACOSX_DEPLOYMENT_TARGET = 10.11;
+ MTL_ENABLE_DEBUG_INFO = NO;
+ SDKROOT = macosx;
+ SWIFT_COMPILATION_MODE = wholemodule;
+ SWIFT_OPTIMIZATION_LEVEL = "-O";
+ };
+ name = Profile;
+ };
+ 338D0CEA231458BD00FA5F75 /* Profile */ = {
+ isa = XCBuildConfiguration;
+ baseConfigurationReference = 33E5194F232828860026EE4D /* AppInfo.xcconfig */;
+ buildSettings = {
+ ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
+ CLANG_ENABLE_MODULES = YES;
+ CODE_SIGN_ENTITLEMENTS = Runner/DebugProfile.entitlements;
+ CODE_SIGN_IDENTITY = "Apple Development";
+ CODE_SIGN_STYLE = Automatic;
+ COMBINE_HIDPI_IMAGES = YES;
+ DEVELOPMENT_TEAM = YYX2P3XVJ7;
+ INFOPLIST_FILE = Runner/Info.plist;
+ LD_RUNPATH_SEARCH_PATHS = (
+ "$(inherited)",
+ "@executable_path/../Frameworks",
+ );
+ PROVISIONING_PROFILE_SPECIFIER = "";
+ SWIFT_VERSION = 5.0;
+ };
+ name = Profile;
+ };
+ 338D0CEB231458BD00FA5F75 /* Profile */ = {
+ isa = XCBuildConfiguration;
+ buildSettings = {
+ CODE_SIGN_STYLE = Manual;
+ PRODUCT_NAME = "$(TARGET_NAME)";
+ };
+ name = Profile;
+ };
+ 33CC10F92044A3C60003C045 /* Debug */ = {
+ isa = XCBuildConfiguration;
+ baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */;
+ buildSettings = {
+ ALWAYS_SEARCH_USER_PATHS = NO;
+ CLANG_ANALYZER_NONNULL = YES;
+ CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
+ CLANG_CXX_LANGUAGE_STANDARD = "gnu++14";
+ CLANG_CXX_LIBRARY = "libc++";
+ CLANG_ENABLE_MODULES = YES;
+ CLANG_ENABLE_OBJC_ARC = YES;
+ CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
+ CLANG_WARN_BOOL_CONVERSION = YES;
+ CLANG_WARN_CONSTANT_CONVERSION = YES;
+ CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
+ CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
+ CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
+ CLANG_WARN_EMPTY_BODY = YES;
+ CLANG_WARN_ENUM_CONVERSION = YES;
+ CLANG_WARN_INFINITE_RECURSION = YES;
+ CLANG_WARN_INT_CONVERSION = YES;
+ CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
+ CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
+ CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
+ CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
+ CLANG_WARN_SUSPICIOUS_MOVE = YES;
+ CODE_SIGN_IDENTITY = "-";
+ COPY_PHASE_STRIP = NO;
+ DEBUG_INFORMATION_FORMAT = dwarf;
+ ENABLE_STRICT_OBJC_MSGSEND = YES;
+ ENABLE_TESTABILITY = YES;
+ GCC_C_LANGUAGE_STANDARD = gnu11;
+ GCC_DYNAMIC_NO_PIC = NO;
+ GCC_NO_COMMON_BLOCKS = YES;
+ GCC_OPTIMIZATION_LEVEL = 0;
+ GCC_PREPROCESSOR_DEFINITIONS = (
+ "DEBUG=1",
+ "$(inherited)",
+ );
+ GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
+ GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
+ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
+ GCC_WARN_UNUSED_FUNCTION = YES;
+ GCC_WARN_UNUSED_VARIABLE = YES;
+ MACOSX_DEPLOYMENT_TARGET = 10.11;
+ MTL_ENABLE_DEBUG_INFO = YES;
+ ONLY_ACTIVE_ARCH = YES;
+ SDKROOT = macosx;
+ SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG;
+ SWIFT_OPTIMIZATION_LEVEL = "-Onone";
+ };
+ name = Debug;
+ };
+ 33CC10FA2044A3C60003C045 /* Release */ = {
+ isa = XCBuildConfiguration;
+ baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */;
+ buildSettings = {
+ ALWAYS_SEARCH_USER_PATHS = NO;
+ CLANG_ANALYZER_NONNULL = YES;
+ CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
+ CLANG_CXX_LANGUAGE_STANDARD = "gnu++14";
+ CLANG_CXX_LIBRARY = "libc++";
+ CLANG_ENABLE_MODULES = YES;
+ CLANG_ENABLE_OBJC_ARC = YES;
+ CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
+ CLANG_WARN_BOOL_CONVERSION = YES;
+ CLANG_WARN_CONSTANT_CONVERSION = YES;
+ CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
+ CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
+ CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
+ CLANG_WARN_EMPTY_BODY = YES;
+ CLANG_WARN_ENUM_CONVERSION = YES;
+ CLANG_WARN_INFINITE_RECURSION = YES;
+ CLANG_WARN_INT_CONVERSION = YES;
+ CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
+ CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
+ CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
+ CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
+ CLANG_WARN_SUSPICIOUS_MOVE = YES;
+ CODE_SIGN_IDENTITY = "-";
+ COPY_PHASE_STRIP = NO;
+ DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
+ ENABLE_NS_ASSERTIONS = NO;
+ ENABLE_STRICT_OBJC_MSGSEND = YES;
+ GCC_C_LANGUAGE_STANDARD = gnu11;
+ GCC_NO_COMMON_BLOCKS = YES;
+ GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
+ GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
+ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
+ GCC_WARN_UNUSED_FUNCTION = YES;
+ GCC_WARN_UNUSED_VARIABLE = YES;
+ MACOSX_DEPLOYMENT_TARGET = 10.11;
+ MTL_ENABLE_DEBUG_INFO = NO;
+ SDKROOT = macosx;
+ SWIFT_COMPILATION_MODE = wholemodule;
+ SWIFT_OPTIMIZATION_LEVEL = "-O";
+ };
+ name = Release;
+ };
+ 33CC10FC2044A3C60003C045 /* Debug */ = {
+ isa = XCBuildConfiguration;
+ baseConfigurationReference = 33E5194F232828860026EE4D /* AppInfo.xcconfig */;
+ buildSettings = {
+ ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
+ CLANG_ENABLE_MODULES = YES;
+ CODE_SIGN_ENTITLEMENTS = Runner/DebugProfile.entitlements;
+ CODE_SIGN_IDENTITY = "Apple Development";
+ CODE_SIGN_STYLE = Automatic;
+ COMBINE_HIDPI_IMAGES = YES;
+ DEVELOPMENT_TEAM = YYX2P3XVJ7;
+ INFOPLIST_FILE = Runner/Info.plist;
+ LD_RUNPATH_SEARCH_PATHS = (
+ "$(inherited)",
+ "@executable_path/../Frameworks",
+ );
+ PROVISIONING_PROFILE_SPECIFIER = "";
+ SWIFT_OPTIMIZATION_LEVEL = "-Onone";
+ SWIFT_VERSION = 5.0;
+ };
+ name = Debug;
+ };
+ 33CC10FD2044A3C60003C045 /* Release */ = {
+ isa = XCBuildConfiguration;
+ baseConfigurationReference = 33E5194F232828860026EE4D /* AppInfo.xcconfig */;
+ buildSettings = {
+ ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
+ CLANG_ENABLE_MODULES = YES;
+ CODE_SIGN_ENTITLEMENTS = Runner/Release.entitlements;
+ CODE_SIGN_IDENTITY = "Apple Development";
+ CODE_SIGN_STYLE = Automatic;
+ COMBINE_HIDPI_IMAGES = YES;
+ DEVELOPMENT_TEAM = YYX2P3XVJ7;
+ INFOPLIST_FILE = Runner/Info.plist;
+ LD_RUNPATH_SEARCH_PATHS = (
+ "$(inherited)",
+ "@executable_path/../Frameworks",
+ );
+ PROVISIONING_PROFILE_SPECIFIER = "";
+ SWIFT_VERSION = 5.0;
+ };
+ name = Release;
+ };
+ 33CC111C2044C6BA0003C045 /* Debug */ = {
+ isa = XCBuildConfiguration;
+ buildSettings = {
+ CODE_SIGN_STYLE = Manual;
+ PRODUCT_NAME = "$(TARGET_NAME)";
+ };
+ name = Debug;
+ };
+ 33CC111D2044C6BA0003C045 /* Release */ = {
+ isa = XCBuildConfiguration;
+ buildSettings = {
+ CODE_SIGN_STYLE = Automatic;
+ PRODUCT_NAME = "$(TARGET_NAME)";
+ };
+ name = Release;
+ };
+/* End XCBuildConfiguration section */
+
+/* Begin XCConfigurationList section */
+ 33CC10E82044A3C60003C045 /* Build configuration list for PBXProject "Runner" */ = {
+ isa = XCConfigurationList;
+ buildConfigurations = (
+ 33CC10F92044A3C60003C045 /* Debug */,
+ 33CC10FA2044A3C60003C045 /* Release */,
+ 338D0CE9231458BD00FA5F75 /* Profile */,
+ );
+ defaultConfigurationIsVisible = 0;
+ defaultConfigurationName = Release;
+ };
+ 33CC10FB2044A3C60003C045 /* Build configuration list for PBXNativeTarget "Runner" */ = {
+ isa = XCConfigurationList;
+ buildConfigurations = (
+ 33CC10FC2044A3C60003C045 /* Debug */,
+ 33CC10FD2044A3C60003C045 /* Release */,
+ 338D0CEA231458BD00FA5F75 /* Profile */,
+ );
+ defaultConfigurationIsVisible = 0;
+ defaultConfigurationName = Release;
+ };
+ 33CC111B2044C6BA0003C045 /* Build configuration list for PBXAggregateTarget "Flutter Assemble" */ = {
+ isa = XCConfigurationList;
+ buildConfigurations = (
+ 33CC111C2044C6BA0003C045 /* Debug */,
+ 33CC111D2044C6BA0003C045 /* Release */,
+ 338D0CEB231458BD00FA5F75 /* Profile */,
+ );
+ defaultConfigurationIsVisible = 0;
+ defaultConfigurationName = Release;
+ };
+/* End XCConfigurationList section */
+ };
+ rootObject = 33CC10E52044A3C60003C045 /* Project object */;
+}
diff --git a/packages/firebase_ui_auth/example/macos/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist b/packages/firebase_ui_auth/example/macos/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist
new file mode 100644
index 000000000000..18d981003d68
--- /dev/null
+++ b/packages/firebase_ui_auth/example/macos/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist
@@ -0,0 +1,8 @@
+
+
+
+
+ IDEDidComputeMac32BitWarning
+
+
+
diff --git a/packages/firebase_ui_auth/example/macos/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme b/packages/firebase_ui_auth/example/macos/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme
new file mode 100644
index 000000000000..dd9d0d67a12e
--- /dev/null
+++ b/packages/firebase_ui_auth/example/macos/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme
@@ -0,0 +1,87 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/packages/firebase_ui_auth/example/macos/Runner.xcworkspace/contents.xcworkspacedata b/packages/firebase_ui_auth/example/macos/Runner.xcworkspace/contents.xcworkspacedata
new file mode 100644
index 000000000000..21a3cc14c74e
--- /dev/null
+++ b/packages/firebase_ui_auth/example/macos/Runner.xcworkspace/contents.xcworkspacedata
@@ -0,0 +1,10 @@
+
+
+
+
+
+
+
diff --git a/packages/firebase_ui_auth/example/macos/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist b/packages/firebase_ui_auth/example/macos/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist
new file mode 100644
index 000000000000..18d981003d68
--- /dev/null
+++ b/packages/firebase_ui_auth/example/macos/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist
@@ -0,0 +1,8 @@
+
+
+
+
+ IDEDidComputeMac32BitWarning
+
+
+
diff --git a/packages/firebase_ui_auth/example/macos/Runner/AppDelegate.swift b/packages/firebase_ui_auth/example/macos/Runner/AppDelegate.swift
new file mode 100644
index 000000000000..d53ef6437726
--- /dev/null
+++ b/packages/firebase_ui_auth/example/macos/Runner/AppDelegate.swift
@@ -0,0 +1,9 @@
+import Cocoa
+import FlutterMacOS
+
+@NSApplicationMain
+class AppDelegate: FlutterAppDelegate {
+ override func applicationShouldTerminateAfterLastWindowClosed(_ sender: NSApplication) -> Bool {
+ return true
+ }
+}
diff --git a/packages/firebase_ui_auth/example/macos/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json b/packages/firebase_ui_auth/example/macos/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json
new file mode 100644
index 000000000000..a2ec33f19f11
--- /dev/null
+++ b/packages/firebase_ui_auth/example/macos/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json
@@ -0,0 +1,68 @@
+{
+ "images" : [
+ {
+ "size" : "16x16",
+ "idiom" : "mac",
+ "filename" : "app_icon_16.png",
+ "scale" : "1x"
+ },
+ {
+ "size" : "16x16",
+ "idiom" : "mac",
+ "filename" : "app_icon_32.png",
+ "scale" : "2x"
+ },
+ {
+ "size" : "32x32",
+ "idiom" : "mac",
+ "filename" : "app_icon_32.png",
+ "scale" : "1x"
+ },
+ {
+ "size" : "32x32",
+ "idiom" : "mac",
+ "filename" : "app_icon_64.png",
+ "scale" : "2x"
+ },
+ {
+ "size" : "128x128",
+ "idiom" : "mac",
+ "filename" : "app_icon_128.png",
+ "scale" : "1x"
+ },
+ {
+ "size" : "128x128",
+ "idiom" : "mac",
+ "filename" : "app_icon_256.png",
+ "scale" : "2x"
+ },
+ {
+ "size" : "256x256",
+ "idiom" : "mac",
+ "filename" : "app_icon_256.png",
+ "scale" : "1x"
+ },
+ {
+ "size" : "256x256",
+ "idiom" : "mac",
+ "filename" : "app_icon_512.png",
+ "scale" : "2x"
+ },
+ {
+ "size" : "512x512",
+ "idiom" : "mac",
+ "filename" : "app_icon_512.png",
+ "scale" : "1x"
+ },
+ {
+ "size" : "512x512",
+ "idiom" : "mac",
+ "filename" : "app_icon_1024.png",
+ "scale" : "2x"
+ }
+ ],
+ "info" : {
+ "version" : 1,
+ "author" : "xcode"
+ }
+}
diff --git a/packages/firebase_ui_auth/example/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_1024.png b/packages/firebase_ui_auth/example/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_1024.png
new file mode 100644
index 000000000000..3c4935a7ca84
Binary files /dev/null and b/packages/firebase_ui_auth/example/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_1024.png differ
diff --git a/packages/firebase_ui_auth/example/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_128.png b/packages/firebase_ui_auth/example/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_128.png
new file mode 100644
index 000000000000..ed4cc1642168
Binary files /dev/null and b/packages/firebase_ui_auth/example/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_128.png differ
diff --git a/packages/firebase_ui_auth/example/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_16.png b/packages/firebase_ui_auth/example/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_16.png
new file mode 100644
index 000000000000..483be6138973
Binary files /dev/null and b/packages/firebase_ui_auth/example/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_16.png differ
diff --git a/packages/firebase_ui_auth/example/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_256.png b/packages/firebase_ui_auth/example/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_256.png
new file mode 100644
index 000000000000..bcbf36df2f2a
Binary files /dev/null and b/packages/firebase_ui_auth/example/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_256.png differ
diff --git a/packages/firebase_ui_auth/example/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_32.png b/packages/firebase_ui_auth/example/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_32.png
new file mode 100644
index 000000000000..9c0a65286476
Binary files /dev/null and b/packages/firebase_ui_auth/example/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_32.png differ
diff --git a/packages/firebase_ui_auth/example/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_512.png b/packages/firebase_ui_auth/example/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_512.png
new file mode 100644
index 000000000000..e71a726136a4
Binary files /dev/null and b/packages/firebase_ui_auth/example/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_512.png differ
diff --git a/packages/firebase_ui_auth/example/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_64.png b/packages/firebase_ui_auth/example/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_64.png
new file mode 100644
index 000000000000..8a31fe2dd3f9
Binary files /dev/null and b/packages/firebase_ui_auth/example/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_64.png differ
diff --git a/packages/firebase_ui_auth/example/macos/Runner/Base.lproj/MainMenu.xib b/packages/firebase_ui_auth/example/macos/Runner/Base.lproj/MainMenu.xib
new file mode 100644
index 000000000000..80e867a4e06b
--- /dev/null
+++ b/packages/firebase_ui_auth/example/macos/Runner/Base.lproj/MainMenu.xib
@@ -0,0 +1,343 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/packages/firebase_ui_auth/example/macos/Runner/Configs/AppInfo.xcconfig b/packages/firebase_ui_auth/example/macos/Runner/Configs/AppInfo.xcconfig
new file mode 100644
index 000000000000..74be0e33a210
--- /dev/null
+++ b/packages/firebase_ui_auth/example/macos/Runner/Configs/AppInfo.xcconfig
@@ -0,0 +1,14 @@
+// Application-level settings for the Runner target.
+//
+// This may be replaced with something auto-generated from metadata (e.g., pubspec.yaml) in the
+// future. If not, the values below would default to using the project name when this becomes a
+// 'flutter create' template.
+
+// The application's name. By default this is also the title of the Flutter window.
+PRODUCT_NAME = firebase_ui_example
+
+// The application's bundle identifier
+PRODUCT_BUNDLE_IDENTIFIER = io.flutter.plugins.firebaseUiExample
+
+// The copyright displayed in application information
+PRODUCT_COPYRIGHT = Copyright © 2022 io.flutter.plugins. All rights reserved.
diff --git a/packages/firebase_ui_auth/example/macos/Runner/Configs/Debug.xcconfig b/packages/firebase_ui_auth/example/macos/Runner/Configs/Debug.xcconfig
new file mode 100644
index 000000000000..36b0fd9464f4
--- /dev/null
+++ b/packages/firebase_ui_auth/example/macos/Runner/Configs/Debug.xcconfig
@@ -0,0 +1,2 @@
+#include "../../Flutter/Flutter-Debug.xcconfig"
+#include "Warnings.xcconfig"
diff --git a/packages/firebase_ui_auth/example/macos/Runner/Configs/Release.xcconfig b/packages/firebase_ui_auth/example/macos/Runner/Configs/Release.xcconfig
new file mode 100644
index 000000000000..dff4f49561c8
--- /dev/null
+++ b/packages/firebase_ui_auth/example/macos/Runner/Configs/Release.xcconfig
@@ -0,0 +1,2 @@
+#include "../../Flutter/Flutter-Release.xcconfig"
+#include "Warnings.xcconfig"
diff --git a/packages/firebase_ui_auth/example/macos/Runner/Configs/Warnings.xcconfig b/packages/firebase_ui_auth/example/macos/Runner/Configs/Warnings.xcconfig
new file mode 100644
index 000000000000..42bcbf4780b1
--- /dev/null
+++ b/packages/firebase_ui_auth/example/macos/Runner/Configs/Warnings.xcconfig
@@ -0,0 +1,13 @@
+WARNING_CFLAGS = -Wall -Wconditional-uninitialized -Wnullable-to-nonnull-conversion -Wmissing-method-return-type -Woverlength-strings
+GCC_WARN_UNDECLARED_SELECTOR = YES
+CLANG_UNDEFINED_BEHAVIOR_SANITIZER_NULLABILITY = YES
+CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE
+CLANG_WARN__DUPLICATE_METHOD_MATCH = YES
+CLANG_WARN_PRAGMA_PACK = YES
+CLANG_WARN_STRICT_PROTOTYPES = YES
+CLANG_WARN_COMMA = YES
+GCC_WARN_STRICT_SELECTOR_MATCH = YES
+CLANG_WARN_OBJC_REPEATED_USE_OF_WEAK = YES
+CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES
+GCC_WARN_SHADOW = YES
+CLANG_WARN_UNREACHABLE_CODE = YES
diff --git a/packages/firebase_ui_auth/example/macos/Runner/DebugProfile.entitlements b/packages/firebase_ui_auth/example/macos/Runner/DebugProfile.entitlements
new file mode 100644
index 000000000000..c34fc0a4e55a
--- /dev/null
+++ b/packages/firebase_ui_auth/example/macos/Runner/DebugProfile.entitlements
@@ -0,0 +1,18 @@
+
+
+
+
+ com.apple.developer.applesignin
+
+ Default
+
+ com.apple.security.app-sandbox
+
+ com.apple.security.cs.allow-jit
+
+ com.apple.security.network.client
+
+ com.apple.security.network.server
+
+
+
diff --git a/packages/firebase_ui_auth/example/macos/Runner/Info.plist b/packages/firebase_ui_auth/example/macos/Runner/Info.plist
new file mode 100644
index 000000000000..4789daa6a443
--- /dev/null
+++ b/packages/firebase_ui_auth/example/macos/Runner/Info.plist
@@ -0,0 +1,32 @@
+
+
+
+
+ CFBundleDevelopmentRegion
+ $(DEVELOPMENT_LANGUAGE)
+ CFBundleExecutable
+ $(EXECUTABLE_NAME)
+ CFBundleIconFile
+
+ CFBundleIdentifier
+ $(PRODUCT_BUNDLE_IDENTIFIER)
+ CFBundleInfoDictionaryVersion
+ 6.0
+ CFBundleName
+ $(PRODUCT_NAME)
+ CFBundlePackageType
+ APPL
+ CFBundleShortVersionString
+ $(FLUTTER_BUILD_NAME)
+ CFBundleVersion
+ $(FLUTTER_BUILD_NUMBER)
+ LSMinimumSystemVersion
+ $(MACOSX_DEPLOYMENT_TARGET)
+ NSHumanReadableCopyright
+ $(PRODUCT_COPYRIGHT)
+ NSMainNibFile
+ MainMenu
+ NSPrincipalClass
+ NSApplication
+
+
diff --git a/packages/firebase_ui_auth/example/macos/Runner/MainFlutterWindow.swift b/packages/firebase_ui_auth/example/macos/Runner/MainFlutterWindow.swift
new file mode 100644
index 000000000000..2722837ec918
--- /dev/null
+++ b/packages/firebase_ui_auth/example/macos/Runner/MainFlutterWindow.swift
@@ -0,0 +1,15 @@
+import Cocoa
+import FlutterMacOS
+
+class MainFlutterWindow: NSWindow {
+ override func awakeFromNib() {
+ let flutterViewController = FlutterViewController.init()
+ let windowFrame = self.frame
+ self.contentViewController = flutterViewController
+ self.setFrame(windowFrame, display: true)
+
+ RegisterGeneratedPlugins(registry: flutterViewController)
+
+ super.awakeFromNib()
+ }
+}
diff --git a/packages/firebase_ui_auth/example/macos/Runner/Release.entitlements b/packages/firebase_ui_auth/example/macos/Runner/Release.entitlements
new file mode 100644
index 000000000000..cd2171f4278f
--- /dev/null
+++ b/packages/firebase_ui_auth/example/macos/Runner/Release.entitlements
@@ -0,0 +1,14 @@
+
+
+
+
+ com.apple.developer.applesignin
+
+ Default
+
+ com.apple.security.app-sandbox
+
+ com.apple.security.network.client
+
+
+
diff --git a/packages/firebase_ui_auth/example/pubspec.yaml b/packages/firebase_ui_auth/example/pubspec.yaml
new file mode 100644
index 000000000000..ef65706253d3
--- /dev/null
+++ b/packages/firebase_ui_auth/example/pubspec.yaml
@@ -0,0 +1,91 @@
+name: firebase_ui_example
+description: A new Flutter project.
+
+# The following line prevents the package from being accidentally published to
+# pub.dev using `pub publish`. This is preferred for private packages.
+publish_to: 'none' # Remove this line if you wish to publish to pub.dev
+
+# The following defines the version and build number for your application.
+# A version number is three numbers separated by dots, like 1.2.43
+# followed by an optional build number separated by a +.
+# Both the version and the builder number may be overridden in flutter
+# build by specifying --build-name and --build-number, respectively.
+# In Android, build-name is used as versionName while build-number used as versionCode.
+# Read more about Android versioning at https://developer.android.com/studio/publish/versioning
+# In iOS, build-name is used as CFBundleShortVersionString while build-number used as CFBundleVersion.
+# Read more about iOS versioning at
+# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
+version: 1.0.0+1
+
+environment:
+ sdk: '>=2.16.0 <3.0.0'
+
+dependencies:
+ cloud_firestore: ^3.5.1
+ crypto: ^3.0.1
+ cupertino_icons: ^1.0.2
+ firebase_auth: ^3.10.0
+ firebase_core: ^1.10.3
+ firebase_database: ^9.1.7
+ firebase_dynamic_links: ^4.3.11
+ flutter:
+ sdk: flutter
+ flutter_localizations:
+ sdk: flutter
+ flutter_svg: ^1.0.0
+ firebase_ui_auth: ^1.0.0-dev.0
+ firebase_ui_localizations: ^1.0.0-dev.0
+ firebase_ui_oauth: ^1.0.0-dev.0
+ firebase_ui_oauth_apple: ^1.0.0-dev.0
+ firebase_ui_oauth_facebook: ^1.0.0-dev.0
+ firebase_ui_oauth_google: ^1.0.0-dev.0
+ firebase_ui_oauth_twitter: ^1.0.0-dev.0
+dev_dependencies:
+ drive: ^1.0.0-1.0.nullsafety.1
+ flutter_driver:
+ sdk: flutter
+ flutter_test:
+ sdk: flutter
+ flutter_lints: ^2.0.0
+ google_sign_in: ^5.3.3
+ http: ^0.13.4
+ integration_test:
+ sdk: flutter
+ mockito: ^5.0.0
+ test: any
+ twitter_login: ^4.2.3
+ flutter_facebook_auth: ^4.3.4+2
+
+# For information on the generic Dart part of this file, see the
+# following page: https://dart.dev/tools/pub/pubspec
+# The following section is specific to Flutter.
+flutter:
+ # The following line ensures that the Material Icons font is
+ # included with your application, so that you can use the icons in
+ # the material Icons class.
+ uses-material-design: true
+ # To add assets to your application, add an assets section, like this:
+ assets:
+ - assets/images/
+
+ # An image asset can refer to one or more resolution-specific "variants", see
+ # https://flutter.dev/assets-and-images/#resolution-aware.
+ # For details regarding adding assets from package dependencies, see
+ # https://flutter.dev/assets-and-images/#from-packages
+ # To add custom fonts to your application, add a fonts section here,
+ # in this "flutter" section. Each entry in this list should have a
+ # "family" key with the font family name, and a "fonts" key with a
+ # list giving the asset and other descriptors for the font. For
+ # example:
+ fonts:
+ - family: SocialIcons
+ fonts:
+ - asset: packages/firebase_ui_auth/fonts/SocialIcons.ttf
+ # - family: Trajan Pro
+ # fonts:
+ # - asset: fonts/TrajanPro.ttf
+ # - asset: fonts/TrajanPro_Bold.ttf
+ # weight: 700
+ #
+ # For details regarding fonts from package dependencies,
+ # see https://flutter.dev/custom-fonts/#from-packages
diff --git a/packages/firebase_ui_auth/example/test_driver/apple_sign_in_test.dart b/packages/firebase_ui_auth/example/test_driver/apple_sign_in_test.dart
new file mode 100644
index 000000000000..0b9ec75cabf5
--- /dev/null
+++ b/packages/firebase_ui_auth/example/test_driver/apple_sign_in_test.dart
@@ -0,0 +1,157 @@
+import 'package:firebase_auth/firebase_auth.dart';
+import 'package:firebase_core/firebase_core.dart';
+import 'package:flutter/foundation.dart';
+import 'package:flutter/material.dart';
+import 'package:flutter_test/flutter_test.dart';
+import 'package:firebase_ui_auth/firebase_ui_auth.dart';
+import 'package:firebase_ui_localizations/firebase_ui_localizations.dart';
+import 'package:firebase_ui_oauth/firebase_ui_oauth.dart';
+import 'package:mockito/mockito.dart';
+import 'package:firebase_ui_oauth_apple/src/provider.dart';
+
+import 'utils.dart';
+
+void main() async {
+ final provider = AppleProvider();
+ late FirebaseAuth auth;
+ late MockProvider fbProvider;
+
+ const labels = DefaultLocalizations();
+
+ group(
+ 'Sign in with Apple button',
+ () {
+ setUp(() {
+ auth = MockAuth();
+ fbProvider = MockProvider();
+ provider.firebaseAuthProvider = fbProvider;
+ });
+
+ testWidgets('has a correct button label', (tester) async {
+ await render(
+ tester,
+ OAuthProviderButton(
+ provider: provider,
+ auth: auth,
+ ),
+ );
+ expect(find.text(labels.signInWithAppleButtonText), findsOneWidget);
+ });
+
+ testWidgets(
+ 'calls sign in when tapped',
+ (tester) async {
+ await render(
+ tester,
+ OAuthProviderButton(
+ provider: provider,
+ auth: auth,
+ ),
+ );
+
+ final button = find.byType(OAuthProviderButtonBase);
+ await tester.tap(button);
+
+ await tester.pumpAndSettle();
+ verify(auth.signInWithProvider(fbProvider)).called(1);
+
+ expect(true, isTrue);
+ },
+ );
+
+ testWidgets(
+ 'shows loading indicator when sign in is in progress',
+ (tester) async {
+ await render(
+ tester,
+ OAuthProviderButton(
+ provider: provider,
+ auth: auth,
+ ),
+ );
+
+ final button = find.byType(OAuthProviderButtonBase);
+ await tester.tap(button);
+ await tester.pump();
+
+ expect(find.byType(CircularProgressIndicator), findsOneWidget);
+ },
+ );
+
+ testWidgets('signs the user in', (tester) async {
+ final listener = MockListener();
+
+ await render(
+ tester,
+ AuthStateListener(
+ listener: (oldState, state, controller) {
+ listener(state);
+ return null;
+ },
+ child: OAuthProviderButton(
+ provider: provider,
+ auth: auth,
+ ),
+ ),
+ );
+
+ final button = find.byType(OAuthProviderButtonBase);
+ await tester.tap(button);
+ await tester.pumpAndSettle();
+
+ final result = verify(listener.call(captureAny));
+ expect(result.captured[1], isA());
+
+ final user = (result.captured[1] as SignedIn).user!;
+ expect(user.displayName, 'Test User');
+ expect(user.email, 'test@test.com');
+ });
+ },
+ skip: !provider.supportsPlatform(defaultTargetPlatform),
+ );
+}
+
+class MockListener extends Mock {
+ void call(AuthState? state) {
+ super.noSuchMethod(
+ Invocation.method(
+ #call,
+ [
+ state,
+ ],
+ ),
+ );
+ }
+}
+
+class MockUser extends Mock implements User {
+ @override
+ String? get displayName => 'Test User';
+
+ @override
+ String? get email => 'test@test.com';
+}
+
+class MockCredential extends Mock implements UserCredential {
+ @override
+ User? get user => MockUser();
+}
+
+class MockProvider extends Mock implements AppleAuthProvider {}
+
+// ignore: avoid_implementing_value_types
+class MockApp extends Mock implements FirebaseApp {}
+
+class MockAuth extends Mock implements FirebaseAuth {
+ @override
+ Future signInWithAuthProvider(Object provider) async {
+ return super.noSuchMethod(
+ Invocation.method(#signInWithAuthProvider, [provider]),
+ returnValue: Future.delayed(const Duration(milliseconds: 50))
+ .then((_) => MockCredential()),
+ returnValueForMissingStub:
+ Future.delayed(const Duration(milliseconds: 50))
+ .then((_) => MockCredential()),
+ );
+ }
+}
diff --git a/packages/firebase_ui_auth/example/test_driver/email_form_test.dart b/packages/firebase_ui_auth/example/test_driver/email_form_test.dart
new file mode 100644
index 000000000000..79efca71aebd
--- /dev/null
+++ b/packages/firebase_ui_auth/example/test_driver/email_form_test.dart
@@ -0,0 +1,231 @@
+import 'package:firebase_auth/firebase_auth.dart';
+import 'package:flutter/material.dart';
+import 'package:flutter_test/flutter_test.dart';
+import 'package:firebase_ui_auth/firebase_ui_auth.dart';
+import 'package:firebase_ui_localizations/firebase_ui_localizations.dart';
+
+import 'utils.dart';
+
+void main() {
+ const labels = DefaultLocalizations();
+
+ group('EmailForm', () {
+ testWidgets('validates email', (tester) async {
+ await render(tester, const EmailForm());
+
+ final inputs = find.byType(TextFormField);
+ final emailInput = inputs.first;
+
+ await tester.enterText(emailInput, 'not a vailid email');
+ await tester.testTextInput.receiveAction(TextInputAction.done);
+ await tester.pumpAndSettle();
+
+ expect(find.text(labels.isNotAValidEmailErrorText), findsOneWidget);
+ });
+
+ testWidgets('requires password', (tester) async {
+ await render(tester, const EmailForm());
+
+ final inputs = find.byType(TextFormField);
+ final emailInput = inputs.first;
+ final passwordInput = inputs.at(1);
+
+ await tester.enterText(emailInput, 'test@test.com');
+ await tester.testTextInput.receiveAction(TextInputAction.done);
+
+ await tester.enterText(passwordInput, '');
+ await tester.pumpAndSettle();
+
+ expect(find.text(labels.passwordIsRequiredErrorText), findsOneWidget);
+ });
+
+ testWidgets(
+ 'shows password confirmation if action is sign up',
+ (tester) async {
+ await render(tester, const EmailForm(action: AuthAction.signUp));
+
+ final inputs = find.byType(TextFormField);
+ expect(inputs, findsNWidgets(3));
+ },
+ );
+
+ testWidgets(
+ 'requires password confirmation',
+ (tester) async {
+ await render(tester, const EmailForm(action: AuthAction.signUp));
+
+ final inputs = find.byType(TextFormField);
+
+ await tester.enterText(inputs.at(0), 'test@test.com');
+ await tester.testTextInput.receiveAction(TextInputAction.done);
+
+ await tester.enterText(inputs.at(1), 'password');
+ await tester.testTextInput.receiveAction(TextInputAction.done);
+
+ await tester.enterText(inputs.at(2), '');
+ await tester.testTextInput.receiveAction(TextInputAction.done);
+
+ await tester.pumpAndSettle();
+
+ expect(
+ find.text(labels.confirmPasswordIsRequiredErrorText),
+ findsOneWidget,
+ );
+ },
+ );
+
+ testWidgets(
+ 'verifies that password confirmation matches password',
+ (tester) async {
+ await render(tester, const EmailForm(action: AuthAction.signUp));
+
+ final inputs = find.byType(TextFormField);
+
+ await tester.enterText(inputs.at(0), 'test@test.com');
+ await tester.testTextInput.receiveAction(TextInputAction.done);
+
+ await tester.enterText(inputs.at(1), 'password');
+ await tester.testTextInput.receiveAction(TextInputAction.done);
+
+ await tester.enterText(inputs.at(2), 'psasword');
+ await tester.testTextInput.receiveAction(TextInputAction.done);
+
+ await tester.pumpAndSettle();
+
+ expect(
+ find.text(labels.confirmPasswordDoesNotMatchErrorText),
+ findsOneWidget,
+ );
+ },
+ );
+
+ testWidgets(
+ 'registers new user',
+ (tester) async {
+ await render(tester, const EmailForm(action: AuthAction.signUp));
+
+ final inputs = find.byType(TextFormField);
+
+ await tester.enterText(inputs.at(0), 'test@test.com');
+ await tester.testTextInput.receiveAction(TextInputAction.done);
+
+ await tester.enterText(inputs.at(1), 'password');
+ await tester.testTextInput.receiveAction(TextInputAction.done);
+
+ await tester.enterText(inputs.at(2), 'password');
+ await tester.testTextInput.receiveAction(TextInputAction.done);
+
+ await tester.pump();
+ await Future.delayed(const Duration(milliseconds: 1));
+
+ expect(find.byType(LoadingIndicator), findsOneWidget);
+ await tester.pumpAndSettle();
+
+ expect(FirebaseAuth.instance.currentUser, isNotNull);
+ },
+ );
+
+ testWidgets('shows wrong password error', (tester) async {
+ await FirebaseAuth.instance.createUserWithEmailAndPassword(
+ email: 'test@test.com',
+ password: 'password',
+ );
+
+ await FirebaseAuth.instance.signOut();
+
+ await render(tester, const EmailForm(action: AuthAction.signIn));
+
+ final inputs = find.byType(TextFormField);
+
+ await tester.enterText(inputs.at(0), 'test@test.com');
+ await tester.testTextInput.receiveAction(TextInputAction.done);
+
+ await tester.enterText(inputs.at(1), 'wrongpassword');
+ await tester.testTextInput.receiveAction(TextInputAction.done);
+
+ await tester.pumpAndSettle();
+
+ expect(find.text(labels.wrongOrNoPasswordErrorText), findsOneWidget);
+ });
+
+ testWidgets('signs in the user', (tester) async {
+ await FirebaseAuth.instance.createUserWithEmailAndPassword(
+ email: 'test@test.com',
+ password: 'password',
+ );
+
+ await FirebaseAuth.instance.signOut();
+
+ await render(
+ tester,
+ FirebaseUIActions(
+ actions: [
+ AuthStateChangeAction((context, state) {
+ expect(state, isA());
+ expect(state.user, isNotNull);
+ expect(state.user!.email, equals('test@test.com'));
+ })
+ ],
+ child: const EmailForm(action: AuthAction.signIn),
+ ),
+ );
+
+ final inputs = find.byType(TextFormField);
+
+ await tester.enterText(inputs.at(0), 'test@test.com');
+ await tester.testTextInput.receiveAction(TextInputAction.done);
+
+ await tester.enterText(inputs.at(1), 'password');
+ await tester.testTextInput.receiveAction(TextInputAction.done);
+
+ await tester.pumpAndSettle();
+ });
+
+ testWidgets(
+ 'links email and password when auth action is link',
+ (tester) async {
+ await render(
+ tester,
+ FirebaseUIActions(
+ actions: [
+ AuthStateChangeAction((context, state) {
+ expect(state, isA());
+ expect(state.credential, isNotNull);
+ expect(state.credential, isA());
+ expect(
+ (state.credential as EmailAuthCredential).email,
+ equals('test@test.com'),
+ );
+ expect(
+ (state.credential as EmailAuthCredential).password,
+ equals('password'),
+ );
+
+ expect(
+ FirebaseAuth.instance.currentUser!.email,
+ equals('test@test.com'),
+ );
+ })
+ ],
+ child: const EmailForm(action: AuthAction.link),
+ ),
+ );
+
+ await FirebaseAuth.instance.signInAnonymously();
+
+ final inputs = find.byType(TextFormField);
+
+ await tester.enterText(inputs.at(0), 'test@test.com');
+ await tester.testTextInput.receiveAction(TextInputAction.done);
+
+ await tester.enterText(inputs.at(1), 'password');
+ await tester.testTextInput.receiveAction(TextInputAction.done);
+
+ await tester.enterText(inputs.at(2), 'password');
+ await tester.testTextInput.receiveAction(TextInputAction.done);
+
+ await tester.pumpAndSettle();
+ },
+ );
+ });
+}
diff --git a/packages/firebase_ui_auth/example/test_driver/email_link_sign_in_view_test.dart b/packages/firebase_ui_auth/example/test_driver/email_link_sign_in_view_test.dart
new file mode 100644
index 000000000000..cedcda47b86a
--- /dev/null
+++ b/packages/firebase_ui_auth/example/test_driver/email_link_sign_in_view_test.dart
@@ -0,0 +1,57 @@
+import 'package:firebase_auth/firebase_auth.dart';
+import 'package:flutter/material.dart';
+import 'package:flutter_test/flutter_test.dart';
+import 'package:firebase_ui_auth/firebase_ui_auth.dart';
+import 'package:firebase_ui_localizations/firebase_ui_localizations.dart';
+
+import 'utils.dart';
+
+final actionCodeSettings = ActionCodeSettings(
+ url: 'http://$testEmulatorHost:9099',
+ handleCodeInApp: true,
+ androidMinimumVersion: '1',
+ androidPackageName: 'io.flutter.plugins.firebase_ui.firebase_ui_example',
+ iOSBundleId: 'io.flutter.plugins.flutterfireui.flutterfireUIExample',
+);
+
+final emailLinkProvider = EmailLinkAuthProvider(
+ actionCodeSettings: actionCodeSettings,
+);
+
+void main() {
+ const labels = DefaultLocalizations();
+
+ group('EmailLinkSignInView', () {
+ testWidgets('validates email', (tester) async {
+ await render(
+ tester,
+ EmailLinkSignInView(provider: emailLinkProvider),
+ );
+
+ final input = find.byType(TextFormField);
+ await tester.enterText(input, 'notanemail');
+ await tester.testTextInput.receiveAction(TextInputAction.done);
+
+ await tester.pumpAndSettle();
+
+ expect(find.text(labels.isNotAValidEmailErrorText), findsOneWidget);
+ });
+
+ testWidgets('sends a link to an email', (tester) async {
+ await render(
+ tester,
+ EmailLinkSignInView(
+ provider: emailLinkProvider,
+ ),
+ );
+
+ final input = find.byType(TextFormField);
+ await tester.enterText(input, 'test@test.com');
+ await tester.testTextInput.receiveAction(TextInputAction.done);
+
+ await tester.pumpAndSettle();
+
+ expect(find.text(labels.signInWithEmailLinkSentText), findsOneWidget);
+ });
+ });
+}
diff --git a/packages/firebase_ui_auth/example/test_driver/facebook_sign_in_test.dart b/packages/firebase_ui_auth/example/test_driver/facebook_sign_in_test.dart
new file mode 100644
index 000000000000..498ec936369e
--- /dev/null
+++ b/packages/firebase_ui_auth/example/test_driver/facebook_sign_in_test.dart
@@ -0,0 +1,129 @@
+import 'package:firebase_auth/firebase_auth.dart';
+import 'package:flutter/foundation.dart';
+import 'package:flutter/material.dart';
+import 'package:flutter_facebook_auth/flutter_facebook_auth.dart';
+import 'package:flutter_test/flutter_test.dart';
+import 'package:firebase_ui_auth/firebase_ui_auth.dart';
+import 'package:firebase_ui_localizations/firebase_ui_localizations.dart';
+import 'package:firebase_ui_oauth/firebase_ui_oauth.dart';
+import 'package:firebase_ui_oauth_facebook/firebase_ui_oauth_facebook.dart';
+import 'package:mockito/mockito.dart';
+
+import 'utils.dart';
+
+void main() async {
+ late FacebookProvider provider = FacebookProvider(clientId: 'clientId');
+
+ setUp(() {
+ provider.provider = MockFacebookAuth();
+ });
+
+ const labels = DefaultLocalizations();
+
+ group(
+ 'Sign in with Facebook button',
+ () {
+ testWidgets('has a correct button label', (tester) async {
+ await render(tester, OAuthProviderButton(provider: provider));
+ expect(find.text(labels.signInWithFacebookButtonText), findsOneWidget);
+ });
+
+ testWidgets(
+ 'calls sign in when tapped',
+ (tester) async {
+ await render(
+ tester,
+ OAuthProviderButton(provider: provider),
+ );
+
+ final button = find.byType(OAuthProviderButtonBase);
+ await tester.tap(button);
+
+ await tester.pumpAndSettle();
+ verify(provider.provider.login()).called(1);
+
+ expect(true, isTrue);
+ },
+ );
+
+ testWidgets(
+ 'shows loading indicator when sign in is in progress',
+ (tester) async {
+ await render(
+ tester,
+ OAuthProviderButton(provider: provider),
+ );
+
+ when(provider.provider.login()).thenAnswer(
+ (realInvocation) async {
+ await Future.delayed(const Duration(milliseconds: 50));
+ return MockLoginResult();
+ },
+ );
+
+ final button = find.byType(OAuthProviderButtonBase);
+ await tester.tap(button);
+ await tester.pump();
+
+ expect(find.byType(CircularProgressIndicator), findsOneWidget);
+ },
+ );
+
+ testWidgets('signs the user in', (tester) async {
+ await render(
+ tester,
+ OAuthProviderButton(provider: provider),
+ );
+
+ final button = find.byType(OAuthProviderButtonBase);
+ await tester.tap(button);
+ await tester.pumpAndSettle();
+
+ final user = FirebaseAuth.instance.currentUser!;
+
+ expect(user.displayName, 'Test User');
+ expect(user.email, 'test@test.com');
+ });
+ },
+ skip: !provider.supportsPlatform(defaultTargetPlatform),
+ );
+}
+
+// Mock JWT with the following payload:
+// {
+// "sub": "1234567890",
+// "name": "Test User",
+// "email": "test@test.com",
+// "iat": 1516239022
+// }
+const _jwt =
+ 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IlRlc3QgVXNlciIsImVtYWlsIjoidGVzdEB0ZXN0LmNvbSIsImlhdCI6MTUxNjIzOTAyMn0.m5qYto_Vs5ELTURC8rkD-JAJuoosdQZeuUZ_qFrEiaE';
+
+class MockAccessToken extends Mock implements AccessToken {
+ @override
+ String get token => _jwt;
+}
+
+class MockLoginResult extends Mock implements LoginResult {
+ @override
+ LoginStatus get status => LoginStatus.success;
+ @override
+ AccessToken? get accessToken => MockAccessToken();
+}
+
+class MockFacebookAuth extends Mock implements FacebookAuth {
+ @override
+ Future login({
+ List? permissions = const ['email', 'public_profile'],
+ LoginBehavior? loginBehavior = LoginBehavior.dialogOnly,
+ }) async {
+ return super.noSuchMethod(
+ Invocation.method(#signIn, [], {
+ #permissions: permissions,
+ #behavior: loginBehavior,
+ }),
+ returnValue: MockLoginResult(),
+ returnValueForMissingStub: MockLoginResult(),
+ );
+ }
+}
diff --git a/packages/firebase_ui_auth/example/test_driver/firebase_options.dart b/packages/firebase_ui_auth/example/test_driver/firebase_options.dart
new file mode 100644
index 000000000000..a09bac6945fb
--- /dev/null
+++ b/packages/firebase_ui_auth/example/test_driver/firebase_options.dart
@@ -0,0 +1,97 @@
+// File generated by FlutterFire CLI.
+// ignore_for_file: lines_longer_than_80_chars, avoid_classes_with_only_static_members
+import 'package:firebase_core/firebase_core.dart' show FirebaseOptions;
+import 'package:flutter/foundation.dart'
+ show defaultTargetPlatform, kIsWeb, TargetPlatform;
+
+/// Default [FirebaseOptions] for use with your Firebase apps.
+///
+/// Example:
+/// ```dart
+/// import 'firebase_options.dart';
+/// // ...
+/// await Firebase.initializeApp(
+/// options: DefaultFirebaseOptions.currentPlatform,
+/// );
+/// ```
+class DefaultFirebaseOptions {
+ static FirebaseOptions get currentPlatform {
+ if (kIsWeb) {
+ return web;
+ }
+ switch (defaultTargetPlatform) {
+ case TargetPlatform.android:
+ return android;
+ case TargetPlatform.iOS:
+ return ios;
+ case TargetPlatform.macOS:
+ return macos;
+ case TargetPlatform.windows:
+ throw UnsupportedError(
+ 'DefaultFirebaseOptions have not been configured for windows - '
+ 'you can reconfigure this by running the FlutterFire CLI again.',
+ );
+ case TargetPlatform.linux:
+ throw UnsupportedError(
+ 'DefaultFirebaseOptions have not been configured for linux - '
+ 'you can reconfigure this by running the FlutterFire CLI again.',
+ );
+ default:
+ throw UnsupportedError(
+ 'DefaultFirebaseOptions are not supported for this platform.',
+ );
+ }
+ }
+
+ static const FirebaseOptions web = FirebaseOptions(
+ apiKey: 'AIzaSyB7wZb2tO1-Fs6GbDADUSTs2Qs3w08Hovw',
+ appId: '1:406099696497:web:8639aa69bac133513574d0',
+ messagingSenderId: '406099696497',
+ projectId: 'flutterfire-e2e-tests',
+ authDomain: 'flutterfire-e2e-tests.firebaseapp.com',
+ databaseURL:
+ 'https://flutterfire-e2e-tests-default-rtdb.europe-west1.firebasedatabase.app',
+ storageBucket: 'flutterfire-e2e-tests.appspot.com',
+ measurementId: 'G-X3614TQ65V',
+ );
+
+ static const FirebaseOptions android = FirebaseOptions(
+ apiKey: 'AIzaSyCdRjCVZlhrq72RuEklEyyxYlBRCYhI2Sw',
+ appId: '1:406099696497:android:899c6485cfce26c13574d0',
+ messagingSenderId: '406099696497',
+ projectId: 'flutterfire-e2e-tests',
+ databaseURL:
+ 'https://flutterfire-e2e-tests-default-rtdb.europe-west1.firebasedatabase.app',
+ storageBucket: 'flutterfire-e2e-tests.appspot.com',
+ );
+
+ static const FirebaseOptions ios = FirebaseOptions(
+ apiKey: 'AIzaSyDooSUGSf63Ghq02_iIhtnmwMDs4HlWS6c',
+ appId: '1:406099696497:ios:24bb8dcaefc434a73574d0',
+ messagingSenderId: '406099696497',
+ projectId: 'flutterfire-e2e-tests',
+ databaseURL:
+ 'https://flutterfire-e2e-tests-default-rtdb.europe-west1.firebasedatabase.app',
+ storageBucket: 'flutterfire-e2e-tests.appspot.com',
+ androidClientId:
+ '406099696497-17qn06u8a0dc717u8ul7s49ampk13lul.apps.googleusercontent.com',
+ iosClientId:
+ '406099696497-65v1b9ffv6sgfqngfjab5ol5qdikh2rm.apps.googleusercontent.com',
+ iosBundleId: 'io.flutter.plugins.firebaseUiExample',
+ );
+
+ static const FirebaseOptions macos = FirebaseOptions(
+ apiKey: 'AIzaSyDooSUGSf63Ghq02_iIhtnmwMDs4HlWS6c',
+ appId: '1:406099696497:ios:24bb8dcaefc434a73574d0',
+ messagingSenderId: '406099696497',
+ projectId: 'flutterfire-e2e-tests',
+ databaseURL:
+ 'https://flutterfire-e2e-tests-default-rtdb.europe-west1.firebasedatabase.app',
+ storageBucket: 'flutterfire-e2e-tests.appspot.com',
+ androidClientId:
+ '406099696497-17qn06u8a0dc717u8ul7s49ampk13lul.apps.googleusercontent.com',
+ iosClientId:
+ '406099696497-65v1b9ffv6sgfqngfjab5ol5qdikh2rm.apps.googleusercontent.com',
+ iosBundleId: 'io.flutter.plugins.firebaseUiExample',
+ );
+}
diff --git a/packages/firebase_ui_auth/example/test_driver/firebase_ui_auth_e2e.dart b/packages/firebase_ui_auth/example/test_driver/firebase_ui_auth_e2e.dart
new file mode 100644
index 000000000000..d98b6eb3a1f1
--- /dev/null
+++ b/packages/firebase_ui_auth/example/test_driver/firebase_ui_auth_e2e.dart
@@ -0,0 +1,41 @@
+// Copyright 2020, the Chromium project authors. Please see the AUTHORS file
+// for details. All rights reserved. Use of this source code is governed by a
+// BSD-style license that can be found in the LICENSE file.
+
+import 'package:firebase_auth/firebase_auth.dart';
+import 'package:flutter_test/flutter_test.dart';
+import 'package:integration_test/integration_test.dart';
+
+import 'email_form_test.dart' as email_form;
+import 'email_link_sign_in_view_test.dart' as email_link_sign_in_view;
+import 'universal_email_sign_in_screen_test.dart'
+ as universal_email_sign_in_screen;
+import 'phone_verification_test.dart' as phone_verification;
+import 'google_sign_in_test.dart' as google_sign_in;
+import 'twitter_sign_in_test.dart' as twitter_sign_in;
+import 'apple_sign_in_test.dart' as apple_sign_in;
+import 'facebook_sign_in_test.dart' as facebook_sign_in;
+
+import 'utils.dart';
+
+Future main() async {
+ IntegrationTestWidgetsFlutterBinding.ensureInitialized();
+ setUpAll(prepare);
+
+ tearDown(() async {
+ await FirebaseAuth.instance.signOut();
+ await deleteAllAccounts();
+ });
+
+ email_form.main();
+ email_link_sign_in_view.main();
+ universal_email_sign_in_screen.main();
+
+ if (isMobile) {
+ phone_verification.main();
+ google_sign_in.main();
+ twitter_sign_in.main();
+ apple_sign_in.main();
+ facebook_sign_in.main();
+ }
+}
diff --git a/packages/firebase_ui_auth/example/test_driver/firebase_ui_auth_e2e_test.dart b/packages/firebase_ui_auth/example/test_driver/firebase_ui_auth_e2e_test.dart
new file mode 100644
index 000000000000..d44896e41f7c
--- /dev/null
+++ b/packages/firebase_ui_auth/example/test_driver/firebase_ui_auth_e2e_test.dart
@@ -0,0 +1,8 @@
+// @dart=2.9
+// Copyright 2020, the Chromium project authors. Please see the AUTHORS file
+// for details. All rights reserved. Use of this source code is governed by a
+// BSD-style license that can be found in the LICENSE file.
+
+import 'package:drive/drive_driver.dart' as drive;
+
+void main() => drive.main();
diff --git a/packages/firebase_ui_auth/example/test_driver/google_sign_in_test.dart b/packages/firebase_ui_auth/example/test_driver/google_sign_in_test.dart
new file mode 100644
index 000000000000..35e91e4e24fd
--- /dev/null
+++ b/packages/firebase_ui_auth/example/test_driver/google_sign_in_test.dart
@@ -0,0 +1,127 @@
+import 'package:firebase_auth/firebase_auth.dart';
+import 'package:flutter/foundation.dart';
+import 'package:flutter/material.dart';
+import 'package:flutter_test/flutter_test.dart';
+import 'package:firebase_ui_auth/firebase_ui_auth.dart';
+import 'package:firebase_ui_localizations/firebase_ui_localizations.dart';
+import 'package:firebase_ui_oauth/firebase_ui_oauth.dart';
+import 'package:firebase_ui_oauth_google/firebase_ui_oauth_google.dart';
+import 'package:google_sign_in/google_sign_in.dart';
+import 'package:mockito/mockito.dart';
+
+import 'utils.dart';
+
+void main() async {
+ late GoogleProvider provider = GoogleProvider(
+ clientId: 'clientId',
+ redirectUri: 'redirectUri',
+ scopes: const ['scope1', 'scope2'],
+ );
+
+ setUp(() {
+ provider.provider = MockGoogleSignIn();
+ });
+
+ const labels = DefaultLocalizations();
+
+ group(
+ 'Sign in with Google button',
+ () {
+ testWidgets('has a correct button label', (tester) async {
+ await render(tester, OAuthProviderButton(provider: provider));
+ expect(find.text(labels.signInWithGoogleButtonText), findsOneWidget);
+ });
+
+ testWidgets(
+ 'calls sign in when tapped',
+ (tester) async {
+ await render(
+ tester,
+ OAuthProviderButton(provider: provider),
+ );
+
+ final button = find.byType(OAuthProviderButtonBase);
+ await tester.tap(button);
+
+ await tester.pumpAndSettle();
+ verify(provider.provider.signIn()).called(1);
+
+ expect(true, isTrue);
+ },
+ );
+
+ testWidgets(
+ 'shows loading indicator when sign in is in progress',
+ (tester) async {
+ await render(
+ tester,
+ OAuthProviderButton(provider: provider),
+ );
+
+ when(provider.provider.signIn()).thenAnswer(
+ (realInvocation) async {
+ await Future.delayed(const Duration(milliseconds: 50));
+ return MockGoogleSignInAccount();
+ },
+ );
+
+ final button = find.byType(OAuthProviderButtonBase);
+ await tester.tap(button);
+ await tester.pump();
+
+ expect(find.byType(CircularProgressIndicator), findsOneWidget);
+ },
+ );
+
+ testWidgets('signs the user in', (tester) async {
+ await render(
+ tester,
+ OAuthProviderButton(provider: provider),
+ );
+
+ final button = find.byType(OAuthProviderButtonBase);
+ await tester.tap(button);
+ await tester.pumpAndSettle();
+
+ final user = FirebaseAuth.instance.currentUser!;
+
+ expect(user.displayName, 'Test User');
+ expect(user.email, 'test@test.com');
+ });
+ },
+ skip: !provider.supportsPlatform(defaultTargetPlatform),
+ );
+}
+
+// Mock JWT with the following payload:
+// {
+// "sub": "1234567890",
+// "name": "Test User",
+// "email": "test@test.com",
+// "iat": 1516239022
+// }
+const _jwt =
+ 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IlRlc3QgVXNlciIsImVtYWlsIjoidGVzdEB0ZXN0LmNvbSIsImlhdCI6MTUxNjIzOTAyMn0.m5qYto_Vs5ELTURC8rkD-JAJuoosdQZeuUZ_qFrEiaE';
+
+class MockAuthentication extends Mock implements GoogleSignInAuthentication {
+ @override
+ final String accessToken = _jwt;
+}
+
+// ignore: avoid_implementing_value_types, must_be_immutable
+class MockGoogleSignInAccount extends Mock implements GoogleSignInAccount {
+ @override
+ Future get authentication async =>
+ MockAuthentication();
+}
+
+class MockGoogleSignIn extends Mock implements GoogleSignIn {
+ @override
+ Future signIn() async {
+ return super.noSuchMethod(
+ Invocation.method(#signIn, []),
+ returnValue: MockGoogleSignInAccount(),
+ returnValueForMissingStub: MockGoogleSignInAccount(),
+ );
+ }
+}
diff --git a/packages/firebase_ui_auth/example/test_driver/phone_verification_test.dart b/packages/firebase_ui_auth/example/test_driver/phone_verification_test.dart
new file mode 100644
index 000000000000..55aadc8a1228
--- /dev/null
+++ b/packages/firebase_ui_auth/example/test_driver/phone_verification_test.dart
@@ -0,0 +1,199 @@
+import 'dart:async';
+
+import 'package:flutter/material.dart';
+import 'package:flutter_test/flutter_test.dart';
+import 'package:firebase_ui_auth/firebase_ui_auth.dart';
+import 'package:firebase_ui_localizations/firebase_ui_localizations.dart';
+
+import 'utils.dart';
+
+Future sendSMS(WidgetTester tester, String phoneNumber) async {
+ await tester.pump();
+
+ final phoneInput = find.byType(TextField).at(1);
+ await tester.enterText(phoneInput, phoneNumber);
+
+ await tester.testTextInput.receiveAction(TextInputAction.done);
+ await tester.pumpAndSettle();
+}
+
+void main() {
+ const labels = DefaultLocalizations();
+
+ group('PhoneInputScreen', () {
+ testWidgets(
+ 'pick country code',
+ (tester) async {
+ await render(
+ tester,
+ const PhoneInputScreen(),
+ );
+
+ await tester.pump();
+
+ final popUpMenu = find.byWidgetPredicate((widget) {
+ return widget is PopupMenuButton;
+ });
+
+ expect(popUpMenu, findsOneWidget);
+
+ await tester.tap(popUpMenu);
+ await tester.pumpAndSettle();
+
+ final australia = find.text('Australia (+61)');
+ expect(australia, findsOneWidget);
+
+ await tester.tap(australia);
+ await tester.pumpAndSettle();
+
+ final inputs = find.byType(TextField);
+ expect(inputs, findsNWidgets(2));
+
+ final elements = inputs.evaluate();
+
+ final codeInput = elements.first.widget as TextField;
+
+ expect(codeInput.decoration!.labelText, labels.countryCode);
+ expect((codeInput.decoration!.prefix! as Text).data, '+');
+ expect(codeInput.controller!.text, '61');
+ },
+ skip: true,
+ );
+
+ testWidgets('validates phone number', (tester) async {
+ await render(
+ tester,
+ const PhoneInputScreen(),
+ );
+
+ await tester.pump();
+
+ final phoneInput = find.byType(TextField).at(1);
+ await tester.enterText(phoneInput, '12345');
+
+ await tester.testTextInput.receiveAction(TextInputAction.done);
+ await tester.pumpAndSettle();
+
+ final errorText = find.text(labels.phoneNumberInvalidErrorText);
+ expect(errorText, findsOneWidget);
+ });
+
+ testWidgets(
+ 'sends sms verification code when next is clicked',
+ (tester) async {
+ final completer = Completer();
+
+ await render(
+ tester,
+ PhoneInputScreen(
+ actions: [
+ AuthStateChangeAction((context, state) {
+ completer.complete();
+ }),
+ AuthStateChangeAction((context, state) {
+ fail('should not fail');
+ }),
+ ],
+ ),
+ );
+
+ await sendSMS(tester, '123456789');
+
+ await completer.future;
+
+ final codes = await getVerificationCodes();
+ expect(codes['+1123456789'], isNotEmpty);
+ },
+ );
+
+ testWidgets(
+ 'opens sms verification screen when code is requested',
+ (tester) async {
+ await render(tester, const PhoneInputScreen());
+ await sendSMS(tester, '123456789');
+
+ expect(find.text(labels.enterSMSCodeText), findsOneWidget);
+ },
+ );
+ });
+
+ group('SMSCodeInputScreen', () {
+ testWidgets('allows to go back to phone input screen', (tester) async {
+ await render(tester, const PhoneInputScreen());
+ await sendSMS(tester, '123456789');
+
+ final button = find.text(labels.goBackButtonLabel);
+ expect(button, findsOneWidget);
+ await tester.tap(button);
+ await tester.pumpAndSettle();
+
+ expect(find.byType(PhoneInputScreen), findsOneWidget);
+ });
+
+ testWidgets(
+ 'shows error message if invalid code was entered',
+ (tester) async {
+ await render(
+ tester,
+ const PhoneInputScreen(),
+ );
+ await sendSMS(tester, '234567890');
+
+ final smsCodeInput = find.byType(SMSCodeInput);
+ expect(smsCodeInput, findsOneWidget);
+
+ final codes = await getVerificationCodes();
+ final code = codes['+1234567890']!;
+ final invalidCode =
+ code.split('').map(int.parse).map((v) => (v + 1) % 10).join();
+
+ await tester.tap(smsCodeInput);
+
+ await tester.enterText(smsCodeInput, invalidCode);
+ await tester.testTextInput.receiveAction(TextInputAction.done);
+ await tester.pumpAndSettle();
+
+ expect(find.byType(ErrorText), findsOneWidget);
+ },
+ );
+
+ testWidgets(
+ 'signs in if the code is correct',
+ (tester) async {
+ final completer = Completer();
+
+ await render(
+ tester,
+ FirebaseUIActions(
+ actions: [
+ AuthStateChangeAction((context, state) {
+ completer.complete(state);
+ }),
+ AuthStateChangeAction((context, state) {
+ fail("shouldn't fail");
+ }),
+ ],
+ child: const PhoneInputScreen(),
+ ),
+ );
+ await sendSMS(tester, '234567890');
+
+ final smsCodeInput = find.byType(SMSCodeInput);
+ expect(smsCodeInput, findsOneWidget);
+
+ final codes = await getVerificationCodes();
+ final code = codes['+1234567890']!;
+
+ await tester.tap(smsCodeInput);
+
+ await tester.enterText(smsCodeInput, code);
+ await tester.testTextInput.receiveAction(TextInputAction.done);
+ await tester.pumpAndSettle();
+
+ final state = await completer.future;
+ expect(state.user, isNotNull);
+ expect(state.user!.phoneNumber, '+1234567890');
+ },
+ );
+ });
+}
diff --git a/packages/firebase_ui_auth/example/test_driver/twitter_sign_in_test.dart b/packages/firebase_ui_auth/example/test_driver/twitter_sign_in_test.dart
new file mode 100644
index 000000000000..b498c6950689
--- /dev/null
+++ b/packages/firebase_ui_auth/example/test_driver/twitter_sign_in_test.dart
@@ -0,0 +1,127 @@
+import 'package:firebase_auth/firebase_auth.dart';
+import 'package:flutter/foundation.dart';
+import 'package:flutter/material.dart';
+import 'package:flutter_test/flutter_test.dart';
+import 'package:firebase_ui_auth/firebase_ui_auth.dart';
+import 'package:firebase_ui_localizations/firebase_ui_localizations.dart';
+import 'package:firebase_ui_oauth/firebase_ui_oauth.dart';
+import 'package:firebase_ui_oauth_twitter/firebase_ui_oauth_twitter.dart';
+import 'package:mockito/mockito.dart';
+import 'package:twitter_login/twitter_login.dart';
+import 'package:twitter_login/entity/auth_result.dart' as twe;
+
+import 'utils.dart';
+
+void main() async {
+ late TwitterProvider provider = TwitterProvider(
+ apiKey: 'apiKey',
+ apiSecretKey: 'apiSecretKey',
+ );
+
+ setUp(() {
+ provider.provider = MockTwitterLogin();
+ });
+
+ const labels = DefaultLocalizations();
+
+ group(
+ 'Sign in with Twitter button',
+ () {
+ testWidgets('has a correct button label', (tester) async {
+ await render(tester, OAuthProviderButton(provider: provider));
+ expect(find.text(labels.signInWithTwitterButtonText), findsOneWidget);
+ });
+
+ testWidgets(
+ 'calls sign in when tapped',
+ (tester) async {
+ await render(
+ tester,
+ OAuthProviderButton(provider: provider),
+ );
+
+ final button = find.byType(OAuthProviderButtonBase);
+ await tester.tap(button);
+
+ await tester.pumpAndSettle();
+ verify(provider.provider.login()).called(1);
+
+ expect(true, isTrue);
+ },
+ );
+
+ testWidgets(
+ 'shows loading indicator when sign in is in progress',
+ (tester) async {
+ await render(
+ tester,
+ OAuthProviderButton(provider: provider),
+ );
+
+ when(provider.provider.login()).thenAnswer(
+ (realInvocation) async {
+ await Future.delayed(const Duration(milliseconds: 50));
+ return MockAuthResult();
+ },
+ );
+
+ final button = find.byType(OAuthProviderButtonBase);
+ await tester.tap(button);
+ await tester.pump();
+
+ expect(find.byType(CircularProgressIndicator), findsOneWidget);
+ },
+ );
+
+ testWidgets('signs the user in', (tester) async {
+ await render(
+ tester,
+ OAuthProviderButton(provider: provider),
+ );
+
+ final button = find.byType(OAuthProviderButtonBase);
+ await tester.tap(button);
+ await tester.pumpAndSettle();
+
+ final user = FirebaseAuth.instance.currentUser!;
+
+ expect(user.displayName, 'Test User');
+ expect(user.email, 'test@test.com');
+ });
+ },
+ skip: !provider.supportsPlatform(defaultTargetPlatform),
+ );
+}
+
+// Mock JWT with the following payload:
+// {
+// "sub": "1234567890",
+// "name": "Test User",
+// "email": "test@test.com",
+// "iat": 1516239022
+// }
+const _jwt =
+ 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IlRlc3QgVXNlciIsImVtYWlsIjoidGVzdEB0ZXN0LmNvbSIsImlhdCI6MTUxNjIzOTAyMn0.m5qYto_Vs5ELTURC8rkD-JAJuoosdQZeuUZ_qFrEiaE';
+
+class MockAuthResult extends Mock implements twe.AuthResult {
+ @override
+ TwitterLoginStatus? get status => TwitterLoginStatus.loggedIn;
+ @override
+ String? get authToken => _jwt;
+ @override
+ String? get authTokenSecret => 'secret';
+}
+
+class MockTwitterLogin extends Mock implements TwitterLogin {
+ @override
+ Future login({bool? forceLogin}) async {
+ return super.noSuchMethod(
+ Invocation.method(
+ #signIn,
+ [],
+ ),
+ returnValue: MockAuthResult(),
+ returnValueForMissingStub: MockAuthResult(),
+ );
+ }
+}
diff --git a/packages/firebase_ui_auth/example/test_driver/universal_email_sign_in_screen_test.dart b/packages/firebase_ui_auth/example/test_driver/universal_email_sign_in_screen_test.dart
new file mode 100644
index 000000000000..84acbb076d14
--- /dev/null
+++ b/packages/firebase_ui_auth/example/test_driver/universal_email_sign_in_screen_test.dart
@@ -0,0 +1,121 @@
+import 'package:firebase_auth/firebase_auth.dart'
+ hide EmailAuthProvider, PhoneAuthProvider;
+import 'package:firebase_core/firebase_core.dart';
+import 'package:flutter/foundation.dart';
+import 'package:flutter/material.dart';
+import 'package:flutter_test/flutter_test.dart';
+import 'package:firebase_ui_auth/firebase_ui_auth.dart';
+import 'package:firebase_ui_localizations/firebase_ui_localizations.dart';
+import 'package:firebase_ui_oauth_google/firebase_ui_oauth_google.dart';
+import 'package:mockito/mockito.dart';
+
+import 'utils.dart';
+
+void main() {
+ const labels = DefaultLocalizations();
+
+ group('UniversalEmailSignInScreen', () {
+ testWidgets('validates email', (tester) async {
+ await render(
+ tester,
+ UniversalEmailSignInScreen(
+ providers: [
+ EmailAuthProvider(),
+ PhoneAuthProvider(),
+ GoogleProvider(clientId: 'test-client-id'),
+ ],
+ ),
+ );
+
+ await tester.pump();
+
+ final input = find.byType(TextField);
+ expect(input, findsOneWidget);
+
+ await tester.enterText(input, 'notavalidemail');
+ await tester.testTextInput.receiveAction(TextInputAction.done);
+
+ await tester.pumpAndSettle();
+
+ expect(find.text(labels.isNotAValidEmailErrorText), findsOneWidget);
+ });
+
+ testWidgets('shows RegisterScreen if not providers found', (tester) async {
+ await render(
+ tester,
+ UniversalEmailSignInScreen(
+ providers: [
+ EmailAuthProvider(),
+ PhoneAuthProvider(),
+ GoogleProvider(clientId: 'test-client-id'),
+ ],
+ ),
+ );
+
+ await tester.pump();
+
+ final input = find.byType(TextField);
+ expect(input, findsOneWidget);
+
+ await tester.enterText(input, 'test@test.com');
+ await tester.testTextInput.receiveAction(TextInputAction.done);
+
+ await tester.pumpAndSettle();
+
+ expect(find.byType(RegisterScreen), findsOneWidget);
+ });
+
+ testWidgets('shows SingInScreen with only available providers',
+ (tester) async {
+ await render(
+ tester,
+ UniversalEmailSignInScreen(
+ auth: MockAuth(),
+ providers: [
+ EmailAuthProvider(),
+ PhoneAuthProvider(),
+ GoogleProvider(clientId: 'test-client-id'),
+ ],
+ ),
+ );
+
+ await tester.pump();
+
+ final input = find.byType(TextField);
+ expect(input, findsOneWidget);
+
+ await tester.enterText(input, 'test@test.com');
+ await tester.testTextInput.receiveAction(TextInputAction.done);
+
+ await tester.pumpAndSettle();
+
+ expect(find.byType(SignInScreen), findsOneWidget);
+
+ if (PhoneAuthProvider().supportsPlatform(defaultTargetPlatform)) {
+ expect(find.text(labels.signInWithPhoneButtonText), findsOneWidget);
+ }
+ expect(find.text(labels.signInWithGoogleButtonText), findsOneWidget);
+ expect(find.byType(EmailForm), findsNothing);
+ });
+ });
+}
+
+// ignore: avoid_implementing_value_types
+class MockApp extends Mock implements FirebaseApp {}
+
+class MockAuth extends Mock implements FirebaseAuth {
+ @override
+ FirebaseApp get app => MockApp();
+
+ @override
+ Future> fetchSignInMethodsForEmail(String? email) async {
+ return super.noSuchMethod(
+ Invocation.method(
+ #fetchSignInMethodsForEmail,
+ [email],
+ ),
+ returnValue: ['phone', 'google.com'],
+ returnValueForMissingStub: ['phone', 'google.com'],
+ );
+ }
+}
diff --git a/packages/firebase_ui_auth/example/test_driver/utils.dart b/packages/firebase_ui_auth/example/test_driver/utils.dart
new file mode 100644
index 000000000000..439a52699576
--- /dev/null
+++ b/packages/firebase_ui_auth/example/test_driver/utils.dart
@@ -0,0 +1,72 @@
+import 'dart:convert';
+
+import 'package:firebase_auth/firebase_auth.dart';
+import 'package:firebase_core/firebase_core.dart';
+import 'package:flutter/foundation.dart';
+import 'package:flutter/material.dart';
+import 'package:flutter_test/flutter_test.dart';
+import 'package:http/http.dart' as http;
+
+import 'firebase_options.dart';
+
+String get testEmulatorHost {
+ if (defaultTargetPlatform == TargetPlatform.android && !kIsWeb) {
+ return '10.0.2.2';
+ }
+ return 'localhost';
+}
+
+bool get isMobile {
+ return !kIsWeb &&
+ (defaultTargetPlatform == TargetPlatform.iOS ||
+ defaultTargetPlatform == TargetPlatform.android);
+}
+
+Future prepare() async {
+ await Firebase.initializeApp(options: DefaultFirebaseOptions.currentPlatform);
+ await FirebaseAuth.instance.useAuthEmulator(testEmulatorHost, 9099);
+}
+
+Future render(WidgetTester tester, Widget widget) async {
+ await tester.pumpWidget(
+ MaterialApp(
+ home: SafeArea(
+ child: Scaffold(
+ body: Padding(
+ padding: const EdgeInsets.all(8),
+ child: widget,
+ ),
+ ),
+ ),
+ ),
+ );
+}
+
+Future deleteAllAccounts() async {
+ final id = DefaultFirebaseOptions.currentPlatform.projectId;
+ final uriString =
+ 'http://$testEmulatorHost:9099/emulator/v1/projects/$id/accounts';
+ final res = await http.delete(Uri.parse(uriString));
+
+ if (res.statusCode != 200) throw Exception('Delete failed');
+}
+
+Future