Describe the bug
When I upgrade firebase_auth from v0.15.3+1 to v0.15.4, the following error appear in compilation:
Error: The method 'confirmPasswordReset' isn't defined for the class 'FirebaseAuthPlatform'.
details can be found in the check run https://github.com/tianhaoz95/iwfp/pull/265/checks?check_run_id=411215259#step:12:57
To Reproduce
Steps to reproduce the behavior:
Expected behavior
It should compile and execute without crashing.
Additional context
The compilation was executed in ubuntu-latest in GitHub Actions.
there is an error in transitive dependency confirmPasswordReset is implemented in firebase_auth_platform_interface 1.1.3.
As hotfix you could run flutter pub upgrade or (if you don't want to upgrade other packages for some reason) find firebase_auth_platform_interface in pubspec.lock and change it like this:
firebase_auth_platform_interface:
dependency: transitive
description:
name: firebase_auth_platform_interface
url: "https://pub.dartlang.org"
source: hosted
version: "1.1.5"
It worked! Thanks!
@2ZeroSix does it mean firebase_auth forgot to bump its dependency of firebase_auth_platform_interface in its pubspec.yaml?
It would be nice to add tests with flutter pub downgrade to prevent this type of issues
@2ZeroSix I think you are right. It would be nice to have a regression test for this. Can you elaborate more on the idea you had in mind or post a pointer to similar test here?
@tianhaoz95 I found a few possible places to add this in ci scripts. Basically we need to run build-examples action twice, with newest possible packages and with downgraded. I'm not sure if we should run other actions twice as well 馃
.cirrus.yml with additional flutter pub downgrade step and removed tests steps (java-test, firebase-test-lab, drive-examples)@tianhaoz95 I've made mistake yesterday, flutter pub downgrade should be executed in every example, so it probably should be implemented as additional command in flutter_plugin_tools
here's build_examples command for reference
https://github.com/flutter/plugin_tools/blob/145a3d5de5ec9270441a77565082dcc8d90a7d3c/lib/src/build_examples_command.dart#L13-L105
Closing - confirmPasswordReset support is now available in the latest plugin version.
Most helpful comment
there is an error in transitive dependency
confirmPasswordResetis implemented infirebase_auth_platform_interface1.1.3.As hotfix you could run
flutter pub upgradeor (if you don't want to upgrade other packages for some reason) findfirebase_auth_platform_interfaceinpubspec.lockand change it like this: