fhir_auth 0.11.0-dev.1 copy "fhir_auth: ^0.11.0-dev.1" to clipboard
fhir_auth: ^0.11.0-dev.1 copied to clipboard

Platformweb

A Dart/Flutter package for authorization & authentication, includes SMART on FHIR and Google sign-in

7
likes
130/ 160
pub points
143
downloads

We analyzed this package 5 days ago, and awarded it 130 pub points (of a possible 160):

OK
Follow Dart file conventions
30 / 30trigger folding of the section

10/10 points: Provide a valid pubspec.yaml

5/5 points: Provide a valid README.md

5/5 points: Provide a valid CHANGELOG.md

10/10 points: Use an OSI-approved license

Detected license: MIT.

OK
Provide documentation
20 / 20trigger folding of the section

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

112 out of 180 API elements (62.2 %) have documentation comments.

Some symbols that are missing documentation: authenticate, base_authentication, base_authentication.BaseAuthentication.authenticate, clinical_scope, clinical_scope.

10/10 points: Package has an example

failed
Platform support
20 / 20trigger folding of the section

20/20 points: Supports 1 of 6 possible platforms (iOS, Android, Web, Windows, macOS, Linux)

  • ✓ Web

These platforms are not supported:

Package does not support platform `Android`.

Because:

  • package:fhir_auth/dstu2.dart that imports:
  • package:fhir_auth/fhir_client/export.dart that imports:
  • package:fhir_auth/fhir_client/smart_fhir_client.dart that imports:
  • package:fhir_auth/fhir_client/authenticate/device_authentication.dart that imports:
  • package:flutter_web_auth_2/flutter_web_auth_2.dart that imports:
  • package:flutter_web_auth_2/src/flutter_web_auth_2_windows.dart that imports:
  • package:window_to_front/window_to_front.dart that declares support for platforms: Windows, Linux, macOS.
Package does not support platform `iOS`.

Because:

  • package:fhir_auth/dstu2.dart that imports:
  • package:fhir_auth/fhir_client/export.dart that imports:
  • package:fhir_auth/fhir_client/smart_fhir_client.dart that imports:
  • package:fhir_auth/fhir_client/authenticate/device_authentication.dart that imports:
  • package:flutter_web_auth_2/flutter_web_auth_2.dart that imports:
  • package:flutter_web_auth_2/src/flutter_web_auth_2_windows.dart that imports:
  • package:window_to_front/window_to_front.dart that declares support for platforms: Windows, Linux, macOS.
Package does not support platform `Windows`.

Because:

  • package:fhir_auth/dstu2.dart that imports:
  • package:fhir_auth/fhir_client/export.dart that imports:
  • package:fhir_auth/fhir_client/gcp_fhir_client.dart that imports:
  • package:google_sign_in/google_sign_in.dart that declares support for platforms: Android, iOS, macOS, Web.
Package does not support platform `Linux`.

Because:

  • package:fhir_auth/dstu2.dart that imports:
  • package:fhir_auth/fhir_client/export.dart that imports:
  • package:fhir_auth/fhir_client/gcp_fhir_client.dart that imports:
  • package:google_sign_in/google_sign_in.dart that declares support for platforms: Android, iOS, macOS, Web.
Package not compatible with platform macOS

Because:

  • package:fhir_auth/fhir_client/authenticate/web_authentication.dart that imports:
  • dart:html

These issues are present but do not affect the score, because they may not originate in your package:

Package does not support platform `Web`.

Because:

  • package:fhir_auth/fhir_client/authenticate/device_authentication.dart that imports:
  • package:flutter_web_auth_2/flutter_web_auth_2.dart that imports:
  • package:flutter_web_auth_2/src/flutter_web_auth_2_linux.dart that imports:
  • package:window_to_front/window_to_front.dart that declares support for platforms: Windows, Linux, macOS.

0/0 points: WASM compatibility

Package not compatible with runtime wasm

Because:

  • package:fhir_auth/fhir_client/authenticate/device_authentication.dart that imports:
  • package:flutter_web_auth_2/flutter_web_auth_2.dart that imports:
  • package:flutter_web_auth_2/src/flutter_web_auth_2_windows.dart that imports:
  • dart:io

This package is not compatible with runtime wasm, and will not be rewarded full points in a future version of the scoring model.

See https://dart.dev/web/wasm for details.

failed
Pass static analysis
30 / 50trigger folding of the section

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

Found 4 issues. Showing the first 2:

WARNING: The parameter type of '==' operators should be non-nullable.

lib/scopes/dstu2/scopes.freezed.dart:371:17

    ╷
371 │   bool operator ==(dynamic other) {
    │                 ^^
    ╵

To reproduce make sure you are using the lints_core and run flutter analyze lib/scopes/dstu2/scopes.freezed.dart

WARNING: The parameter type of '==' operators should be non-nullable.

lib/scopes/r4/scopes.freezed.dart:371:17

    ╷
371 │   bool operator ==(dynamic other) {
    │                 ^^
    ╵

To reproduce make sure you are using the lints_core and run flutter analyze lib/scopes/r4/scopes.freezed.dart

failed
Support up-to-date dependencies
30 / 40trigger folding of the section

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

Package Constraint Compatible Latest
collection ^1.17.1 1.19.0 1.19.1
crypto ^3.0.3 3.0.6 3.0.6
fhir ^0.11.4 0.11.4 0.12.0
flutter flutter 0.0.0 0.0.0
flutter_web_auth_2 ^2.2.1 2.2.1 4.1.0
flutter_web_plugins flutter 0.0.0 0.0.0
freezed_annotation ^2.4.1 2.4.4 2.4.4
google_sign_in ^6.1.5 6.2.2 6.2.2
http ^1.1.0 1.2.2 1.2.2
http_parser ^4.0.2 4.1.1 4.1.1
jwt_decoder ^2.0.1 2.0.1 2.0.1
oauth2 ^2.0.2 2.0.3 2.0.3
url_launcher ^6.1.14 6.3.1 6.3.1
Transitive dependencies
Package Constraint Compatible Latest
async - 2.12.0 2.12.0
characters - 1.3.0 1.4.0
fixnum - 1.1.1 1.1.1
flutter_web_auth_2_platform_interface - 2.1.4 4.1.0
google_identity_services_web - 0.3.3 0.3.3
google_sign_in_android - 6.1.34 6.1.34
google_sign_in_ios - 5.7.8 5.7.8
google_sign_in_platform_interface - 2.4.5 2.4.5
google_sign_in_web - 0.12.4+3 0.12.4+3
json_annotation - 4.9.0 4.9.0
material_color_utilities - 0.11.1 0.12.0
meta - 1.15.0 1.16.0
path - 1.9.1 1.9.1
petitparser - 6.0.2 6.0.2
plugin_platform_interface - 2.1.8 2.1.8
sky_engine - 0.0.0 0.0.0
source_span - 1.10.1 1.10.1
sprintf - 7.0.0 7.0.0
string_scanner - 1.4.1 1.4.1
term_glyph - 1.2.2 1.2.2
typed_data - 1.4.0 1.4.0
url_launcher_android - 6.3.14 6.3.14
url_launcher_ios - 6.3.2 6.3.2
url_launcher_linux - 3.2.1 3.2.1
url_launcher_macos - 3.2.2 3.2.2
url_launcher_platform_interface - 2.3.2 2.3.2
url_launcher_web - 2.3.3 2.3.3
url_launcher_windows - 3.1.3 3.1.3
uuid - 4.5.1 4.5.1
vector_math - 2.1.4 2.1.4
web - 1.1.0 1.1.0
window_to_front - 0.0.3 0.0.3
xml - 6.5.0 6.5.0
xml2json - 6.2.5 6.2.5
yaml - 3.1.3 3.1.3

To reproduce run dart pub outdated --no-dev-dependencies --up-to-date --no-dependency-overrides.

The constraint `^0.11.4` on fhir does not support the stable version `0.12.0`.

Try running dart pub upgrade --major-versions fhir to update the constraint.

The constraint `^2.2.1` on flutter_web_auth_2 does not support the stable version `3.0.0`.

Try running dart pub upgrade --major-versions flutter_web_auth_2 to update the constraint.

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

20/20 points: Compatible with dependency constraint lower bounds

pub downgrade does not expose any static analysis error.

Analyzed with Pana 0.22.17, Flutter 3.27.0, Dart 3.6.0.

Check the analysis log for details.

7
likes
130
points
143
downloads

Publisher

verified publisherfhirfli.dev

Weekly Downloads

A Dart/Flutter package for authorization & authentication, includes SMART on FHIR and Google sign-in

Homepage
Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

collection, crypto, fhir, flutter, flutter_web_auth_2, flutter_web_plugins, freezed_annotation, google_sign_in, http, http_parser, jwt_decoder, oauth2, url_launcher

More

Packages that depend on fhir_auth