mastodon_oauth2 1.0.0 copy "mastodon_oauth2: ^1.0.0" to clipboard
mastodon_oauth2: ^1.0.0 copied to clipboard

Provides the optimized and easiest way to integrate OAuth 2.0 with Mastodon API in Flutter.

14
likes
105/ 140
pub points
58%
popularity

We analyzed this package 14 hours ago, and awarded it 105 pub points (of a possible 140):

failed
Follow Dart file conventions
25 / 30trigger folding of the section

10/10 points: Provide a valid pubspec.yaml

Issue tracker URL doesn't exist.

At the time of the analysis https://github.com/mastodon-dart/mastodon-oauth2/issues was unreachable. Make sure that the website is reachable via HEAD requests.

0/5 points: Provide a valid README.md

Links in `README.md` should be secure. 3 links are insecure.

README.md:217:45

    ╷
217 │ <td align="center" valign="top" width="20%"><a href="http://shinyakato.dev"><img src="https://avatars.githubusercontent.com/u/13072231?v=4?s=100" width="100px;" alt="Shinya Kato / 加藤 真也"/><br /><sub><b>Shinya Kato / 加藤 真也</b></sub></a><br /><a href="https://github.com/mastodon-dart/mastodon-oauth2/commits?author=myConsciousness" title="Code">💻</a> <a href="https://github.com/mastodon-dart/mastodon-oauth2/commits?author=myConsciousness" title="Documentation">📖</a> <a href="#design-myConsciousness" title="Design">🎨</a> <a href="#example-myConsciousness" title="Examples">💡</a> <a href="#maintenance-myConsciousness" title="Maintenance">🚧</a> <a href="https://github.com/mastodon-dart/mastodon-oauth2/commits?author=myConsciousness" title="Tests">⚠️</a> <a href="#tutorial-myConsciousness" title="Tutorials">✅</a></td>
    │                                             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    ╵

Use https URLs instead.

5/5 points: Provide a valid CHANGELOG.md

10/10 points: Use an OSI-approved license

Detected license: BSD-3-Clause.

OK
Provide documentation
20 / 20trigger folding of the section

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

9 out of 21 API elements (42.9 %) have documentation comments.

Some symbols that are missing documentation: mastodon_oauth2, mastodon_oauth2.OAuthResponse, mastodon_oauth2.OAuthResponse.OAuthResponse, mastodon_oauth2.OAuthResponse.accessToken, mastodon_oauth2.OAuthResponse.copyWith.

10/10 points: Package has an example

OK
Platform support
20 / 20trigger folding of the section

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

  • ✓ Android
  • ✓ iOS
  • ✓ Windows
  • ✓ Linux
  • ✓ macOS
  • ✓ Web

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

Package does not support platform `Android`.

Because:

  • package:mastodon_oauth2/mastodon_oauth2.dart that imports:
  • package:mastodon_oauth2/src/mastodon_oauth2_client.dart that imports:
  • package:mastodon_oauth2/src/auth/io_web_auth.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:mastodon_oauth2/mastodon_oauth2.dart that imports:
  • package:mastodon_oauth2/src/mastodon_oauth2_client.dart that imports:
  • package:mastodon_oauth2/src/auth/io_web_auth.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.
failed
Pass static analysis
30 / 50trigger folding of the section

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

Found 3 issues. Showing the first 2:

WARNING: The annotation 'JsonKey' can only be used on fields or getters.

lib/src/response/oauth_response.dart:17:6

   ╷
17 │     @JsonKey(name: 'scope') @ScopeConverter() required List<Scope> scopes,
   │      ^^^^^^^
   ╵

To reproduce make sure you are using the lints_core and run flutter analyze lib/src/response/oauth_response.dart

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

lib/src/response/oauth_response.freezed.dart:180:17

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

To reproduce make sure you are using the lints_core and run flutter analyze lib/src/response/oauth_response.freezed.dart

failed
Support up-to-date dependencies
10 / 20trigger folding of the section

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

Package Constraint Compatible Latest
flutter flutter 0.0.0 0.0.0
flutter_web_auth_2 ^2.0.2 2.2.1 3.1.2
freezed_annotation ^2.2.0 2.4.1 2.4.1
http ^0.13.5 0.13.6 1.2.1
json_annotation ^4.7.0 4.9.0 4.9.0
Transitive dependencies
Package Constraint Compatible Latest
async - 2.11.0 2.11.0
characters - 1.3.0 1.3.0
collection - 1.18.0 1.18.0
flutter_web_auth_2_platform_interface - 2.1.4 3.1.0
flutter_web_plugins - 0.0.0 0.0.0
http_parser - 4.0.2 4.0.2
material_color_utilities - 0.8.0 0.11.1
meta - 1.12.0 1.15.0
path - 1.9.0 1.9.0
plugin_platform_interface - 2.1.8 2.1.8
sky_engine - 0.0.99 0.0.99
source_span - 1.10.0 1.10.0
string_scanner - 1.2.0 1.2.0
term_glyph - 1.2.1 1.2.1
typed_data - 1.3.2 1.3.2
url_launcher - 6.2.6 6.2.6
url_launcher_android - 6.3.2 6.3.2
url_launcher_ios - 6.3.0 6.3.0
url_launcher_linux - 3.1.1 3.1.1
url_launcher_macos - 3.2.0 3.2.0
url_launcher_platform_interface - 2.3.2 2.3.2
url_launcher_web - 2.3.1 2.3.1
url_launcher_windows - 3.1.1 3.1.1
vector_math - 2.1.4 2.1.4
web - 0.5.1 0.5.1
window_to_front - 0.0.3 0.0.3

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

The constraint `^2.0.2` 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.

The constraint `^0.13.5` on http does not support the stable version `1.0.0`.

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

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

Analyzed with Pana 0.22.3, Flutter 3.22.0, Dart 3.4.0.

Check the analysis log for details.

14
likes
105
pub points
58%
popularity

Publisher

verified publishershinyakato.dev

Provides the optimized and easiest way to integrate OAuth 2.0 with Mastodon API in Flutter.

Homepage
Repository (GitHub)
View/report issues
Contributing

Documentation

API reference

License

BSD-3-Clause (LICENSE)

Dependencies

flutter, flutter_web_auth_2, freezed_annotation, http, json_annotation

More

Packages that depend on mastodon_oauth2