Flutterfire: [firebase_auth] compilation error uprgading from 0.15.3 to 0.15.4

Created on 27 Jan 2020  路  8Comments  路  Source: FirebaseExtended/flutterfire

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:

  1. compile a project with firebase_auth 0.15.3 or below
  2. upgrade to 0.15.4
  3. compile again
  4. see the compilation error

Expected behavior
It should compile and execute without crashing.

Additional context
The compilation was executed in ubuntu-latest in GitHub Actions.

crowd auth regression bug

Most helpful comment

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"

All 8 comments

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 馃

@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.

Was this page helpful?
0 / 5 - 0 ratings