diff --git a/CHANGELOG.md b/CHANGELOG.md index c520395e..c126dd0a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,631 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## 2026-11-16 + +### Changes + +--- + +Packages with breaking changes: + + - [`firebase_ui_auth` - `v4.0.0`](#firebase_ui_auth---v400) + - [`firebase_ui_database` - `v3.0.0`](#firebase_ui_database---v300) + - [`firebase_ui_firestore` - `v3.0.0`](#firebase_ui_firestore---v300) + - [`firebase_ui_localizations` - `v3.0.0`](#firebase_ui_localizations---v300) + - [`firebase_ui_oauth` - `v3.0.0`](#firebase_ui_oauth---v300) + - [`firebase_ui_oauth_apple` - `v3.0.0`](#firebase_ui_oauth_apple---v300) + - [`firebase_ui_oauth_facebook` - `v3.0.0`](#firebase_ui_oauth_facebook---v300) + - [`firebase_ui_oauth_google` - `v3.0.0`](#firebase_ui_oauth_google---v300) + - [`firebase_ui_oauth_twitter` - `v3.0.0`](#firebase_ui_oauth_twitter---v300) + - [`firebase_ui_storage` - `v4.0.0`](#firebase_ui_storage---v400) + +Packages with other changes: + + - There are no other changes in this release. + +--- + +#### `firebase_ui_auth` - `v4.0.0` + + - **FIX**(firebase_ui_auth): Catch sms code validation ([#482](https://github.com/firebase/FirebaseUI-Flutter/issues/482)). ([687a9bad](https://github.com/firebase/FirebaseUI-Flutter/commit/687a9bad5fd2ad6d2c279f0676c2a54678cd4b56)) + - **FIX**(ui_auth): widen app_links constraint to allow 7.x ([#676](https://github.com/firebase/FirebaseUI-Flutter/issues/676)). ([235b4071](https://github.com/firebase/FirebaseUI-Flutter/commit/235b4071cd62edcf35ac0503900060edab1c0474)) + - **FEAT**: migrate to Swift Package Manager and drop the Firestore fork ([#699](https://github.com/firebase/FirebaseUI-Flutter/issues/699)). ([73b2c453](https://github.com/firebase/FirebaseUI-Flutter/commit/73b2c45384ccf2de4a9ca9cfc0590648fe9e91d2)) + - **BREAKING** **FEAT**: update FlutterFire dependencies and drop CocoaPods ([#731](https://github.com/firebase/FirebaseUI-Flutter/issues/731)). ([c95b0991](https://github.com/firebase/FirebaseUI-Flutter/commit/c95b0991fa350f420863ab603b0c220ba53f8699)) + + * feat!: update FlutterFire dependencies and drop CocoaPods + + Runs scripts/update_dependencies.dart, moving to firebase_core 5, firebase_auth 7, cloud_firestore 7, firebase_database 13 and firebase_storage 14 (Firebase Apple SDK 13, Android BoM 35). + + - Enable Swift Package Manager in every app pubspec and the workspace root. + - Remove CocoaPods from all iOS apps and the macOS apps that don't depend on facebook_auth_desktop. + - Raise example minimums to iOS 15, macOS 12 and Android minSdk 24. + - tests/android: Gradle 8.14.3 and AGP 8.11.1, the minimums for current Flutter stable. + + + + * ci: run iOS and macOS e2e on the xcode-27 runner + + firebase-ios-sdk 13 uses Swift tools 6.2, which the macos-15 image's Xcode can't read. Match FlutterFire's runner and simulator. Also opt the oauth example's macOS AppDelegate into secure state restoration like the other examples. + + --------- + + - **BREAKING** **FEAT**(ui_auth): complete email link sign in after cold start and on other devices ([#710](https://github.com/firebase/FirebaseUI-Flutter/issues/710)). ([57b353e5](https://github.com/firebase/FirebaseUI-Flutter/commit/57b353e598d0e2527ec506a869ecffa97caae5fd)) + - **BREAKING** **FEAT**(ui_oauth_google): migrate to google_sign_in 7 ([#700](https://github.com/firebase/FirebaseUI-Flutter/issues/700)). ([7fd741c9](https://github.com/firebase/FirebaseUI-Flutter/commit/7fd741c9bb4db30a0525f24b1cdbc003d320228c)) + + * feat(ui_oauth_google)!: migrate to google_sign_in 7 + + Migrates GoogleProvider to the google_sign_in 7 API, which adopts the + UIScene lifecycle on iOS (google_sign_in_ios 6.3.0) and Swift Package + Manager (6.3.3). Fixes the deprecated application lifecycle warning + tracked in #673. + + - GoogleSignIn is now the shared instance and is initialized once + before the first sign-in. + - Authentication and authorization are separate steps. The provider + reuses an existing authorization for the requested scopes and prompts + for consent when one is not available, so the credential still + carries an access token when scopes are requested. + - A cancelled sign-in surfaces as AuthCancelledException, matching the + previous flow reset behaviour. + - Adds an optional serverClientId parameter to GoogleProvider, + GoogleSignInButton and GoogleSignInIconButton for Android apps that + do not use google-services.json. + - Updates the integration test mocks to the new API. + + + integration steps: GIDClientID in Info.plist on iOS, and on Android a + web OAuth client entry in google-services.json or an explicit + serverClientId. When no scopes are requested the credential now + contains only an ID token. + + * refactor(ui_oauth_google): simplify init and isolate it in tests + + Chain the retry-reset catchError directly onto initialize() instead of + threading an intermediate local, and add a @visibleForTesting + debugReset() that clears the static one-time-init future so each test + starts from a clean state with its freshly injected mock. + + Addresses review feedback on #689. + + * chore(ui_oauth_google): format provider.dart + + * fix(ui_oauth_google): preserve stack trace on init retry + + Use Error.throwWithStackTrace in the initialize() catchError so a failed initialization keeps its original stack trace instead of resetting it with a bare throw. + + - **BREAKING** **FEAT**(ui_oauth_twitter): replace twitter_login with signInWithProvider ([#697](https://github.com/firebase/FirebaseUI-Flutter/issues/697)). ([6290de49](https://github.com/firebase/FirebaseUI-Flutter/commit/6290de498144efc95d5bd98018a420c20f8777b5)) + + * feat(ui_oauth_twitter)!: replace twitter_login with signInWithProvider + + twitter_login has not published since July 2023 and ships an Android build.gradle with no namespace that pins AGP 4.1.0, which capped this repo at AGP 8.7.3 and blocked #693 from using flutter_web_auth_2. + + TwitterProvider now signs in through auth.signInWithProvider on Android and iOS, mirroring AppleProvider, so Firebase performs the OAuth dance and the Twitter API key and secret move out of the app binary into the Firebase console. macOS and Windows keep the vendored OAuth 1.0a flow, which is why apiKey and apiSecretKey survive as optional parameters rather than being removed. + + macOS stays on the desktop flow because signInWithProvider is not available to it: FLTFirebaseAuthPlugin.swift carves out Apple and Game Center, then fails every other provider under `#if os(macOS)` with unsupported-platform. Android has no equivalent restriction. + + - AuthAction.none throws UnsupportedError on Android and iOS, since signInWithProvider cannot return a credential without also creating a session. + - Anonymous users are upgraded with linkWithProvider so the anonymous uid survives sign in. + - A debug-only diagnostic warns once when apiKey or apiSecretKey are passed on a platform that now ignores them. + - Restores compileSdk to flutter.compileSdkVersion and bumps AGP to 8.9.1, now that nothing pins it. + + + + * fix(ui_oauth_twitter): report an error when linking without a signed in user + + AuthAction.link with no FirebaseAuth.currentUser null-shorted the linkWithProvider call, so the flow neither completed nor reported an error and the UI stayed in its loading state. The credential path this replaced raised through auth.currentUser!, so a null user was at least surfaced. + + Reports a FirebaseAuthException instead, which reaches AuthFailed rather than escaping as an unhandled Error the way a StateError would. + + * ci(e2e): correct stale version comment on the setup-gradle pin + + The pin comment claimed v6 while the pinned SHA is v6.2.0, and upstream has since moved the v6 tag to v6.3.0. zizmor flagged the mismatch as a medium severity finding, which blocks the workflow check. + + Corrects the comment rather than moving the pin, so the action version CI runs is unchanged. + + * docs(ui_oauth_twitter): document the signInWithProvider setup + + Rewrites the Twitter section around the flow Firebase now performs on Android and iOS: enable the provider in the console, point the X app callback URL at the Firebase auth handler, then add the encoded app ID URL scheme on iOS and the SHA-1 on Android. The twitter_login install step is gone, and the API key and secret move into their own macOS and Windows section, since those are the only platforms that still need them. + + Adds the encoded app ID scheme to the firebase_ui_auth example and drops the ffire:// redirect it passed for twitter_login, which no longer takes part in either flow. + + * fix(tests): bump the Gradle wrapper to 8.11.1 for AGP 8.9.1 + + AGP 8.9.1 requires Gradle 8.11.1 or later, and the tests app wrapper was on 8.10, so assembleDebug failed with a version-check error as soon as the AGP pin moved. + + Only the tests app is affected. The example apps keep their own lower AGP versions and wrappers. + + * chore(ui_oauth): format the twitter example button call + + * fix(ui_oauth_twitter): report auth failures instead of throwing Errors + + Independent review found that three of the new failure paths raised Error subtypes into the auth listener. defaultOnAuthError rethrows anything that is not a FirebaseAuthException, and both AuthFlow.onError and the button's handler catch only Exception, so those Errors escaped and left the flow in its loading state permanently. + + - AuthAction.none now reports a FirebaseAuthException rather than throwing UnsupportedError out of the tap handler. + - Missing OAuth 1.0a credentials are checked in desktopSignIn, before the base flow reads desktopSignInArgs synchronously, so the ArgumentError is no longer reachable from the UI. + - Empty strings count as missing credentials, since String.fromEnvironment yields an empty string and that is the documented way to supply them. The debug diagnostic no longer fires on them either. + - User cancellation is mapped back to a flow reset. The native SDKs report dismissal as a FirebaseAuthException, which was being rendered as a sign in failure where the previous flow reset silently. + - The linked credential is no longer force unwrapped, since it is nullable on every platform. + + Also makes the anonymous upgrade test pass AuthAction.signIn explicitly. The flow resolves to AuthAction.link whenever currentUser is non-null, so the test was passing without the shouldUpgradeAnonymous branch being consulted. + + * fix(ui_oauth_twitter): correct the diagnostic callback URL and two stale comments + + The debug diagnostic told developers to set their Twitter app callback URL to redirectUri when one was supplied, but the native flow on Android and iOS ignores redirectUri and always completes through the Firebase auth handler, so the advice guaranteed failure for exactly the consumers migrating from the custom scheme twitter_login needed. It now names the handler. The desktop flow still honours redirectUri, so its own use of it is unchanged. + + Also corrects the class doc, which listed Game Center alongside Apple as exempt from the macOS restriction. Game Center is rejected on every platform, for its own reason, so Apple is the only exception. And removes a comment in the example that lost its subject when the twitter_login dependency was deleted. + + * fix(ui_auth): navigate to the profile after a sign in that returns no email + + The example's sign in handler matched only emailVerified users and unverified users that have an email, so a user with neither matched no case and the screen stayed put after signing in successfully. Twitter only returns an email when the app asks for it, and such a user is never emailVerified, so Twitter sign in landed in that gap. + + The app's own initialRoute already treats those users as signed in via its catch all, so this brings the in flow navigation in line with what a relaunch does. + + * fix(ui_auth): stop EmailVerificationController crashing on resume when signed out + + reload() read auth.currentUser! and runs on every app resume, so resuming with no signed in user threw an unhandled TypeError rather than an Exception, which escapes the flow's error handling entirely. + + Cancelling an OAuth sign in is the easiest way to hit it: the provider takes the app to the background, cancelling brings it back, and currentUser is still null because the sign in never completed. Any app switch while signed out does the same, so this is not specific to a provider. + + The constructor already guards currentUser for null, so this brings reload() in line with the rest of the class rather than changing its contract. + + * chore(ui_oauth_twitter): wrap the diagnostic guard condition + + * docs(ui_oauth_twitter): expand the 2.x upgrade note with what testing found + + Device testing surfaced three things the original note could not have covered, because none of them is visible from the source. + + - Registering the Android SHA-1 is not sufficient on its own. The certificate hash is embedded in google-services.json at download time, so the file has to be re-downloaded afterwards. The note now carries the error string Firebase shows when either step is missed, since that is what consumers will actually search for. + - Firebase occasionally opens the full browser rather than a Chrome Custom Tab, and abandoning the flow there leaves the operation pending until the app restarts. Recorded as a known limitation, since nothing in the Dart layer can resolve a future the SDK never completes. + - Cancelling returns silently, which is worth stating because it is indistinguishable from nothing having happened. + + Also documents that redirectUri is ignored on Android and iOS, which was missing, and splits the section into what you must change, what behaviour changed, and the known limitation. + + +#### `firebase_ui_database` - `v3.0.0` + + - **BREAKING** **FEAT**: update FlutterFire dependencies and drop CocoaPods ([#731](https://github.com/firebase/FirebaseUI-Flutter/issues/731)). ([c95b0991](https://github.com/firebase/FirebaseUI-Flutter/commit/c95b0991fa350f420863ab603b0c220ba53f8699)) + + * feat!: update FlutterFire dependencies and drop CocoaPods + + Runs scripts/update_dependencies.dart, moving to firebase_core 5, firebase_auth 7, cloud_firestore 7, firebase_database 13 and firebase_storage 14 (Firebase Apple SDK 13, Android BoM 35). + + - Enable Swift Package Manager in every app pubspec and the workspace root. + - Remove CocoaPods from all iOS apps and the macOS apps that don't depend on facebook_auth_desktop. + - Raise example minimums to iOS 15, macOS 12 and Android minSdk 24. + - tests/android: Gradle 8.14.3 and AGP 8.11.1, the minimums for current Flutter stable. + + + + * ci: run iOS and macOS e2e on the xcode-27 runner + + firebase-ios-sdk 13 uses Swift tools 6.2, which the macos-15 image's Xcode can't read. Match FlutterFire's runner and simulator. Also opt the oauth example's macOS AppDelegate into secure state restoration like the other examples. + + --------- + + +#### `firebase_ui_firestore` - `v3.0.0` + + - **FIX**(ui_firestore): keep loaded pages while the next page is only in cache ([#709](https://github.com/firebase/FirebaseUI-Flutter/issues/709)). ([23506053](https://github.com/firebase/FirebaseUI-Flutter/commit/235060533968aea51be5f99ff256756e3326c4d5)) + - **BREAKING** **FEAT**: update FlutterFire dependencies and drop CocoaPods ([#731](https://github.com/firebase/FirebaseUI-Flutter/issues/731)). ([c95b0991](https://github.com/firebase/FirebaseUI-Flutter/commit/c95b0991fa350f420863ab603b0c220ba53f8699)) + + * feat!: update FlutterFire dependencies and drop CocoaPods + + Runs scripts/update_dependencies.dart, moving to firebase_core 5, firebase_auth 7, cloud_firestore 7, firebase_database 13 and firebase_storage 14 (Firebase Apple SDK 13, Android BoM 35). + + - Enable Swift Package Manager in every app pubspec and the workspace root. + - Remove CocoaPods from all iOS apps and the macOS apps that don't depend on facebook_auth_desktop. + - Raise example minimums to iOS 15, macOS 12 and Android minSdk 24. + - tests/android: Gradle 8.14.3 and AGP 8.11.1, the minimums for current Flutter stable. + + + + * ci: run iOS and macOS e2e on the xcode-27 runner + + firebase-ios-sdk 13 uses Swift tools 6.2, which the macos-15 image's Xcode can't read. Match FlutterFire's runner and simulator. Also opt the oauth example's macOS AppDelegate into secure state restoration like the other examples. + + --------- + + - **BREAKING** **FEAT**(ui_firestore): Expose index to FirestoreItemBuilder ([#497](https://github.com/firebase/FirebaseUI-Flutter/issues/497)). ([a0563b7e](https://github.com/firebase/FirebaseUI-Flutter/commit/a0563b7ee2643bf448f5cdf0d154e2793db36b01)) + + * Expose index to FirestoreItemBuilder + + Exposes itemBuilder index in FirestoreListView and FirestoreListView.separated to be consistent with flutter ListView.builder and ListView.separated. + + * Fix tests, doc, example + + * Bump cloud_firestore and firebase_core versions + + * Dependency updates, remove deprecated code + + * Fix conflicts + + * Update docs + + * Update query_builder.dart + + * Fix test formatting + + * Fix formatting + + --------- + + +#### `firebase_ui_localizations` - `v3.0.0` + + - **BREAKING** **FEAT**: update FlutterFire dependencies and drop CocoaPods ([#731](https://github.com/firebase/FirebaseUI-Flutter/issues/731)). ([c95b0991](https://github.com/firebase/FirebaseUI-Flutter/commit/c95b0991fa350f420863ab603b0c220ba53f8699)) + + * feat!: update FlutterFire dependencies and drop CocoaPods + + Runs scripts/update_dependencies.dart, moving to firebase_core 5, firebase_auth 7, cloud_firestore 7, firebase_database 13 and firebase_storage 14 (Firebase Apple SDK 13, Android BoM 35). + + - Enable Swift Package Manager in every app pubspec and the workspace root. + - Remove CocoaPods from all iOS apps and the macOS apps that don't depend on facebook_auth_desktop. + - Raise example minimums to iOS 15, macOS 12 and Android minSdk 24. + - tests/android: Gradle 8.14.3 and AGP 8.11.1, the minimums for current Flutter stable. + + + + * ci: run iOS and macOS e2e on the xcode-27 runner + + firebase-ios-sdk 13 uses Swift tools 6.2, which the macos-15 image's Xcode can't read. Match FlutterFire's runner and simulator. Also opt the oauth example's macOS AppDelegate into secure state restoration like the other examples. + + --------- + + - **BREAKING** **FEAT**(ui_auth): complete email link sign in after cold start and on other devices ([#710](https://github.com/firebase/FirebaseUI-Flutter/issues/710)). ([57b353e5](https://github.com/firebase/FirebaseUI-Flutter/commit/57b353e598d0e2527ec506a869ecffa97caae5fd)) + +#### `firebase_ui_oauth` - `v3.0.0` + + - **FIX**(ui_oauth): replace desktop_webview_auth with flutter_web_auth_2 ([#693](https://github.com/firebase/FirebaseUI-Flutter/issues/693)). ([eb0a2128](https://github.com/firebase/FirebaseUI-Flutter/commit/eb0a2128fe35823038efe9bf81fedec19b08357a)) + - **BREAKING** **FEAT**: update FlutterFire dependencies and drop CocoaPods ([#731](https://github.com/firebase/FirebaseUI-Flutter/issues/731)). ([c95b0991](https://github.com/firebase/FirebaseUI-Flutter/commit/c95b0991fa350f420863ab603b0c220ba53f8699)) + + * feat!: update FlutterFire dependencies and drop CocoaPods + + Runs scripts/update_dependencies.dart, moving to firebase_core 5, firebase_auth 7, cloud_firestore 7, firebase_database 13 and firebase_storage 14 (Firebase Apple SDK 13, Android BoM 35). + + - Enable Swift Package Manager in every app pubspec and the workspace root. + - Remove CocoaPods from all iOS apps and the macOS apps that don't depend on facebook_auth_desktop. + - Raise example minimums to iOS 15, macOS 12 and Android minSdk 24. + - tests/android: Gradle 8.14.3 and AGP 8.11.1, the minimums for current Flutter stable. + + + + * ci: run iOS and macOS e2e on the xcode-27 runner + + firebase-ios-sdk 13 uses Swift tools 6.2, which the macos-15 image's Xcode can't read. Match FlutterFire's runner and simulator. Also opt the oauth example's macOS AppDelegate into secure state restoration like the other examples. + + --------- + + - **BREAKING** **FEAT**(ui_oauth_twitter): replace twitter_login with signInWithProvider ([#697](https://github.com/firebase/FirebaseUI-Flutter/issues/697)). ([6290de49](https://github.com/firebase/FirebaseUI-Flutter/commit/6290de498144efc95d5bd98018a420c20f8777b5)) + + * feat(ui_oauth_twitter)!: replace twitter_login with signInWithProvider + + twitter_login has not published since July 2023 and ships an Android build.gradle with no namespace that pins AGP 4.1.0, which capped this repo at AGP 8.7.3 and blocked #693 from using flutter_web_auth_2. + + TwitterProvider now signs in through auth.signInWithProvider on Android and iOS, mirroring AppleProvider, so Firebase performs the OAuth dance and the Twitter API key and secret move out of the app binary into the Firebase console. macOS and Windows keep the vendored OAuth 1.0a flow, which is why apiKey and apiSecretKey survive as optional parameters rather than being removed. + + macOS stays on the desktop flow because signInWithProvider is not available to it: FLTFirebaseAuthPlugin.swift carves out Apple and Game Center, then fails every other provider under `#if os(macOS)` with unsupported-platform. Android has no equivalent restriction. + + - AuthAction.none throws UnsupportedError on Android and iOS, since signInWithProvider cannot return a credential without also creating a session. + - Anonymous users are upgraded with linkWithProvider so the anonymous uid survives sign in. + - A debug-only diagnostic warns once when apiKey or apiSecretKey are passed on a platform that now ignores them. + - Restores compileSdk to flutter.compileSdkVersion and bumps AGP to 8.9.1, now that nothing pins it. + + + + * fix(ui_oauth_twitter): report an error when linking without a signed in user + + AuthAction.link with no FirebaseAuth.currentUser null-shorted the linkWithProvider call, so the flow neither completed nor reported an error and the UI stayed in its loading state. The credential path this replaced raised through auth.currentUser!, so a null user was at least surfaced. + + Reports a FirebaseAuthException instead, which reaches AuthFailed rather than escaping as an unhandled Error the way a StateError would. + + * ci(e2e): correct stale version comment on the setup-gradle pin + + The pin comment claimed v6 while the pinned SHA is v6.2.0, and upstream has since moved the v6 tag to v6.3.0. zizmor flagged the mismatch as a medium severity finding, which blocks the workflow check. + + Corrects the comment rather than moving the pin, so the action version CI runs is unchanged. + + * docs(ui_oauth_twitter): document the signInWithProvider setup + + Rewrites the Twitter section around the flow Firebase now performs on Android and iOS: enable the provider in the console, point the X app callback URL at the Firebase auth handler, then add the encoded app ID URL scheme on iOS and the SHA-1 on Android. The twitter_login install step is gone, and the API key and secret move into their own macOS and Windows section, since those are the only platforms that still need them. + + Adds the encoded app ID scheme to the firebase_ui_auth example and drops the ffire:// redirect it passed for twitter_login, which no longer takes part in either flow. + + * fix(tests): bump the Gradle wrapper to 8.11.1 for AGP 8.9.1 + + AGP 8.9.1 requires Gradle 8.11.1 or later, and the tests app wrapper was on 8.10, so assembleDebug failed with a version-check error as soon as the AGP pin moved. + + Only the tests app is affected. The example apps keep their own lower AGP versions and wrappers. + + * chore(ui_oauth): format the twitter example button call + + * fix(ui_oauth_twitter): report auth failures instead of throwing Errors + + Independent review found that three of the new failure paths raised Error subtypes into the auth listener. defaultOnAuthError rethrows anything that is not a FirebaseAuthException, and both AuthFlow.onError and the button's handler catch only Exception, so those Errors escaped and left the flow in its loading state permanently. + + - AuthAction.none now reports a FirebaseAuthException rather than throwing UnsupportedError out of the tap handler. + - Missing OAuth 1.0a credentials are checked in desktopSignIn, before the base flow reads desktopSignInArgs synchronously, so the ArgumentError is no longer reachable from the UI. + - Empty strings count as missing credentials, since String.fromEnvironment yields an empty string and that is the documented way to supply them. The debug diagnostic no longer fires on them either. + - User cancellation is mapped back to a flow reset. The native SDKs report dismissal as a FirebaseAuthException, which was being rendered as a sign in failure where the previous flow reset silently. + - The linked credential is no longer force unwrapped, since it is nullable on every platform. + + Also makes the anonymous upgrade test pass AuthAction.signIn explicitly. The flow resolves to AuthAction.link whenever currentUser is non-null, so the test was passing without the shouldUpgradeAnonymous branch being consulted. + + * fix(ui_oauth_twitter): correct the diagnostic callback URL and two stale comments + + The debug diagnostic told developers to set their Twitter app callback URL to redirectUri when one was supplied, but the native flow on Android and iOS ignores redirectUri and always completes through the Firebase auth handler, so the advice guaranteed failure for exactly the consumers migrating from the custom scheme twitter_login needed. It now names the handler. The desktop flow still honours redirectUri, so its own use of it is unchanged. + + Also corrects the class doc, which listed Game Center alongside Apple as exempt from the macOS restriction. Game Center is rejected on every platform, for its own reason, so Apple is the only exception. And removes a comment in the example that lost its subject when the twitter_login dependency was deleted. + + * fix(ui_auth): navigate to the profile after a sign in that returns no email + + The example's sign in handler matched only emailVerified users and unverified users that have an email, so a user with neither matched no case and the screen stayed put after signing in successfully. Twitter only returns an email when the app asks for it, and such a user is never emailVerified, so Twitter sign in landed in that gap. + + The app's own initialRoute already treats those users as signed in via its catch all, so this brings the in flow navigation in line with what a relaunch does. + + * fix(ui_auth): stop EmailVerificationController crashing on resume when signed out + + reload() read auth.currentUser! and runs on every app resume, so resuming with no signed in user threw an unhandled TypeError rather than an Exception, which escapes the flow's error handling entirely. + + Cancelling an OAuth sign in is the easiest way to hit it: the provider takes the app to the background, cancelling brings it back, and currentUser is still null because the sign in never completed. Any app switch while signed out does the same, so this is not specific to a provider. + + The constructor already guards currentUser for null, so this brings reload() in line with the rest of the class rather than changing its contract. + + * chore(ui_oauth_twitter): wrap the diagnostic guard condition + + * docs(ui_oauth_twitter): expand the 2.x upgrade note with what testing found + + Device testing surfaced three things the original note could not have covered, because none of them is visible from the source. + + - Registering the Android SHA-1 is not sufficient on its own. The certificate hash is embedded in google-services.json at download time, so the file has to be re-downloaded afterwards. The note now carries the error string Firebase shows when either step is missed, since that is what consumers will actually search for. + - Firebase occasionally opens the full browser rather than a Chrome Custom Tab, and abandoning the flow there leaves the operation pending until the app restarts. Recorded as a known limitation, since nothing in the Dart layer can resolve a future the SDK never completes. + - Cancelling returns silently, which is worth stating because it is indistinguishable from nothing having happened. + + Also documents that redirectUri is ignored on Android and iOS, which was missing, and splits the section into what you must change, what behaviour changed, and the known limitation. + + +#### `firebase_ui_oauth_apple` - `v3.0.0` + + - **FIX**(ui_oauth_apple): upgrade anonymous users by linking the Apple credential ([#730](https://github.com/firebase/FirebaseUI-Flutter/issues/730)). ([c7bcd11b](https://github.com/firebase/FirebaseUI-Flutter/commit/c7bcd11bbc81c1281480465b625540e8d443b402)) + - **BREAKING** **FEAT**: update FlutterFire dependencies and drop CocoaPods ([#731](https://github.com/firebase/FirebaseUI-Flutter/issues/731)). ([c95b0991](https://github.com/firebase/FirebaseUI-Flutter/commit/c95b0991fa350f420863ab603b0c220ba53f8699)) + + * feat!: update FlutterFire dependencies and drop CocoaPods + + Runs scripts/update_dependencies.dart, moving to firebase_core 5, firebase_auth 7, cloud_firestore 7, firebase_database 13 and firebase_storage 14 (Firebase Apple SDK 13, Android BoM 35). + + - Enable Swift Package Manager in every app pubspec and the workspace root. + - Remove CocoaPods from all iOS apps and the macOS apps that don't depend on facebook_auth_desktop. + - Raise example minimums to iOS 15, macOS 12 and Android minSdk 24. + - tests/android: Gradle 8.14.3 and AGP 8.11.1, the minimums for current Flutter stable. + + + + * ci: run iOS and macOS e2e on the xcode-27 runner + + firebase-ios-sdk 13 uses Swift tools 6.2, which the macos-15 image's Xcode can't read. Match FlutterFire's runner and simulator. Also opt the oauth example's macOS AppDelegate into secure state restoration like the other examples. + + --------- + + +#### `firebase_ui_oauth_facebook` - `v3.0.0` + + - **BREAKING** **FEAT**: update FlutterFire dependencies and drop CocoaPods ([#731](https://github.com/firebase/FirebaseUI-Flutter/issues/731)). ([c95b0991](https://github.com/firebase/FirebaseUI-Flutter/commit/c95b0991fa350f420863ab603b0c220ba53f8699)) + + * feat!: update FlutterFire dependencies and drop CocoaPods + + Runs scripts/update_dependencies.dart, moving to firebase_core 5, firebase_auth 7, cloud_firestore 7, firebase_database 13 and firebase_storage 14 (Firebase Apple SDK 13, Android BoM 35). + + - Enable Swift Package Manager in every app pubspec and the workspace root. + - Remove CocoaPods from all iOS apps and the macOS apps that don't depend on facebook_auth_desktop. + - Raise example minimums to iOS 15, macOS 12 and Android minSdk 24. + - tests/android: Gradle 8.14.3 and AGP 8.11.1, the minimums for current Flutter stable. + + + + * ci: run iOS and macOS e2e on the xcode-27 runner + + firebase-ios-sdk 13 uses Swift tools 6.2, which the macos-15 image's Xcode can't read. Match FlutterFire's runner and simulator. Also opt the oauth example's macOS AppDelegate into secure state restoration like the other examples. + + --------- + + +#### `firebase_ui_oauth_google` - `v3.0.0` + + - **BREAKING** **FEAT**: update FlutterFire dependencies and drop CocoaPods ([#731](https://github.com/firebase/FirebaseUI-Flutter/issues/731)). ([c95b0991](https://github.com/firebase/FirebaseUI-Flutter/commit/c95b0991fa350f420863ab603b0c220ba53f8699)) + + * feat!: update FlutterFire dependencies and drop CocoaPods + + Runs scripts/update_dependencies.dart, moving to firebase_core 5, firebase_auth 7, cloud_firestore 7, firebase_database 13 and firebase_storage 14 (Firebase Apple SDK 13, Android BoM 35). + + - Enable Swift Package Manager in every app pubspec and the workspace root. + - Remove CocoaPods from all iOS apps and the macOS apps that don't depend on facebook_auth_desktop. + - Raise example minimums to iOS 15, macOS 12 and Android minSdk 24. + - tests/android: Gradle 8.14.3 and AGP 8.11.1, the minimums for current Flutter stable. + + + + * ci: run iOS and macOS e2e on the xcode-27 runner + + firebase-ios-sdk 13 uses Swift tools 6.2, which the macos-15 image's Xcode can't read. Match FlutterFire's runner and simulator. Also opt the oauth example's macOS AppDelegate into secure state restoration like the other examples. + + --------- + + - **BREAKING** **FEAT**(ui_oauth_google): migrate to google_sign_in 7 ([#700](https://github.com/firebase/FirebaseUI-Flutter/issues/700)). ([7fd741c9](https://github.com/firebase/FirebaseUI-Flutter/commit/7fd741c9bb4db30a0525f24b1cdbc003d320228c)) + + * feat(ui_oauth_google)!: migrate to google_sign_in 7 + + Migrates GoogleProvider to the google_sign_in 7 API, which adopts the + UIScene lifecycle on iOS (google_sign_in_ios 6.3.0) and Swift Package + Manager (6.3.3). Fixes the deprecated application lifecycle warning + tracked in #673. + + - GoogleSignIn is now the shared instance and is initialized once + before the first sign-in. + - Authentication and authorization are separate steps. The provider + reuses an existing authorization for the requested scopes and prompts + for consent when one is not available, so the credential still + carries an access token when scopes are requested. + - A cancelled sign-in surfaces as AuthCancelledException, matching the + previous flow reset behaviour. + - Adds an optional serverClientId parameter to GoogleProvider, + GoogleSignInButton and GoogleSignInIconButton for Android apps that + do not use google-services.json. + - Updates the integration test mocks to the new API. + + + integration steps: GIDClientID in Info.plist on iOS, and on Android a + web OAuth client entry in google-services.json or an explicit + serverClientId. When no scopes are requested the credential now + contains only an ID token. + + * refactor(ui_oauth_google): simplify init and isolate it in tests + + Chain the retry-reset catchError directly onto initialize() instead of + threading an intermediate local, and add a @visibleForTesting + debugReset() that clears the static one-time-init future so each test + starts from a clean state with its freshly injected mock. + + Addresses review feedback on #689. + + * chore(ui_oauth_google): format provider.dart + + * fix(ui_oauth_google): preserve stack trace on init retry + + Use Error.throwWithStackTrace in the initialize() catchError so a failed initialization keeps its original stack trace instead of resetting it with a bare throw. + + +#### `firebase_ui_oauth_twitter` - `v3.0.0` + + - **BREAKING** **FEAT**: update FlutterFire dependencies and drop CocoaPods ([#731](https://github.com/firebase/FirebaseUI-Flutter/issues/731)). ([c95b0991](https://github.com/firebase/FirebaseUI-Flutter/commit/c95b0991fa350f420863ab603b0c220ba53f8699)) + + * feat!: update FlutterFire dependencies and drop CocoaPods + + Runs scripts/update_dependencies.dart, moving to firebase_core 5, firebase_auth 7, cloud_firestore 7, firebase_database 13 and firebase_storage 14 (Firebase Apple SDK 13, Android BoM 35). + + - Enable Swift Package Manager in every app pubspec and the workspace root. + - Remove CocoaPods from all iOS apps and the macOS apps that don't depend on facebook_auth_desktop. + - Raise example minimums to iOS 15, macOS 12 and Android minSdk 24. + - tests/android: Gradle 8.14.3 and AGP 8.11.1, the minimums for current Flutter stable. + + + + * ci: run iOS and macOS e2e on the xcode-27 runner + + firebase-ios-sdk 13 uses Swift tools 6.2, which the macos-15 image's Xcode can't read. Match FlutterFire's runner and simulator. Also opt the oauth example's macOS AppDelegate into secure state restoration like the other examples. + + --------- + + - **BREAKING** **FEAT**(ui_oauth_twitter): replace twitter_login with signInWithProvider ([#697](https://github.com/firebase/FirebaseUI-Flutter/issues/697)). ([6290de49](https://github.com/firebase/FirebaseUI-Flutter/commit/6290de498144efc95d5bd98018a420c20f8777b5)) + + * feat(ui_oauth_twitter)!: replace twitter_login with signInWithProvider + + twitter_login has not published since July 2023 and ships an Android build.gradle with no namespace that pins AGP 4.1.0, which capped this repo at AGP 8.7.3 and blocked #693 from using flutter_web_auth_2. + + TwitterProvider now signs in through auth.signInWithProvider on Android and iOS, mirroring AppleProvider, so Firebase performs the OAuth dance and the Twitter API key and secret move out of the app binary into the Firebase console. macOS and Windows keep the vendored OAuth 1.0a flow, which is why apiKey and apiSecretKey survive as optional parameters rather than being removed. + + macOS stays on the desktop flow because signInWithProvider is not available to it: FLTFirebaseAuthPlugin.swift carves out Apple and Game Center, then fails every other provider under `#if os(macOS)` with unsupported-platform. Android has no equivalent restriction. + + - AuthAction.none throws UnsupportedError on Android and iOS, since signInWithProvider cannot return a credential without also creating a session. + - Anonymous users are upgraded with linkWithProvider so the anonymous uid survives sign in. + - A debug-only diagnostic warns once when apiKey or apiSecretKey are passed on a platform that now ignores them. + - Restores compileSdk to flutter.compileSdkVersion and bumps AGP to 8.9.1, now that nothing pins it. + + + + * fix(ui_oauth_twitter): report an error when linking without a signed in user + + AuthAction.link with no FirebaseAuth.currentUser null-shorted the linkWithProvider call, so the flow neither completed nor reported an error and the UI stayed in its loading state. The credential path this replaced raised through auth.currentUser!, so a null user was at least surfaced. + + Reports a FirebaseAuthException instead, which reaches AuthFailed rather than escaping as an unhandled Error the way a StateError would. + + * ci(e2e): correct stale version comment on the setup-gradle pin + + The pin comment claimed v6 while the pinned SHA is v6.2.0, and upstream has since moved the v6 tag to v6.3.0. zizmor flagged the mismatch as a medium severity finding, which blocks the workflow check. + + Corrects the comment rather than moving the pin, so the action version CI runs is unchanged. + + * docs(ui_oauth_twitter): document the signInWithProvider setup + + Rewrites the Twitter section around the flow Firebase now performs on Android and iOS: enable the provider in the console, point the X app callback URL at the Firebase auth handler, then add the encoded app ID URL scheme on iOS and the SHA-1 on Android. The twitter_login install step is gone, and the API key and secret move into their own macOS and Windows section, since those are the only platforms that still need them. + + Adds the encoded app ID scheme to the firebase_ui_auth example and drops the ffire:// redirect it passed for twitter_login, which no longer takes part in either flow. + + * fix(tests): bump the Gradle wrapper to 8.11.1 for AGP 8.9.1 + + AGP 8.9.1 requires Gradle 8.11.1 or later, and the tests app wrapper was on 8.10, so assembleDebug failed with a version-check error as soon as the AGP pin moved. + + Only the tests app is affected. The example apps keep their own lower AGP versions and wrappers. + + * chore(ui_oauth): format the twitter example button call + + * fix(ui_oauth_twitter): report auth failures instead of throwing Errors + + Independent review found that three of the new failure paths raised Error subtypes into the auth listener. defaultOnAuthError rethrows anything that is not a FirebaseAuthException, and both AuthFlow.onError and the button's handler catch only Exception, so those Errors escaped and left the flow in its loading state permanently. + + - AuthAction.none now reports a FirebaseAuthException rather than throwing UnsupportedError out of the tap handler. + - Missing OAuth 1.0a credentials are checked in desktopSignIn, before the base flow reads desktopSignInArgs synchronously, so the ArgumentError is no longer reachable from the UI. + - Empty strings count as missing credentials, since String.fromEnvironment yields an empty string and that is the documented way to supply them. The debug diagnostic no longer fires on them either. + - User cancellation is mapped back to a flow reset. The native SDKs report dismissal as a FirebaseAuthException, which was being rendered as a sign in failure where the previous flow reset silently. + - The linked credential is no longer force unwrapped, since it is nullable on every platform. + + Also makes the anonymous upgrade test pass AuthAction.signIn explicitly. The flow resolves to AuthAction.link whenever currentUser is non-null, so the test was passing without the shouldUpgradeAnonymous branch being consulted. + + * fix(ui_oauth_twitter): correct the diagnostic callback URL and two stale comments + + The debug diagnostic told developers to set their Twitter app callback URL to redirectUri when one was supplied, but the native flow on Android and iOS ignores redirectUri and always completes through the Firebase auth handler, so the advice guaranteed failure for exactly the consumers migrating from the custom scheme twitter_login needed. It now names the handler. The desktop flow still honours redirectUri, so its own use of it is unchanged. + + Also corrects the class doc, which listed Game Center alongside Apple as exempt from the macOS restriction. Game Center is rejected on every platform, for its own reason, so Apple is the only exception. And removes a comment in the example that lost its subject when the twitter_login dependency was deleted. + + * fix(ui_auth): navigate to the profile after a sign in that returns no email + + The example's sign in handler matched only emailVerified users and unverified users that have an email, so a user with neither matched no case and the screen stayed put after signing in successfully. Twitter only returns an email when the app asks for it, and such a user is never emailVerified, so Twitter sign in landed in that gap. + + The app's own initialRoute already treats those users as signed in via its catch all, so this brings the in flow navigation in line with what a relaunch does. + + * fix(ui_auth): stop EmailVerificationController crashing on resume when signed out + + reload() read auth.currentUser! and runs on every app resume, so resuming with no signed in user threw an unhandled TypeError rather than an Exception, which escapes the flow's error handling entirely. + + Cancelling an OAuth sign in is the easiest way to hit it: the provider takes the app to the background, cancelling brings it back, and currentUser is still null because the sign in never completed. Any app switch while signed out does the same, so this is not specific to a provider. + + The constructor already guards currentUser for null, so this brings reload() in line with the rest of the class rather than changing its contract. + + * chore(ui_oauth_twitter): wrap the diagnostic guard condition + + * docs(ui_oauth_twitter): expand the 2.x upgrade note with what testing found + + Device testing surfaced three things the original note could not have covered, because none of them is visible from the source. + + - Registering the Android SHA-1 is not sufficient on its own. The certificate hash is embedded in google-services.json at download time, so the file has to be re-downloaded afterwards. The note now carries the error string Firebase shows when either step is missed, since that is what consumers will actually search for. + - Firebase occasionally opens the full browser rather than a Chrome Custom Tab, and abandoning the flow there leaves the operation pending until the app restarts. Recorded as a known limitation, since nothing in the Dart layer can resolve a future the SDK never completes. + - Cancelling returns silently, which is worth stating because it is indistinguishable from nothing having happened. + + Also documents that redirectUri is ignored on Android and iOS, which was missing, and splits the section into what you must change, what behaviour changed, and the known limitation. + + +#### `firebase_ui_storage` - `v4.0.0` + + - **BREAKING** **FEAT**: update FlutterFire dependencies and drop CocoaPods ([#731](https://github.com/firebase/FirebaseUI-Flutter/issues/731)). ([c95b0991](https://github.com/firebase/FirebaseUI-Flutter/commit/c95b0991fa350f420863ab603b0c220ba53f8699)) + + * feat!: update FlutterFire dependencies and drop CocoaPods + + Runs scripts/update_dependencies.dart, moving to firebase_core 5, firebase_auth 7, cloud_firestore 7, firebase_database 13 and firebase_storage 14 (Firebase Apple SDK 13, Android BoM 35). + + - Enable Swift Package Manager in every app pubspec and the workspace root. + - Remove CocoaPods from all iOS apps and the macOS apps that don't depend on facebook_auth_desktop. + - Raise example minimums to iOS 15, macOS 12 and Android minSdk 24. + - tests/android: Gradle 8.14.3 and AGP 8.11.1, the minimums for current Flutter stable. + + + + * ci: run iOS and macOS e2e on the xcode-27 runner + + firebase-ios-sdk 13 uses Swift tools 6.2, which the macos-15 image's Xcode can't read. Match FlutterFire's runner and simulator. Also opt the oauth example's macOS AppDelegate into secure state restoration like the other examples. + + --------- + + + ## 2026-09-15 ### Changes diff --git a/packages/firebase_ui_auth/CHANGELOG.md b/packages/firebase_ui_auth/CHANGELOG.md index 3273ddfe..0a7770b9 100644 --- a/packages/firebase_ui_auth/CHANGELOG.md +++ b/packages/firebase_ui_auth/CHANGELOG.md @@ -1,3 +1,161 @@ +## 4.0.0 + +> Note: This release has breaking changes. + + - **FIX**(firebase_ui_auth): Catch sms code validation ([#482](https://github.com/firebase/FirebaseUI-Flutter/issues/482)). ([687a9bad](https://github.com/firebase/FirebaseUI-Flutter/commit/687a9bad5fd2ad6d2c279f0676c2a54678cd4b56)) + - **FIX**(ui_auth): widen app_links constraint to allow 7.x ([#676](https://github.com/firebase/FirebaseUI-Flutter/issues/676)). ([235b4071](https://github.com/firebase/FirebaseUI-Flutter/commit/235b4071cd62edcf35ac0503900060edab1c0474)) + - **FEAT**: migrate to Swift Package Manager and drop the Firestore fork ([#699](https://github.com/firebase/FirebaseUI-Flutter/issues/699)). ([73b2c453](https://github.com/firebase/FirebaseUI-Flutter/commit/73b2c45384ccf2de4a9ca9cfc0590648fe9e91d2)) + - **BREAKING** **FEAT**: update FlutterFire dependencies and drop CocoaPods ([#731](https://github.com/firebase/FirebaseUI-Flutter/issues/731)). ([c95b0991](https://github.com/firebase/FirebaseUI-Flutter/commit/c95b0991fa350f420863ab603b0c220ba53f8699)) + + * feat!: update FlutterFire dependencies and drop CocoaPods + + Runs scripts/update_dependencies.dart, moving to firebase_core 5, firebase_auth 7, cloud_firestore 7, firebase_database 13 and firebase_storage 14 (Firebase Apple SDK 13, Android BoM 35). + + - Enable Swift Package Manager in every app pubspec and the workspace root. + - Remove CocoaPods from all iOS apps and the macOS apps that don't depend on facebook_auth_desktop. + - Raise example minimums to iOS 15, macOS 12 and Android minSdk 24. + - tests/android: Gradle 8.14.3 and AGP 8.11.1, the minimums for current Flutter stable. + + + + * ci: run iOS and macOS e2e on the xcode-27 runner + + firebase-ios-sdk 13 uses Swift tools 6.2, which the macos-15 image's Xcode can't read. Match FlutterFire's runner and simulator. Also opt the oauth example's macOS AppDelegate into secure state restoration like the other examples. + + --------- + + - **BREAKING** **FEAT**(ui_auth): complete email link sign in after cold start and on other devices ([#710](https://github.com/firebase/FirebaseUI-Flutter/issues/710)). ([57b353e5](https://github.com/firebase/FirebaseUI-Flutter/commit/57b353e598d0e2527ec506a869ecffa97caae5fd)) + - **BREAKING** **FEAT**(ui_oauth_google): migrate to google_sign_in 7 ([#700](https://github.com/firebase/FirebaseUI-Flutter/issues/700)). ([7fd741c9](https://github.com/firebase/FirebaseUI-Flutter/commit/7fd741c9bb4db30a0525f24b1cdbc003d320228c)) + + * feat(ui_oauth_google)!: migrate to google_sign_in 7 + + Migrates GoogleProvider to the google_sign_in 7 API, which adopts the + UIScene lifecycle on iOS (google_sign_in_ios 6.3.0) and Swift Package + Manager (6.3.3). Fixes the deprecated application lifecycle warning + tracked in #673. + + - GoogleSignIn is now the shared instance and is initialized once + before the first sign-in. + - Authentication and authorization are separate steps. The provider + reuses an existing authorization for the requested scopes and prompts + for consent when one is not available, so the credential still + carries an access token when scopes are requested. + - A cancelled sign-in surfaces as AuthCancelledException, matching the + previous flow reset behaviour. + - Adds an optional serverClientId parameter to GoogleProvider, + GoogleSignInButton and GoogleSignInIconButton for Android apps that + do not use google-services.json. + - Updates the integration test mocks to the new API. + + + integration steps: GIDClientID in Info.plist on iOS, and on Android a + web OAuth client entry in google-services.json or an explicit + serverClientId. When no scopes are requested the credential now + contains only an ID token. + + * refactor(ui_oauth_google): simplify init and isolate it in tests + + Chain the retry-reset catchError directly onto initialize() instead of + threading an intermediate local, and add a @visibleForTesting + debugReset() that clears the static one-time-init future so each test + starts from a clean state with its freshly injected mock. + + Addresses review feedback on #689. + + * chore(ui_oauth_google): format provider.dart + + * fix(ui_oauth_google): preserve stack trace on init retry + + Use Error.throwWithStackTrace in the initialize() catchError so a failed initialization keeps its original stack trace instead of resetting it with a bare throw. + + - **BREAKING** **FEAT**(ui_oauth_twitter): replace twitter_login with signInWithProvider ([#697](https://github.com/firebase/FirebaseUI-Flutter/issues/697)). ([6290de49](https://github.com/firebase/FirebaseUI-Flutter/commit/6290de498144efc95d5bd98018a420c20f8777b5)) + + * feat(ui_oauth_twitter)!: replace twitter_login with signInWithProvider + + twitter_login has not published since July 2023 and ships an Android build.gradle with no namespace that pins AGP 4.1.0, which capped this repo at AGP 8.7.3 and blocked #693 from using flutter_web_auth_2. + + TwitterProvider now signs in through auth.signInWithProvider on Android and iOS, mirroring AppleProvider, so Firebase performs the OAuth dance and the Twitter API key and secret move out of the app binary into the Firebase console. macOS and Windows keep the vendored OAuth 1.0a flow, which is why apiKey and apiSecretKey survive as optional parameters rather than being removed. + + macOS stays on the desktop flow because signInWithProvider is not available to it: FLTFirebaseAuthPlugin.swift carves out Apple and Game Center, then fails every other provider under `#if os(macOS)` with unsupported-platform. Android has no equivalent restriction. + + - AuthAction.none throws UnsupportedError on Android and iOS, since signInWithProvider cannot return a credential without also creating a session. + - Anonymous users are upgraded with linkWithProvider so the anonymous uid survives sign in. + - A debug-only diagnostic warns once when apiKey or apiSecretKey are passed on a platform that now ignores them. + - Restores compileSdk to flutter.compileSdkVersion and bumps AGP to 8.9.1, now that nothing pins it. + + + + * fix(ui_oauth_twitter): report an error when linking without a signed in user + + AuthAction.link with no FirebaseAuth.currentUser null-shorted the linkWithProvider call, so the flow neither completed nor reported an error and the UI stayed in its loading state. The credential path this replaced raised through auth.currentUser!, so a null user was at least surfaced. + + Reports a FirebaseAuthException instead, which reaches AuthFailed rather than escaping as an unhandled Error the way a StateError would. + + * ci(e2e): correct stale version comment on the setup-gradle pin + + The pin comment claimed v6 while the pinned SHA is v6.2.0, and upstream has since moved the v6 tag to v6.3.0. zizmor flagged the mismatch as a medium severity finding, which blocks the workflow check. + + Corrects the comment rather than moving the pin, so the action version CI runs is unchanged. + + * docs(ui_oauth_twitter): document the signInWithProvider setup + + Rewrites the Twitter section around the flow Firebase now performs on Android and iOS: enable the provider in the console, point the X app callback URL at the Firebase auth handler, then add the encoded app ID URL scheme on iOS and the SHA-1 on Android. The twitter_login install step is gone, and the API key and secret move into their own macOS and Windows section, since those are the only platforms that still need them. + + Adds the encoded app ID scheme to the firebase_ui_auth example and drops the ffire:// redirect it passed for twitter_login, which no longer takes part in either flow. + + * fix(tests): bump the Gradle wrapper to 8.11.1 for AGP 8.9.1 + + AGP 8.9.1 requires Gradle 8.11.1 or later, and the tests app wrapper was on 8.10, so assembleDebug failed with a version-check error as soon as the AGP pin moved. + + Only the tests app is affected. The example apps keep their own lower AGP versions and wrappers. + + * chore(ui_oauth): format the twitter example button call + + * fix(ui_oauth_twitter): report auth failures instead of throwing Errors + + Independent review found that three of the new failure paths raised Error subtypes into the auth listener. defaultOnAuthError rethrows anything that is not a FirebaseAuthException, and both AuthFlow.onError and the button's handler catch only Exception, so those Errors escaped and left the flow in its loading state permanently. + + - AuthAction.none now reports a FirebaseAuthException rather than throwing UnsupportedError out of the tap handler. + - Missing OAuth 1.0a credentials are checked in desktopSignIn, before the base flow reads desktopSignInArgs synchronously, so the ArgumentError is no longer reachable from the UI. + - Empty strings count as missing credentials, since String.fromEnvironment yields an empty string and that is the documented way to supply them. The debug diagnostic no longer fires on them either. + - User cancellation is mapped back to a flow reset. The native SDKs report dismissal as a FirebaseAuthException, which was being rendered as a sign in failure where the previous flow reset silently. + - The linked credential is no longer force unwrapped, since it is nullable on every platform. + + Also makes the anonymous upgrade test pass AuthAction.signIn explicitly. The flow resolves to AuthAction.link whenever currentUser is non-null, so the test was passing without the shouldUpgradeAnonymous branch being consulted. + + * fix(ui_oauth_twitter): correct the diagnostic callback URL and two stale comments + + The debug diagnostic told developers to set their Twitter app callback URL to redirectUri when one was supplied, but the native flow on Android and iOS ignores redirectUri and always completes through the Firebase auth handler, so the advice guaranteed failure for exactly the consumers migrating from the custom scheme twitter_login needed. It now names the handler. The desktop flow still honours redirectUri, so its own use of it is unchanged. + + Also corrects the class doc, which listed Game Center alongside Apple as exempt from the macOS restriction. Game Center is rejected on every platform, for its own reason, so Apple is the only exception. And removes a comment in the example that lost its subject when the twitter_login dependency was deleted. + + * fix(ui_auth): navigate to the profile after a sign in that returns no email + + The example's sign in handler matched only emailVerified users and unverified users that have an email, so a user with neither matched no case and the screen stayed put after signing in successfully. Twitter only returns an email when the app asks for it, and such a user is never emailVerified, so Twitter sign in landed in that gap. + + The app's own initialRoute already treats those users as signed in via its catch all, so this brings the in flow navigation in line with what a relaunch does. + + * fix(ui_auth): stop EmailVerificationController crashing on resume when signed out + + reload() read auth.currentUser! and runs on every app resume, so resuming with no signed in user threw an unhandled TypeError rather than an Exception, which escapes the flow's error handling entirely. + + Cancelling an OAuth sign in is the easiest way to hit it: the provider takes the app to the background, cancelling brings it back, and currentUser is still null because the sign in never completed. Any app switch while signed out does the same, so this is not specific to a provider. + + The constructor already guards currentUser for null, so this brings reload() in line with the rest of the class rather than changing its contract. + + * chore(ui_oauth_twitter): wrap the diagnostic guard condition + + * docs(ui_oauth_twitter): expand the 2.x upgrade note with what testing found + + Device testing surfaced three things the original note could not have covered, because none of them is visible from the source. + + - Registering the Android SHA-1 is not sufficient on its own. The certificate hash is embedded in google-services.json at download time, so the file has to be re-downloaded afterwards. The note now carries the error string Firebase shows when either step is missed, since that is what consumers will actually search for. + - Firebase occasionally opens the full browser rather than a Chrome Custom Tab, and abandoning the flow there leaves the operation pending until the app restarts. Recorded as a known limitation, since nothing in the Dart layer can resolve a future the SDK never completes. + - Cancelling returns silently, which is worth stating because it is indistinguishable from nothing having happened. + + Also documents that redirectUri is ignored on Android and iOS, which was missing, and splits the section into what you must change, what behaviour changed, and the known limitation. + + ## 3.1.1 - Update a dependency to the latest release. diff --git a/packages/firebase_ui_auth/example/pubspec.yaml b/packages/firebase_ui_auth/example/pubspec.yaml index 63df8c2e..2d0be119 100644 --- a/packages/firebase_ui_auth/example/pubspec.yaml +++ b/packages/firebase_ui_auth/example/pubspec.yaml @@ -31,13 +31,13 @@ dependencies: sdk: flutter flutter_localizations: sdk: flutter - firebase_ui_auth: ^3.1.1 - firebase_ui_localizations: ^2.1.0 - firebase_ui_oauth: ^2.1.1 - firebase_ui_oauth_apple: ^2.1.1 - firebase_ui_oauth_facebook: ^2.1.1 - firebase_ui_oauth_google: ^2.1.1 - firebase_ui_oauth_twitter: ^2.1.1 + firebase_ui_auth: ^4.0.0 + firebase_ui_localizations: ^3.0.0 + firebase_ui_oauth: ^3.0.0 + firebase_ui_oauth_apple: ^3.0.0 + firebase_ui_oauth_facebook: ^3.0.0 + firebase_ui_oauth_google: ^3.0.0 + firebase_ui_oauth_twitter: ^3.0.0 dev_dependencies: drive: ^1.0.0-1.0.nullsafety.5 firebase_ui_shared: ^1.5.0 diff --git a/packages/firebase_ui_auth/pubspec.yaml b/packages/firebase_ui_auth/pubspec.yaml index 62a24bc6..85f61834 100644 --- a/packages/firebase_ui_auth/pubspec.yaml +++ b/packages/firebase_ui_auth/pubspec.yaml @@ -1,6 +1,6 @@ name: firebase_ui_auth description: Pre-built widgets library that are integrated with the variety of the Firebase Auth providers. -version: 3.1.1 +version: 4.0.0 repository: https://github.com/firebase/FirebaseUI-Flutter/tree/master/packages/firebase_ui_auth homepage: https://github.com/firebase/FirebaseUI-Flutter/tree/master/packages/firebase_ui_auth @@ -15,8 +15,8 @@ dependencies: email_validator: ^2.1.17 firebase_auth: ^7.0.0 firebase_core: ^5.0.0 - firebase_ui_localizations: ^2.1.0 - firebase_ui_oauth: ^2.1.1 + firebase_ui_localizations: ^3.0.0 + firebase_ui_oauth: ^3.0.0 firebase_ui_shared: ^1.5.0 flutter: sdk: flutter diff --git a/packages/firebase_ui_database/CHANGELOG.md b/packages/firebase_ui_database/CHANGELOG.md index d2cb785f..7fe4fe66 100644 --- a/packages/firebase_ui_database/CHANGELOG.md +++ b/packages/firebase_ui_database/CHANGELOG.md @@ -1,3 +1,27 @@ +## 3.0.0 + +> Note: This release has breaking changes. + + - **BREAKING** **FEAT**: update FlutterFire dependencies and drop CocoaPods ([#731](https://github.com/firebase/FirebaseUI-Flutter/issues/731)). ([c95b0991](https://github.com/firebase/FirebaseUI-Flutter/commit/c95b0991fa350f420863ab603b0c220ba53f8699)) + + * feat!: update FlutterFire dependencies and drop CocoaPods + + Runs scripts/update_dependencies.dart, moving to firebase_core 5, firebase_auth 7, cloud_firestore 7, firebase_database 13 and firebase_storage 14 (Firebase Apple SDK 13, Android BoM 35). + + - Enable Swift Package Manager in every app pubspec and the workspace root. + - Remove CocoaPods from all iOS apps and the macOS apps that don't depend on facebook_auth_desktop. + - Raise example minimums to iOS 15, macOS 12 and Android minSdk 24. + - tests/android: Gradle 8.14.3 and AGP 8.11.1, the minimums for current Flutter stable. + + + + * ci: run iOS and macOS e2e on the xcode-27 runner + + firebase-ios-sdk 13 uses Swift tools 6.2, which the macos-15 image's Xcode can't read. Match FlutterFire's runner and simulator. Also opt the oauth example's macOS AppDelegate into secure state restoration like the other examples. + + --------- + + ## 2.1.0 - **FEAT**: Require Dart 3.9 ([#618](https://github.com/firebase/FirebaseUI-Flutter/issues/618)). ([80a27122](https://github.com/firebase/FirebaseUI-Flutter/commit/80a27122e1008b76c3cb505f8140195f6dd52648)) diff --git a/packages/firebase_ui_database/example/pubspec.yaml b/packages/firebase_ui_database/example/pubspec.yaml index 879e750b..806ebb6f 100644 --- a/packages/firebase_ui_database/example/pubspec.yaml +++ b/packages/firebase_ui_database/example/pubspec.yaml @@ -31,7 +31,7 @@ resolution: workspace dependencies: flutter: sdk: flutter - firebase_ui_database: ^2.1.0 + firebase_ui_database: ^3.0.0 # The following adds the Cupertino Icons font to your application. # Use with the CupertinoIcons class for iOS style icons. cupertino_icons: ^1.0.6 diff --git a/packages/firebase_ui_database/pubspec.yaml b/packages/firebase_ui_database/pubspec.yaml index 32eb6e80..94b9b01d 100644 --- a/packages/firebase_ui_database/pubspec.yaml +++ b/packages/firebase_ui_database/pubspec.yaml @@ -1,6 +1,6 @@ name: firebase_ui_database description: Pre-built widgets and utilites that make it easy to integrate Firebase Realtime Database into your Flutter app. -version: 2.1.0 +version: 3.0.0 homepage: https://github.com/firebase/FirebaseUI-Flutter/tree/master/packages/firebase_ui_database resolution: workspace @@ -11,7 +11,7 @@ environment: dependencies: collection: ^1.18.0 firebase_database: ^13.0.0 - firebase_ui_localizations: ^2.1.0 + firebase_ui_localizations: ^3.0.0 flutter: sdk: flutter diff --git a/packages/firebase_ui_firestore/CHANGELOG.md b/packages/firebase_ui_firestore/CHANGELOG.md index aef40a45..55320e32 100644 --- a/packages/firebase_ui_firestore/CHANGELOG.md +++ b/packages/firebase_ui_firestore/CHANGELOG.md @@ -1,3 +1,52 @@ +## 3.0.0 + +> Note: This release has breaking changes. + + - **FIX**(ui_firestore): keep loaded pages while the next page is only in cache ([#709](https://github.com/firebase/FirebaseUI-Flutter/issues/709)). ([23506053](https://github.com/firebase/FirebaseUI-Flutter/commit/235060533968aea51be5f99ff256756e3326c4d5)) + - **BREAKING** **FEAT**: update FlutterFire dependencies and drop CocoaPods ([#731](https://github.com/firebase/FirebaseUI-Flutter/issues/731)). ([c95b0991](https://github.com/firebase/FirebaseUI-Flutter/commit/c95b0991fa350f420863ab603b0c220ba53f8699)) + + * feat!: update FlutterFire dependencies and drop CocoaPods + + Runs scripts/update_dependencies.dart, moving to firebase_core 5, firebase_auth 7, cloud_firestore 7, firebase_database 13 and firebase_storage 14 (Firebase Apple SDK 13, Android BoM 35). + + - Enable Swift Package Manager in every app pubspec and the workspace root. + - Remove CocoaPods from all iOS apps and the macOS apps that don't depend on facebook_auth_desktop. + - Raise example minimums to iOS 15, macOS 12 and Android minSdk 24. + - tests/android: Gradle 8.14.3 and AGP 8.11.1, the minimums for current Flutter stable. + + + + * ci: run iOS and macOS e2e on the xcode-27 runner + + firebase-ios-sdk 13 uses Swift tools 6.2, which the macos-15 image's Xcode can't read. Match FlutterFire's runner and simulator. Also opt the oauth example's macOS AppDelegate into secure state restoration like the other examples. + + --------- + + - **BREAKING** **FEAT**(ui_firestore): Expose index to FirestoreItemBuilder ([#497](https://github.com/firebase/FirebaseUI-Flutter/issues/497)). ([a0563b7e](https://github.com/firebase/FirebaseUI-Flutter/commit/a0563b7ee2643bf448f5cdf0d154e2793db36b01)) + + * Expose index to FirestoreItemBuilder + + Exposes itemBuilder index in FirestoreListView and FirestoreListView.separated to be consistent with flutter ListView.builder and ListView.separated. + + * Fix tests, doc, example + + * Bump cloud_firestore and firebase_core versions + + * Dependency updates, remove deprecated code + + * Fix conflicts + + * Update docs + + * Update query_builder.dart + + * Fix test formatting + + * Fix formatting + + --------- + + ## 2.1.0 - **FEAT**: Require Dart 3.9 ([#618](https://github.com/firebase/FirebaseUI-Flutter/issues/618)). ([80a27122](https://github.com/firebase/FirebaseUI-Flutter/commit/80a27122e1008b76c3cb505f8140195f6dd52648)) diff --git a/packages/firebase_ui_firestore/example/pubspec.yaml b/packages/firebase_ui_firestore/example/pubspec.yaml index ae2354ae..5fa4c889 100644 --- a/packages/firebase_ui_firestore/example/pubspec.yaml +++ b/packages/firebase_ui_firestore/example/pubspec.yaml @@ -31,7 +31,7 @@ resolution: workspace dependencies: flutter: sdk: flutter - firebase_ui_firestore: ^2.1.0 + firebase_ui_firestore: ^3.0.0 cloud_firestore: ^7.0.0 cupertino_icons: ^1.0.6 firebase_core: ^5.0.0 diff --git a/packages/firebase_ui_firestore/pubspec.yaml b/packages/firebase_ui_firestore/pubspec.yaml index d002fa72..a022eb23 100644 --- a/packages/firebase_ui_firestore/pubspec.yaml +++ b/packages/firebase_ui_firestore/pubspec.yaml @@ -1,6 +1,6 @@ name: firebase_ui_firestore description: Pre-built widgets and utilites that make it easy to integrate Firebase Firestore into your Flutter app. -version: 2.1.0 +version: 3.0.0 homepage: https://github.com/firebase/FirebaseUI-Flutter/tree/master/packages/firebase_ui_firestore resolution: workspace @@ -10,7 +10,7 @@ environment: dependencies: cloud_firestore: ^7.0.0 - firebase_ui_localizations: ^2.1.0 + firebase_ui_localizations: ^3.0.0 firebase_ui_shared: ^1.5.0 flutter: sdk: flutter diff --git a/packages/firebase_ui_localizations/CHANGELOG.md b/packages/firebase_ui_localizations/CHANGELOG.md index 1a0f3203..41f7382c 100644 --- a/packages/firebase_ui_localizations/CHANGELOG.md +++ b/packages/firebase_ui_localizations/CHANGELOG.md @@ -1,3 +1,28 @@ +## 3.0.0 + +> Note: This release has breaking changes. + + - **BREAKING** **FEAT**: update FlutterFire dependencies and drop CocoaPods ([#731](https://github.com/firebase/FirebaseUI-Flutter/issues/731)). ([c95b0991](https://github.com/firebase/FirebaseUI-Flutter/commit/c95b0991fa350f420863ab603b0c220ba53f8699)) + + * feat!: update FlutterFire dependencies and drop CocoaPods + + Runs scripts/update_dependencies.dart, moving to firebase_core 5, firebase_auth 7, cloud_firestore 7, firebase_database 13 and firebase_storage 14 (Firebase Apple SDK 13, Android BoM 35). + + - Enable Swift Package Manager in every app pubspec and the workspace root. + - Remove CocoaPods from all iOS apps and the macOS apps that don't depend on facebook_auth_desktop. + - Raise example minimums to iOS 15, macOS 12 and Android minSdk 24. + - tests/android: Gradle 8.14.3 and AGP 8.11.1, the minimums for current Flutter stable. + + + + * ci: run iOS and macOS e2e on the xcode-27 runner + + firebase-ios-sdk 13 uses Swift tools 6.2, which the macos-15 image's Xcode can't read. Match FlutterFire's runner and simulator. Also opt the oauth example's macOS AppDelegate into secure state restoration like the other examples. + + --------- + + - **BREAKING** **FEAT**(ui_auth): complete email link sign in after cold start and on other devices ([#710](https://github.com/firebase/FirebaseUI-Flutter/issues/710)). ([57b353e5](https://github.com/firebase/FirebaseUI-Flutter/commit/57b353e598d0e2527ec506a869ecffa97caae5fd)) + ## 2.1.0 - **FEAT**: Require Dart 3.9 ([#618](https://github.com/firebase/FirebaseUI-Flutter/issues/618)). ([80a27122](https://github.com/firebase/FirebaseUI-Flutter/commit/80a27122e1008b76c3cb505f8140195f6dd52648)) diff --git a/packages/firebase_ui_localizations/example/pubspec.yaml b/packages/firebase_ui_localizations/example/pubspec.yaml index cf6a3386..e8ad9632 100644 --- a/packages/firebase_ui_localizations/example/pubspec.yaml +++ b/packages/firebase_ui_localizations/example/pubspec.yaml @@ -34,8 +34,8 @@ dependencies: cupertino_icons: ^1.0.6 firebase_core: ^5.0.0 - firebase_ui_auth: ^3.1.1 - firebase_ui_localizations: ^2.1.0 + firebase_ui_auth: ^4.0.0 + firebase_ui_localizations: ^3.0.0 flutter: sdk: flutter flutter_localizations: diff --git a/packages/firebase_ui_localizations/pubspec.yaml b/packages/firebase_ui_localizations/pubspec.yaml index f73a84ef..5b07c605 100644 --- a/packages/firebase_ui_localizations/pubspec.yaml +++ b/packages/firebase_ui_localizations/pubspec.yaml @@ -1,6 +1,6 @@ name: firebase_ui_localizations description: Localization package for firebase_ui_auth, firebase_ui_firestore and firebase_ui_database -version: 2.1.0 +version: 3.0.0 homepage: https://github.com/firebase/FirebaseUI-Flutter/tree/master/packages/firebase_ui_localizations resolution: workspace diff --git a/packages/firebase_ui_oauth/CHANGELOG.md b/packages/firebase_ui_oauth/CHANGELOG.md index 27e609c8..3317a2f3 100644 --- a/packages/firebase_ui_oauth/CHANGELOG.md +++ b/packages/firebase_ui_oauth/CHANGELOG.md @@ -1,3 +1,115 @@ +## 3.0.0 + +> Note: This release has breaking changes. + + - **FIX**(ui_oauth): replace desktop_webview_auth with flutter_web_auth_2 ([#693](https://github.com/firebase/FirebaseUI-Flutter/issues/693)). ([eb0a2128](https://github.com/firebase/FirebaseUI-Flutter/commit/eb0a2128fe35823038efe9bf81fedec19b08357a)) + - **BREAKING** **FEAT**: update FlutterFire dependencies and drop CocoaPods ([#731](https://github.com/firebase/FirebaseUI-Flutter/issues/731)). ([c95b0991](https://github.com/firebase/FirebaseUI-Flutter/commit/c95b0991fa350f420863ab603b0c220ba53f8699)) + + * feat!: update FlutterFire dependencies and drop CocoaPods + + Runs scripts/update_dependencies.dart, moving to firebase_core 5, firebase_auth 7, cloud_firestore 7, firebase_database 13 and firebase_storage 14 (Firebase Apple SDK 13, Android BoM 35). + + - Enable Swift Package Manager in every app pubspec and the workspace root. + - Remove CocoaPods from all iOS apps and the macOS apps that don't depend on facebook_auth_desktop. + - Raise example minimums to iOS 15, macOS 12 and Android minSdk 24. + - tests/android: Gradle 8.14.3 and AGP 8.11.1, the minimums for current Flutter stable. + + + + * ci: run iOS and macOS e2e on the xcode-27 runner + + firebase-ios-sdk 13 uses Swift tools 6.2, which the macos-15 image's Xcode can't read. Match FlutterFire's runner and simulator. Also opt the oauth example's macOS AppDelegate into secure state restoration like the other examples. + + --------- + + - **BREAKING** **FEAT**(ui_oauth_twitter): replace twitter_login with signInWithProvider ([#697](https://github.com/firebase/FirebaseUI-Flutter/issues/697)). ([6290de49](https://github.com/firebase/FirebaseUI-Flutter/commit/6290de498144efc95d5bd98018a420c20f8777b5)) + + * feat(ui_oauth_twitter)!: replace twitter_login with signInWithProvider + + twitter_login has not published since July 2023 and ships an Android build.gradle with no namespace that pins AGP 4.1.0, which capped this repo at AGP 8.7.3 and blocked #693 from using flutter_web_auth_2. + + TwitterProvider now signs in through auth.signInWithProvider on Android and iOS, mirroring AppleProvider, so Firebase performs the OAuth dance and the Twitter API key and secret move out of the app binary into the Firebase console. macOS and Windows keep the vendored OAuth 1.0a flow, which is why apiKey and apiSecretKey survive as optional parameters rather than being removed. + + macOS stays on the desktop flow because signInWithProvider is not available to it: FLTFirebaseAuthPlugin.swift carves out Apple and Game Center, then fails every other provider under `#if os(macOS)` with unsupported-platform. Android has no equivalent restriction. + + - AuthAction.none throws UnsupportedError on Android and iOS, since signInWithProvider cannot return a credential without also creating a session. + - Anonymous users are upgraded with linkWithProvider so the anonymous uid survives sign in. + - A debug-only diagnostic warns once when apiKey or apiSecretKey are passed on a platform that now ignores them. + - Restores compileSdk to flutter.compileSdkVersion and bumps AGP to 8.9.1, now that nothing pins it. + + + + * fix(ui_oauth_twitter): report an error when linking without a signed in user + + AuthAction.link with no FirebaseAuth.currentUser null-shorted the linkWithProvider call, so the flow neither completed nor reported an error and the UI stayed in its loading state. The credential path this replaced raised through auth.currentUser!, so a null user was at least surfaced. + + Reports a FirebaseAuthException instead, which reaches AuthFailed rather than escaping as an unhandled Error the way a StateError would. + + * ci(e2e): correct stale version comment on the setup-gradle pin + + The pin comment claimed v6 while the pinned SHA is v6.2.0, and upstream has since moved the v6 tag to v6.3.0. zizmor flagged the mismatch as a medium severity finding, which blocks the workflow check. + + Corrects the comment rather than moving the pin, so the action version CI runs is unchanged. + + * docs(ui_oauth_twitter): document the signInWithProvider setup + + Rewrites the Twitter section around the flow Firebase now performs on Android and iOS: enable the provider in the console, point the X app callback URL at the Firebase auth handler, then add the encoded app ID URL scheme on iOS and the SHA-1 on Android. The twitter_login install step is gone, and the API key and secret move into their own macOS and Windows section, since those are the only platforms that still need them. + + Adds the encoded app ID scheme to the firebase_ui_auth example and drops the ffire:// redirect it passed for twitter_login, which no longer takes part in either flow. + + * fix(tests): bump the Gradle wrapper to 8.11.1 for AGP 8.9.1 + + AGP 8.9.1 requires Gradle 8.11.1 or later, and the tests app wrapper was on 8.10, so assembleDebug failed with a version-check error as soon as the AGP pin moved. + + Only the tests app is affected. The example apps keep their own lower AGP versions and wrappers. + + * chore(ui_oauth): format the twitter example button call + + * fix(ui_oauth_twitter): report auth failures instead of throwing Errors + + Independent review found that three of the new failure paths raised Error subtypes into the auth listener. defaultOnAuthError rethrows anything that is not a FirebaseAuthException, and both AuthFlow.onError and the button's handler catch only Exception, so those Errors escaped and left the flow in its loading state permanently. + + - AuthAction.none now reports a FirebaseAuthException rather than throwing UnsupportedError out of the tap handler. + - Missing OAuth 1.0a credentials are checked in desktopSignIn, before the base flow reads desktopSignInArgs synchronously, so the ArgumentError is no longer reachable from the UI. + - Empty strings count as missing credentials, since String.fromEnvironment yields an empty string and that is the documented way to supply them. The debug diagnostic no longer fires on them either. + - User cancellation is mapped back to a flow reset. The native SDKs report dismissal as a FirebaseAuthException, which was being rendered as a sign in failure where the previous flow reset silently. + - The linked credential is no longer force unwrapped, since it is nullable on every platform. + + Also makes the anonymous upgrade test pass AuthAction.signIn explicitly. The flow resolves to AuthAction.link whenever currentUser is non-null, so the test was passing without the shouldUpgradeAnonymous branch being consulted. + + * fix(ui_oauth_twitter): correct the diagnostic callback URL and two stale comments + + The debug diagnostic told developers to set their Twitter app callback URL to redirectUri when one was supplied, but the native flow on Android and iOS ignores redirectUri and always completes through the Firebase auth handler, so the advice guaranteed failure for exactly the consumers migrating from the custom scheme twitter_login needed. It now names the handler. The desktop flow still honours redirectUri, so its own use of it is unchanged. + + Also corrects the class doc, which listed Game Center alongside Apple as exempt from the macOS restriction. Game Center is rejected on every platform, for its own reason, so Apple is the only exception. And removes a comment in the example that lost its subject when the twitter_login dependency was deleted. + + * fix(ui_auth): navigate to the profile after a sign in that returns no email + + The example's sign in handler matched only emailVerified users and unverified users that have an email, so a user with neither matched no case and the screen stayed put after signing in successfully. Twitter only returns an email when the app asks for it, and such a user is never emailVerified, so Twitter sign in landed in that gap. + + The app's own initialRoute already treats those users as signed in via its catch all, so this brings the in flow navigation in line with what a relaunch does. + + * fix(ui_auth): stop EmailVerificationController crashing on resume when signed out + + reload() read auth.currentUser! and runs on every app resume, so resuming with no signed in user threw an unhandled TypeError rather than an Exception, which escapes the flow's error handling entirely. + + Cancelling an OAuth sign in is the easiest way to hit it: the provider takes the app to the background, cancelling brings it back, and currentUser is still null because the sign in never completed. Any app switch while signed out does the same, so this is not specific to a provider. + + The constructor already guards currentUser for null, so this brings reload() in line with the rest of the class rather than changing its contract. + + * chore(ui_oauth_twitter): wrap the diagnostic guard condition + + * docs(ui_oauth_twitter): expand the 2.x upgrade note with what testing found + + Device testing surfaced three things the original note could not have covered, because none of them is visible from the source. + + - Registering the Android SHA-1 is not sufficient on its own. The certificate hash is embedded in google-services.json at download time, so the file has to be re-downloaded afterwards. The note now carries the error string Firebase shows when either step is missed, since that is what consumers will actually search for. + - Firebase occasionally opens the full browser rather than a Chrome Custom Tab, and abandoning the flow there leaves the operation pending until the app restarts. Recorded as a known limitation, since nothing in the Dart layer can resolve a future the SDK never completes. + - Cancelling returns silently, which is worth stating because it is indistinguishable from nothing having happened. + + Also documents that redirectUri is ignored on Android and iOS, which was missing, and splits the section into what you must change, what behaviour changed, and the known limitation. + + ## 2.1.1 - **FIX**(ui_oauth): use dart.library.js_interop for Wasm-compatible imports ([#675](https://github.com/firebase/FirebaseUI-Flutter/issues/675)). ([84da53c3](https://github.com/firebase/FirebaseUI-Flutter/commit/84da53c391d3f79926ae701c59c67b6037308e0b)) diff --git a/packages/firebase_ui_oauth/example/pubspec.yaml b/packages/firebase_ui_oauth/example/pubspec.yaml index cb05216f..a8171496 100644 --- a/packages/firebase_ui_oauth/example/pubspec.yaml +++ b/packages/firebase_ui_oauth/example/pubspec.yaml @@ -37,11 +37,11 @@ dependencies: cupertino_icons: ^1.0.6 firebase_auth: ^7.0.0 firebase_core: ^5.0.0 - firebase_ui_oauth: ^2.1.1 - firebase_ui_oauth_apple: ^2.1.1 - firebase_ui_oauth_facebook: ^2.1.1 - firebase_ui_oauth_google: ^2.1.1 - firebase_ui_oauth_twitter: ^2.1.1 + firebase_ui_oauth: ^3.0.0 + firebase_ui_oauth_apple: ^3.0.0 + firebase_ui_oauth_facebook: ^3.0.0 + firebase_ui_oauth_google: ^3.0.0 + firebase_ui_oauth_twitter: ^3.0.0 dev_dependencies: flutter_test: sdk: flutter diff --git a/packages/firebase_ui_oauth/pubspec.yaml b/packages/firebase_ui_oauth/pubspec.yaml index 71d3b33c..cccd0c93 100644 --- a/packages/firebase_ui_oauth/pubspec.yaml +++ b/packages/firebase_ui_oauth/pubspec.yaml @@ -1,6 +1,6 @@ name: firebase_ui_oauth description: Firebase UI widgets for authentication & OAuth -version: 2.1.1 +version: 3.0.0 homepage: https://github.com/firebase/FirebaseUI-Flutter/tree/master/packages/firebase_ui_oauth resolution: workspace @@ -11,7 +11,7 @@ environment: dependencies: crypto: ^3.0.3 firebase_auth: ^7.0.0 - firebase_ui_auth: ^3.1.1 + firebase_ui_auth: ^4.0.0 firebase_ui_shared: ^1.5.0 flutter_svg: ^2.0.9 flutter_web_auth_2: ^5.1.0 diff --git a/packages/firebase_ui_oauth_apple/CHANGELOG.md b/packages/firebase_ui_oauth_apple/CHANGELOG.md index 7f2b5ab5..30e78faa 100644 --- a/packages/firebase_ui_oauth_apple/CHANGELOG.md +++ b/packages/firebase_ui_oauth_apple/CHANGELOG.md @@ -1,3 +1,28 @@ +## 3.0.0 + +> Note: This release has breaking changes. + + - **FIX**(ui_oauth_apple): upgrade anonymous users by linking the Apple credential ([#730](https://github.com/firebase/FirebaseUI-Flutter/issues/730)). ([c7bcd11b](https://github.com/firebase/FirebaseUI-Flutter/commit/c7bcd11bbc81c1281480465b625540e8d443b402)) + - **BREAKING** **FEAT**: update FlutterFire dependencies and drop CocoaPods ([#731](https://github.com/firebase/FirebaseUI-Flutter/issues/731)). ([c95b0991](https://github.com/firebase/FirebaseUI-Flutter/commit/c95b0991fa350f420863ab603b0c220ba53f8699)) + + * feat!: update FlutterFire dependencies and drop CocoaPods + + Runs scripts/update_dependencies.dart, moving to firebase_core 5, firebase_auth 7, cloud_firestore 7, firebase_database 13 and firebase_storage 14 (Firebase Apple SDK 13, Android BoM 35). + + - Enable Swift Package Manager in every app pubspec and the workspace root. + - Remove CocoaPods from all iOS apps and the macOS apps that don't depend on facebook_auth_desktop. + - Raise example minimums to iOS 15, macOS 12 and Android minSdk 24. + - tests/android: Gradle 8.14.3 and AGP 8.11.1, the minimums for current Flutter stable. + + + + * ci: run iOS and macOS e2e on the xcode-27 runner + + firebase-ios-sdk 13 uses Swift tools 6.2, which the macos-15 image's Xcode can't read. Match FlutterFire's runner and simulator. Also opt the oauth example's macOS AppDelegate into secure state restoration like the other examples. + + --------- + + ## 2.1.1 - Update a dependency to the latest release. diff --git a/packages/firebase_ui_oauth_apple/pubspec.yaml b/packages/firebase_ui_oauth_apple/pubspec.yaml index bc14867f..f69ecf1d 100644 --- a/packages/firebase_ui_oauth_apple/pubspec.yaml +++ b/packages/firebase_ui_oauth_apple/pubspec.yaml @@ -1,6 +1,6 @@ name: firebase_ui_oauth_apple description: Firebase UI widgets for authentication & OAuth. -version: 2.1.1 +version: 3.0.0 homepage: https://github.com/firebase/FirebaseUI-Flutter/tree/master/packages/firebase_ui_oauth_apple resolution: workspace @@ -10,7 +10,7 @@ environment: dependencies: firebase_auth: ^7.0.0 - firebase_ui_oauth: ^2.1.1 + firebase_ui_oauth: ^3.0.0 flutter: sdk: flutter diff --git a/packages/firebase_ui_oauth_facebook/CHANGELOG.md b/packages/firebase_ui_oauth_facebook/CHANGELOG.md index e77e3fd6..ea6d88c5 100644 --- a/packages/firebase_ui_oauth_facebook/CHANGELOG.md +++ b/packages/firebase_ui_oauth_facebook/CHANGELOG.md @@ -1,3 +1,27 @@ +## 3.0.0 + +> Note: This release has breaking changes. + + - **BREAKING** **FEAT**: update FlutterFire dependencies and drop CocoaPods ([#731](https://github.com/firebase/FirebaseUI-Flutter/issues/731)). ([c95b0991](https://github.com/firebase/FirebaseUI-Flutter/commit/c95b0991fa350f420863ab603b0c220ba53f8699)) + + * feat!: update FlutterFire dependencies and drop CocoaPods + + Runs scripts/update_dependencies.dart, moving to firebase_core 5, firebase_auth 7, cloud_firestore 7, firebase_database 13 and firebase_storage 14 (Firebase Apple SDK 13, Android BoM 35). + + - Enable Swift Package Manager in every app pubspec and the workspace root. + - Remove CocoaPods from all iOS apps and the macOS apps that don't depend on facebook_auth_desktop. + - Raise example minimums to iOS 15, macOS 12 and Android minSdk 24. + - tests/android: Gradle 8.14.3 and AGP 8.11.1, the minimums for current Flutter stable. + + + + * ci: run iOS and macOS e2e on the xcode-27 runner + + firebase-ios-sdk 13 uses Swift tools 6.2, which the macos-15 image's Xcode can't read. Match FlutterFire's runner and simulator. Also opt the oauth example's macOS AppDelegate into secure state restoration like the other examples. + + --------- + + ## 2.1.1 - Update a dependency to the latest release. diff --git a/packages/firebase_ui_oauth_facebook/pubspec.yaml b/packages/firebase_ui_oauth_facebook/pubspec.yaml index fb62816c..04f8dc87 100644 --- a/packages/firebase_ui_oauth_facebook/pubspec.yaml +++ b/packages/firebase_ui_oauth_facebook/pubspec.yaml @@ -1,6 +1,6 @@ name: firebase_ui_oauth_facebook description: Firebase UI widgets for authentication & OAuth. -version: 2.1.1 +version: 3.0.0 homepage: https://github.com/firebase/FirebaseUI-Flutter/tree/master/packages/firebase_ui_oauth_facebook resolution: workspace @@ -10,7 +10,7 @@ environment: dependencies: firebase_auth: ^7.0.0 - firebase_ui_oauth: ^2.1.1 + firebase_ui_oauth: ^3.0.0 flutter: sdk: flutter flutter_facebook_auth: ^7.1.2 diff --git a/packages/firebase_ui_oauth_google/CHANGELOG.md b/packages/firebase_ui_oauth_google/CHANGELOG.md index 730b9200..e413b0dd 100644 --- a/packages/firebase_ui_oauth_google/CHANGELOG.md +++ b/packages/firebase_ui_oauth_google/CHANGELOG.md @@ -1,3 +1,70 @@ +## 3.0.0 + +> Note: This release has breaking changes. + + - **BREAKING** **FEAT**: update FlutterFire dependencies and drop CocoaPods ([#731](https://github.com/firebase/FirebaseUI-Flutter/issues/731)). ([c95b0991](https://github.com/firebase/FirebaseUI-Flutter/commit/c95b0991fa350f420863ab603b0c220ba53f8699)) + + * feat!: update FlutterFire dependencies and drop CocoaPods + + Runs scripts/update_dependencies.dart, moving to firebase_core 5, firebase_auth 7, cloud_firestore 7, firebase_database 13 and firebase_storage 14 (Firebase Apple SDK 13, Android BoM 35). + + - Enable Swift Package Manager in every app pubspec and the workspace root. + - Remove CocoaPods from all iOS apps and the macOS apps that don't depend on facebook_auth_desktop. + - Raise example minimums to iOS 15, macOS 12 and Android minSdk 24. + - tests/android: Gradle 8.14.3 and AGP 8.11.1, the minimums for current Flutter stable. + + + + * ci: run iOS and macOS e2e on the xcode-27 runner + + firebase-ios-sdk 13 uses Swift tools 6.2, which the macos-15 image's Xcode can't read. Match FlutterFire's runner and simulator. Also opt the oauth example's macOS AppDelegate into secure state restoration like the other examples. + + --------- + + - **BREAKING** **FEAT**(ui_oauth_google): migrate to google_sign_in 7 ([#700](https://github.com/firebase/FirebaseUI-Flutter/issues/700)). ([7fd741c9](https://github.com/firebase/FirebaseUI-Flutter/commit/7fd741c9bb4db30a0525f24b1cdbc003d320228c)) + + * feat(ui_oauth_google)!: migrate to google_sign_in 7 + + Migrates GoogleProvider to the google_sign_in 7 API, which adopts the + UIScene lifecycle on iOS (google_sign_in_ios 6.3.0) and Swift Package + Manager (6.3.3). Fixes the deprecated application lifecycle warning + tracked in #673. + + - GoogleSignIn is now the shared instance and is initialized once + before the first sign-in. + - Authentication and authorization are separate steps. The provider + reuses an existing authorization for the requested scopes and prompts + for consent when one is not available, so the credential still + carries an access token when scopes are requested. + - A cancelled sign-in surfaces as AuthCancelledException, matching the + previous flow reset behaviour. + - Adds an optional serverClientId parameter to GoogleProvider, + GoogleSignInButton and GoogleSignInIconButton for Android apps that + do not use google-services.json. + - Updates the integration test mocks to the new API. + + + integration steps: GIDClientID in Info.plist on iOS, and on Android a + web OAuth client entry in google-services.json or an explicit + serverClientId. When no scopes are requested the credential now + contains only an ID token. + + * refactor(ui_oauth_google): simplify init and isolate it in tests + + Chain the retry-reset catchError directly onto initialize() instead of + threading an intermediate local, and add a @visibleForTesting + debugReset() that clears the static one-time-init future so each test + starts from a clean state with its freshly injected mock. + + Addresses review feedback on #689. + + * chore(ui_oauth_google): format provider.dart + + * fix(ui_oauth_google): preserve stack trace on init retry + + Use Error.throwWithStackTrace in the initialize() catchError so a failed initialization keeps its original stack trace instead of resetting it with a bare throw. + + ## 2.1.1 - Update a dependency to the latest release. diff --git a/packages/firebase_ui_oauth_google/pubspec.yaml b/packages/firebase_ui_oauth_google/pubspec.yaml index 2251aa30..015a2bba 100644 --- a/packages/firebase_ui_oauth_google/pubspec.yaml +++ b/packages/firebase_ui_oauth_google/pubspec.yaml @@ -1,6 +1,6 @@ name: firebase_ui_oauth_google description: Firebase UI widgets for authentication & OAuth. -version: 2.1.1 +version: 3.0.0 homepage: https://github.com/firebase/FirebaseUI-Flutter/tree/master/packages/firebase_ui_oauth_google resolution: workspace @@ -10,7 +10,7 @@ environment: dependencies: firebase_auth: ^7.0.0 - firebase_ui_oauth: ^2.1.1 + firebase_ui_oauth: ^3.0.0 flutter: sdk: flutter google_sign_in: ^7.1.0 diff --git a/packages/firebase_ui_oauth_twitter/CHANGELOG.md b/packages/firebase_ui_oauth_twitter/CHANGELOG.md index b8c6b99f..16765e56 100644 --- a/packages/firebase_ui_oauth_twitter/CHANGELOG.md +++ b/packages/firebase_ui_oauth_twitter/CHANGELOG.md @@ -1,3 +1,114 @@ +## 3.0.0 + +> Note: This release has breaking changes. + + - **BREAKING** **FEAT**: update FlutterFire dependencies and drop CocoaPods ([#731](https://github.com/firebase/FirebaseUI-Flutter/issues/731)). ([c95b0991](https://github.com/firebase/FirebaseUI-Flutter/commit/c95b0991fa350f420863ab603b0c220ba53f8699)) + + * feat!: update FlutterFire dependencies and drop CocoaPods + + Runs scripts/update_dependencies.dart, moving to firebase_core 5, firebase_auth 7, cloud_firestore 7, firebase_database 13 and firebase_storage 14 (Firebase Apple SDK 13, Android BoM 35). + + - Enable Swift Package Manager in every app pubspec and the workspace root. + - Remove CocoaPods from all iOS apps and the macOS apps that don't depend on facebook_auth_desktop. + - Raise example minimums to iOS 15, macOS 12 and Android minSdk 24. + - tests/android: Gradle 8.14.3 and AGP 8.11.1, the minimums for current Flutter stable. + + + + * ci: run iOS and macOS e2e on the xcode-27 runner + + firebase-ios-sdk 13 uses Swift tools 6.2, which the macos-15 image's Xcode can't read. Match FlutterFire's runner and simulator. Also opt the oauth example's macOS AppDelegate into secure state restoration like the other examples. + + --------- + + - **BREAKING** **FEAT**(ui_oauth_twitter): replace twitter_login with signInWithProvider ([#697](https://github.com/firebase/FirebaseUI-Flutter/issues/697)). ([6290de49](https://github.com/firebase/FirebaseUI-Flutter/commit/6290de498144efc95d5bd98018a420c20f8777b5)) + + * feat(ui_oauth_twitter)!: replace twitter_login with signInWithProvider + + twitter_login has not published since July 2023 and ships an Android build.gradle with no namespace that pins AGP 4.1.0, which capped this repo at AGP 8.7.3 and blocked #693 from using flutter_web_auth_2. + + TwitterProvider now signs in through auth.signInWithProvider on Android and iOS, mirroring AppleProvider, so Firebase performs the OAuth dance and the Twitter API key and secret move out of the app binary into the Firebase console. macOS and Windows keep the vendored OAuth 1.0a flow, which is why apiKey and apiSecretKey survive as optional parameters rather than being removed. + + macOS stays on the desktop flow because signInWithProvider is not available to it: FLTFirebaseAuthPlugin.swift carves out Apple and Game Center, then fails every other provider under `#if os(macOS)` with unsupported-platform. Android has no equivalent restriction. + + - AuthAction.none throws UnsupportedError on Android and iOS, since signInWithProvider cannot return a credential without also creating a session. + - Anonymous users are upgraded with linkWithProvider so the anonymous uid survives sign in. + - A debug-only diagnostic warns once when apiKey or apiSecretKey are passed on a platform that now ignores them. + - Restores compileSdk to flutter.compileSdkVersion and bumps AGP to 8.9.1, now that nothing pins it. + + + + * fix(ui_oauth_twitter): report an error when linking without a signed in user + + AuthAction.link with no FirebaseAuth.currentUser null-shorted the linkWithProvider call, so the flow neither completed nor reported an error and the UI stayed in its loading state. The credential path this replaced raised through auth.currentUser!, so a null user was at least surfaced. + + Reports a FirebaseAuthException instead, which reaches AuthFailed rather than escaping as an unhandled Error the way a StateError would. + + * ci(e2e): correct stale version comment on the setup-gradle pin + + The pin comment claimed v6 while the pinned SHA is v6.2.0, and upstream has since moved the v6 tag to v6.3.0. zizmor flagged the mismatch as a medium severity finding, which blocks the workflow check. + + Corrects the comment rather than moving the pin, so the action version CI runs is unchanged. + + * docs(ui_oauth_twitter): document the signInWithProvider setup + + Rewrites the Twitter section around the flow Firebase now performs on Android and iOS: enable the provider in the console, point the X app callback URL at the Firebase auth handler, then add the encoded app ID URL scheme on iOS and the SHA-1 on Android. The twitter_login install step is gone, and the API key and secret move into their own macOS and Windows section, since those are the only platforms that still need them. + + Adds the encoded app ID scheme to the firebase_ui_auth example and drops the ffire:// redirect it passed for twitter_login, which no longer takes part in either flow. + + * fix(tests): bump the Gradle wrapper to 8.11.1 for AGP 8.9.1 + + AGP 8.9.1 requires Gradle 8.11.1 or later, and the tests app wrapper was on 8.10, so assembleDebug failed with a version-check error as soon as the AGP pin moved. + + Only the tests app is affected. The example apps keep their own lower AGP versions and wrappers. + + * chore(ui_oauth): format the twitter example button call + + * fix(ui_oauth_twitter): report auth failures instead of throwing Errors + + Independent review found that three of the new failure paths raised Error subtypes into the auth listener. defaultOnAuthError rethrows anything that is not a FirebaseAuthException, and both AuthFlow.onError and the button's handler catch only Exception, so those Errors escaped and left the flow in its loading state permanently. + + - AuthAction.none now reports a FirebaseAuthException rather than throwing UnsupportedError out of the tap handler. + - Missing OAuth 1.0a credentials are checked in desktopSignIn, before the base flow reads desktopSignInArgs synchronously, so the ArgumentError is no longer reachable from the UI. + - Empty strings count as missing credentials, since String.fromEnvironment yields an empty string and that is the documented way to supply them. The debug diagnostic no longer fires on them either. + - User cancellation is mapped back to a flow reset. The native SDKs report dismissal as a FirebaseAuthException, which was being rendered as a sign in failure where the previous flow reset silently. + - The linked credential is no longer force unwrapped, since it is nullable on every platform. + + Also makes the anonymous upgrade test pass AuthAction.signIn explicitly. The flow resolves to AuthAction.link whenever currentUser is non-null, so the test was passing without the shouldUpgradeAnonymous branch being consulted. + + * fix(ui_oauth_twitter): correct the diagnostic callback URL and two stale comments + + The debug diagnostic told developers to set their Twitter app callback URL to redirectUri when one was supplied, but the native flow on Android and iOS ignores redirectUri and always completes through the Firebase auth handler, so the advice guaranteed failure for exactly the consumers migrating from the custom scheme twitter_login needed. It now names the handler. The desktop flow still honours redirectUri, so its own use of it is unchanged. + + Also corrects the class doc, which listed Game Center alongside Apple as exempt from the macOS restriction. Game Center is rejected on every platform, for its own reason, so Apple is the only exception. And removes a comment in the example that lost its subject when the twitter_login dependency was deleted. + + * fix(ui_auth): navigate to the profile after a sign in that returns no email + + The example's sign in handler matched only emailVerified users and unverified users that have an email, so a user with neither matched no case and the screen stayed put after signing in successfully. Twitter only returns an email when the app asks for it, and such a user is never emailVerified, so Twitter sign in landed in that gap. + + The app's own initialRoute already treats those users as signed in via its catch all, so this brings the in flow navigation in line with what a relaunch does. + + * fix(ui_auth): stop EmailVerificationController crashing on resume when signed out + + reload() read auth.currentUser! and runs on every app resume, so resuming with no signed in user threw an unhandled TypeError rather than an Exception, which escapes the flow's error handling entirely. + + Cancelling an OAuth sign in is the easiest way to hit it: the provider takes the app to the background, cancelling brings it back, and currentUser is still null because the sign in never completed. Any app switch while signed out does the same, so this is not specific to a provider. + + The constructor already guards currentUser for null, so this brings reload() in line with the rest of the class rather than changing its contract. + + * chore(ui_oauth_twitter): wrap the diagnostic guard condition + + * docs(ui_oauth_twitter): expand the 2.x upgrade note with what testing found + + Device testing surfaced three things the original note could not have covered, because none of them is visible from the source. + + - Registering the Android SHA-1 is not sufficient on its own. The certificate hash is embedded in google-services.json at download time, so the file has to be re-downloaded afterwards. The note now carries the error string Firebase shows when either step is missed, since that is what consumers will actually search for. + - Firebase occasionally opens the full browser rather than a Chrome Custom Tab, and abandoning the flow there leaves the operation pending until the app restarts. Recorded as a known limitation, since nothing in the Dart layer can resolve a future the SDK never completes. + - Cancelling returns silently, which is worth stating because it is indistinguishable from nothing having happened. + + Also documents that redirectUri is ignored on Android and iOS, which was missing, and splits the section into what you must change, what behaviour changed, and the known limitation. + + ## 2.1.1 - Update a dependency to the latest release. diff --git a/packages/firebase_ui_oauth_twitter/pubspec.yaml b/packages/firebase_ui_oauth_twitter/pubspec.yaml index 2a3f7b9d..d4d93ce7 100644 --- a/packages/firebase_ui_oauth_twitter/pubspec.yaml +++ b/packages/firebase_ui_oauth_twitter/pubspec.yaml @@ -1,6 +1,6 @@ name: firebase_ui_oauth_twitter description: Firebase UI widgets for authentication & OAuth. -version: 2.1.1 +version: 3.0.0 homepage: https://github.com/firebase/FirebaseUI-Flutter/tree/master/packages/firebase_ui_oauth_twitter resolution: workspace @@ -12,7 +12,7 @@ dependencies: flutter: sdk: flutter firebase_auth: ^7.0.0 - firebase_ui_oauth: ^2.1.1 + firebase_ui_oauth: ^3.0.0 dev_dependencies: flutter_test: diff --git a/packages/firebase_ui_storage/CHANGELOG.md b/packages/firebase_ui_storage/CHANGELOG.md index 020a98e3..6eb4f246 100644 --- a/packages/firebase_ui_storage/CHANGELOG.md +++ b/packages/firebase_ui_storage/CHANGELOG.md @@ -1,3 +1,27 @@ +## 4.0.0 + +> Note: This release has breaking changes. + + - **BREAKING** **FEAT**: update FlutterFire dependencies and drop CocoaPods ([#731](https://github.com/firebase/FirebaseUI-Flutter/issues/731)). ([c95b0991](https://github.com/firebase/FirebaseUI-Flutter/commit/c95b0991fa350f420863ab603b0c220ba53f8699)) + + * feat!: update FlutterFire dependencies and drop CocoaPods + + Runs scripts/update_dependencies.dart, moving to firebase_core 5, firebase_auth 7, cloud_firestore 7, firebase_database 13 and firebase_storage 14 (Firebase Apple SDK 13, Android BoM 35). + + - Enable Swift Package Manager in every app pubspec and the workspace root. + - Remove CocoaPods from all iOS apps and the macOS apps that don't depend on facebook_auth_desktop. + - Raise example minimums to iOS 15, macOS 12 and Android minSdk 24. + - tests/android: Gradle 8.14.3 and AGP 8.11.1, the minimums for current Flutter stable. + + + + * ci: run iOS and macOS e2e on the xcode-27 runner + + firebase-ios-sdk 13 uses Swift tools 6.2, which the macos-15 image's Xcode can't read. Match FlutterFire's runner and simulator. Also opt the oauth example's macOS AppDelegate into secure state restoration like the other examples. + + --------- + + ## 3.1.0 - **FEAT**: Require Dart 3.9 ([#618](https://github.com/firebase/FirebaseUI-Flutter/issues/618)). ([80a27122](https://github.com/firebase/FirebaseUI-Flutter/commit/80a27122e1008b76c3cb505f8140195f6dd52648)) diff --git a/packages/firebase_ui_storage/example/pubspec.yaml b/packages/firebase_ui_storage/example/pubspec.yaml index d0be9878..d62cc619 100644 --- a/packages/firebase_ui_storage/example/pubspec.yaml +++ b/packages/firebase_ui_storage/example/pubspec.yaml @@ -12,7 +12,7 @@ dependencies: cupertino_icons: ^1.0.6 firebase_core: ^5.0.0 firebase_storage: ^14.0.0 - firebase_ui_storage: ^3.1.0 + firebase_ui_storage: ^4.0.0 firebase_ui_shared: ^1.5.0 flutter: diff --git a/packages/firebase_ui_storage/pubspec.yaml b/packages/firebase_ui_storage/pubspec.yaml index ee5c9166..af134d66 100644 --- a/packages/firebase_ui_storage/pubspec.yaml +++ b/packages/firebase_ui_storage/pubspec.yaml @@ -1,6 +1,6 @@ name: firebase_ui_storage description: Pre-built widgets and utilites that make it easy to integrate Firebase Storage into your Flutter app. -version: 3.1.0 +version: 4.0.0 homepage: https://github.com/firebase/FirebaseUI-Flutter/tree/master/packages/firebase_ui_storage/ environment: @@ -16,7 +16,7 @@ dependencies: flutter: sdk: flutter firebase_storage: ^14.0.0 - firebase_ui_localizations: ^2.1.0 + firebase_ui_localizations: ^3.0.0 firebase_ui_shared: ^1.5.0 path: ^1.8.3 uuid: ^4.2.2 diff --git a/tests/pubspec.yaml b/tests/pubspec.yaml index 042eaf2a..f6701c1a 100644 --- a/tests/pubspec.yaml +++ b/tests/pubspec.yaml @@ -14,21 +14,21 @@ dependencies: cupertino_icons: ^1.0.6 firebase_auth: 7.0.0 firebase_core: 5.0.0 - firebase_ui_auth: ^3.1.1 - firebase_ui_localizations: ^2.1.0 - firebase_ui_oauth_apple: ^2.1.1 - firebase_ui_oauth_facebook: ^2.1.1 - firebase_ui_oauth_google: ^2.1.1 - firebase_ui_oauth: ^2.1.1 + firebase_ui_auth: ^4.0.0 + firebase_ui_localizations: ^3.0.0 + firebase_ui_oauth_apple: ^3.0.0 + firebase_ui_oauth_facebook: ^3.0.0 + firebase_ui_oauth_google: ^3.0.0 + firebase_ui_oauth: ^3.0.0 flutter_facebook_auth: ^7.1.2 - firebase_ui_oauth_twitter: ^2.1.1 + firebase_ui_oauth_twitter: ^3.0.0 cloud_firestore: 7.0.0 - firebase_ui_firestore: ^2.1.0 + firebase_ui_firestore: ^3.0.0 http: ^1.1.2 google_sign_in: ^7.1.0 firebase_ui_shared: ^1.5.0 firebase_database: 13.0.0 - firebase_ui_database: ^2.1.0 + firebase_ui_database: ^3.0.0 dev_dependencies: flutter_test: