device_restricted_auth 0.1.1
device_restricted_auth: ^0.1.1 copied to clipboard
Device-based login restriction for Flutter apps with Firebase (Android + Windows Desktop)
We analyzed this package 2 days ago, and awarded it 140 pub points (of a possible 160):
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.
10/10 points: 20% or more of the public API has dartdoc comments
35 out of 104 API elements (33.7 %) have documentation comments.
Some symbols that are missing documentation: device_restricted_auth, device_restricted_auth.AndroidDeviceIdProvider.AndroidDeviceIdProvider.new, device_restricted_auth.AuthResult, device_restricted_auth.AuthResult.AuthResult.failure, device_restricted_auth.AuthResult.AuthResult.new.
10/10 points: Package has an example
20/20 points: Supports 1 of 6 possible platforms (iOS, Android, Web, Windows, macOS, Linux)
- ✓ Android
These platforms are not supported:
Package does not support platform `iOS`.
Because:
package:device_restricted_auth/device_restricted_auth.dartthat imports:package:device_restricted_auth/src/platform/windows_device_id_provider.dartthat imports:package:device_info_plus/device_info_plus.dartthat imports:package:device_info_plus/src/device_info_plus_windows.dartthat imports:package:win32_registry/win32_registry.dartthat declares support for platforms:Windows.
Package does not support platform `Windows`.
Because:
package:device_restricted_auth/device_restricted_auth.dartthat imports:package:device_restricted_auth/src/platform/android_device_id_provider.dartthat imports:package:android_id/android_id.dartthat declares support for platforms:Android.
Package does not support platform `Linux`.
Because:
package:device_restricted_auth/device_restricted_auth.dartthat imports:package:device_restricted_auth/src/firebase/firestore_device_repository.dartthat imports:package:cloud_firestore/cloud_firestore.dartthat declares support for platforms:Android,iOS,Windows,macOS,Web.
Package does not support platform `macOS`.
Because:
package:device_restricted_auth/device_restricted_auth.dartthat imports:package:device_restricted_auth/src/platform/windows_device_id_provider.dartthat imports:package:device_info_plus/device_info_plus.dartthat imports:package:device_info_plus/src/device_info_plus_windows.dartthat imports:package:win32_registry/win32_registry.dartthat declares support for platforms:Windows.
Package does not support platform `Web`.
Because:
package:device_restricted_auth/device_restricted_auth.dartthat imports:package:device_restricted_auth/src/platform/android_device_id_provider.dartthat imports:package:android_id/android_id.dartthat declares support for platforms:Android.
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:device_restricted_auth/device_restricted_auth.dartthat imports:package:device_restricted_auth/src/platform/windows_device_id_provider.dartthat imports:package:device_info_plus/device_info_plus.dartthat imports:package:device_info_plus/src/device_info_plus_windows.dartthat imports:package:win32_registry/win32_registry.dartthat declares support for platforms:Windows.
40/50 points: code has no errors, warnings, lints, or formatting issues
Found 33 issues. Showing the first 2:
INFO: Don't invoke 'print' in production code.
lib/src/coordinator/device_restriction_coordinator.dart:58:5
╷
58 │ print('🔍 Checking if device is already bound...');
│ ^^^^^
╵
To reproduce make sure you are using the lints_core and run flutter analyze lib/src/coordinator/device_restriction_coordinator.dart
INFO: Don't invoke 'print' in production code.
lib/src/coordinator/device_restriction_coordinator.dart:59:5
╷
59 │ print(' Device ID: $deviceId');
│ ^^^^^
╵
To reproduce make sure you are using the lints_core and run flutter analyze lib/src/coordinator/device_restriction_coordinator.dart
0/10 points: All of the package dependencies are supported in the latest version
| Package | Constraint | Compatible | Latest | Notes |
|---|---|---|---|---|
android_id |
^0.5.1 |
0.5.2+1 | 0.6.0 | |
cloud_firestore |
^5.5.0 |
5.6.12 | 7.0.0 | |
device_info_plus |
^12.1.0 |
12.4.0 | 13.3.0 | |
firebase_auth |
^5.3.3 |
5.7.0 | 7.0.0 | |
firebase_core |
^3.8.0 |
3.15.2 | 5.0.0 |
Transitive dependencies
| Package | Constraint | Compatible | Latest | Notes |
|---|---|---|---|---|
_flutterfire_internals |
- | 1.3.59 | 1.3.78 | |
async |
- | 2.13.1 | 2.13.1 | |
boolean_selector |
- | 2.1.2 | 2.1.2 | |
characters |
- | 1.4.1 | 1.4.1 | |
clock |
- | 1.1.3 | 1.1.3 | |
cloud_firestore_platform_interface |
- | 6.6.12 | 8.0.8 | |
cloud_firestore_web |
- | 4.4.12 | 5.7.4 | |
collection |
- | 1.19.1 | 1.19.1 | |
device_info_plus_platform_interface |
- | 7.0.3 | 8.1.0 | |
fake_async |
- | 1.3.3 | 1.3.3 | |
ffi |
- | 2.2.0 | 2.2.0 | |
file |
- | 7.0.1 | 7.0.1 | |
firebase_auth_platform_interface |
- | 7.7.3 | 9.1.1 | |
firebase_auth_web |
- | 5.15.3 | 6.3.1 | |
firebase_core_platform_interface |
- | 6.0.3 | 8.1.1 | |
firebase_core_web |
- | 2.24.1 | 4.0.0 | |
http_parser |
- | 4.1.2 | 4.1.2 | |
leak_tracker |
- | 11.0.2 | 11.0.2 | |
leak_tracker_flutter_testing |
- | 3.0.10 | 3.0.10 | |
leak_tracker_testing |
- | 3.0.2 | 3.0.2 | |
matcher |
- | 0.12.20 | 0.12.20 | |
material_color_utilities |
- | 0.13.0 | 0.13.1 | |
meta |
- | 1.19.0 | 1.19.0 | |
path |
- | 1.9.1 | 1.9.1 | |
plugin_platform_interface |
- | 2.1.8 | 2.1.8 | |
source_span |
- | 1.10.2 | 1.10.2 | |
stack_trace |
- | 1.12.2 | 1.12.2 | |
stream_channel |
- | 2.1.4 | 2.1.4 | |
string_scanner |
- | 1.4.1 | 1.4.1 | |
term_glyph |
- | 1.2.2 | 1.2.2 | |
test_api |
- | 0.7.12 | 0.7.15 | |
typed_data |
- | 1.4.0 | 1.4.0 | |
vector_math |
- | 2.4.3 | 2.4.3 | |
vm_service |
- | 15.4.0 | 15.4.0 | |
web |
- | 1.1.1 | 1.1.1 | |
win32 |
- | 5.15.0 | 6.4.0 | |
win32_registry |
- | 2.1.0 | 3.0.3 |
To reproduce run dart pub outdated --no-dev-dependencies --up-to-date --no-dependency-overrides.
Found 5 issues. Showing the first 2:
The constraint `^0.5.1` on android_id does not support the stable version `0.6.0`, that was published 24 days ago.
When android_id is 30 days old, this package will no longer be awarded points in this category.
Try running dart pub upgrade --major-versions android_id to update the constraint.
The constraint `^5.5.0` on cloud_firestore does not support the stable version `6.0.0`.
Try running dart pub upgrade --major-versions cloud_firestore 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.23.19, Flutter 3.47.7, Dart 3.13.5.
Check the analysis log for details.