firebase_auth_platform_interface 3.0.1
firebase_auth_platform_interface: ^3.0.1 copied to clipboard

Flutter Android iOS web

A common platform interface for the firebase_auth plugin.

6
likes
70 / 110
pub points
99 %
popularity

We analyzed this package on Jan 26, 2021, and awarded it 70 pub points (of a possible 110):

Follow Dart file conventions
10 / 20

0/10 points: Provide a valid pubspec.yaml

The package description is too short.

Add more detail to the description field of pubspec.yaml. Use 60 to 180 characters to describe the package, what it does, and its target use case.

5/5 points: Provide a valid README.md

5/5 points: Provide a valid CHANGELOG.md

Provide documentation
10 / 20

0/10 points: Package has an example

No example found.

See package layout guidelines on how to add an example.

10/10 points: 20% or more of the public API has dartdoc comments

  • 233 out of 257 API elements (90.7 %) have documentation comments.
Support multiple platforms
20 / 20

20/20 points: Supports 3 of 3 possible platforms (iOS, Android, Web)

Found 3 issues. Showing the first 2:

Consider supporting these prerelease platforms:

Package does not support Flutter platform Windows

Because:

  • package:firebase_auth_platform_interface/firebase_auth_platform_interface.dart that imports:
  • package:firebase_auth_platform_interface/src/types.dart that imports:
  • package:firebase_auth_platform_interface/src/firebase_auth_exception.dart that imports:
  • package:firebase_core/firebase_core.dart that declares support for platforms: Android, iOS, macOS, Web
Pass static analysis
20 / 30

20/30 points: code has no errors, warnings, lints, or formatting issues

Found 18 issues. Showing the first 2:

INFO: Avoid wrapping fields in getters and setters just to be "safe".

lib/src/method_channel/method_channel_firebase_auth.dart:114:20

    ╷
114 │   UserPlatform get currentUser {
    │                    ^^^^^^^^^^^
    ╵

To reproduce make sure you are using pedantic and run flutter analyze lib/src/method_channel/method_channel_firebase_auth.dart

INFO: Avoid wrapping fields in getters and setters just to be "safe".

lib/src/method_channel/method_channel_firebase_auth.dart:119:7

    ╷
119 │   set currentUser(UserPlatform userPlatform) {
    │       ^^^^^^^^^^^
    ╵

To reproduce make sure you are using pedantic and run flutter analyze lib/src/method_channel/method_channel_firebase_auth.dart

Support up-to-date dependencies
10 / 20

0/10 points: All of the package dependencies are supported in the latest version

  • Could not run pub outdated: pub get failed:
Because firebase_core 0.7.0 depends on firebase_core_platform_interface ^3.0.1 and no versions of firebase_core match >0.7.0 <0.8.0, firebase_core ^0.7.0 requires firebase_core_platform_interface ^3.0.1.
So, because firebase_auth_platform_interface depends on both firebase_core ^0.7.0 and firebase_core_platform_interface ^2.0.0, version solving failed.

10/10 points: Package supports latest stable Dart and Flutter SDKs