nudgecore_v2 3.0.5
nudgecore_v2: ^3.0.5 copied to clipboard
Nudge Core V2
We analyzed this package 4 days ago, and awarded it 90 pub points (of a possible 160):
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 50 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
10/10 points: Use an OSI-approved license
Detected license: MIT
.
0/10 points: 20% or more of the public API has dartdoc comments
33 out of 372 API elements (8.9 %) have documentation comments.
Providing good documentation for libraries, classes, functions, and other API elements improves code readability and helps developers find and use your API. Document at least 20% of the public API elements.
To highlight public API members missing documentation consider enabling the public_member_api_docs
lint.
Some symbols that are missing documentation: DeviceDetailsTracker
, GlobalCallbacks
, LifecycleObserver
, NudgeCallbackManager
, NudgeCallbacks
.
10/10 points: Package has an example
20/20 points: Supports 3 of 6 possible platforms (iOS, Android, Web, Windows, macOS, Linux)
-
✓ Android
-
✓ iOS
-
✓ Windows
These platforms are not supported:
Package does not support platform `Linux`.
Because:
package:nudgecore_v2/nudgecore_v2.dart
that declares support for platforms:Android
,iOS
,Windows
.
Package does not support platform `macOS`.
Because:
package:nudgecore_v2/nudgecore_v2.dart
that declares support for platforms:Android
,iOS
,Windows
.
Package does not support platform `Web`.
Because:
package:nudgecore_v2/nudgecore_v2.dart
that declares support for platforms:Android
,iOS
,Windows
.
These issues are present but do not affect the score, because they may not originate in your package:
Package does not support platform `Windows`.
Because:
package:nudgecore_v2/nudgecore_v2.dart
that imports:package:nudgecore_v2/services/callbacks/nudge_callback_manager.dart
that imports:package:nudgecore_v2/utilities/n_logger.dart
that imports:package:nudgecore_v2/services/core/nudge.dart
that imports:package:nudgecore_v2/helpers/db.dart
that imports:package:sqflite/sqflite.dart
that declares support for platforms:Android
,iOS
,macOS
.
0/0 points: WASM compatibility
Package not compatible with runtime wasm
Because:
package:nudgecore_v2/nudgecore_v2.dart
that imports:package:nudgecore_v2/services/callbacks/nudge_callback_manager.dart
that imports:package:nudgecore_v2/utilities/n_logger.dart
that imports:package:nudgecore_v2/services/core/nudge.dart
that imports:package:nudgecore_v2/services/native/native_services.dart
that imports:package:nudgecore_v2/services/native/native_callback_handler.dart
that imports:package:nudgecore_v2/utilities/screenshot.dart
that imports:package:path_provider/path_provider.dart
that imports:package:path_provider_platform_interface/path_provider_platform_interface.dart
that imports:package:path_provider_platform_interface/src/method_channel_path_provider.dart
that imports:package:platform/platform.dart
that imports:package:platform/src/interface/local_platform.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.
0/0 points: Swift Package Manager support
Package does not support the Swift Package Manager on iOS
It does not contain ios/nudgecore_v2/Package.swift
.
This package for iOS or macOS does not support the Swift Package Manager. It will not receive full points in a future version of the scoring model.
See https://docs.flutter.dev/to/spm for details.
30/50 points: code has no errors, warnings, lints, or formatting issues
Found 29 issues. Showing the first 2:
WARNING: The value of the field '_method' isn't used.
lib/models/nudge_callback_data.dart:5:16
╷
5 │ final String _method;
│ ^^^^^^^
╵
To reproduce make sure you are using the lints_core and run flutter analyze lib/models/nudge_callback_data.dart
WARNING: Unused import: 'package:flutter/foundation.dart'.
lib/services/callbacks/nudge_callback_manager.dart:1:8
╷
1 │ import 'package:flutter/foundation.dart';
│ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
╵
To reproduce make sure you are using the lints_core and run flutter analyze lib/services/callbacks/nudge_callback_manager.dart
0/10 points: All of the package dependencies are supported in the latest version
Package | Constraint | Compatible | Latest | Notes |
---|---|---|---|---|
path |
any |
1.9.1 | 1.9.1 | |
path_provider |
any |
2.1.5 | 2.1.5 | |
plugin_platform_interface |
^2.0.2 |
2.1.8 | 2.1.8 | |
rxdart |
^0.27.7 |
0.27.7 | 0.28.0 | |
shared_preferences |
any |
2.5.3 | 2.5.3 | |
sqflite |
any |
2.4.2 | 2.4.2 | |
url_launcher |
any |
6.3.2 | 6.3.2 |
Transitive dependencies
To reproduce run dart pub outdated --no-dev-dependencies --up-to-date --no-dependency-overrides
.
The constraint `^0.27.7` on rxdart does not support the stable version `0.28.0`.
Try running dart pub upgrade --major-versions rxdart
to update the constraint.
10/10 points: Package supports latest stable Dart and Flutter SDKs
0/20 points: Compatible with dependency constraint lower bounds
downgrade analysis failed failed with 2 errors:
ARGUMENT_TYPE_NOT_ASSIGNABLE
-lib/helpers/db.dart:20:9
- The argument type 'String?' can't be assigned to the parameter type 'String'.UNDEFINED_METHOD
-lib/services/callbacks/nudge_callback_manager.dart:42:11
- The method 'launchUrl' isn't defined for the type 'NudgeCallbackManager'.
Run flutter pub downgrade
and then flutter analyze
to reproduce the above problem.
You may run dart pub upgrade --tighten
to update your dependency constraints, see dart.dev/go/downgrade-testing for details.
Analyzed with Pana 0.22.23
, Flutter 3.35.4
, Dart 3.9.2
.
Check the analysis log for details.