nudgecore_v2 5.0.0
nudgecore_v2: ^5.0.0 copied to clipboard
Official NudgeCore V2 Flutter plugin for the NudgeNow platform.
We analyzed this package 46 hours ago, and awarded it 100 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
.
0/10 points: 20% or more of the public API has dartdoc comments
40 out of 422 API elements (9.5 %) 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 27 issues. Showing the first 2:
WARNING: The declaration '_setTrackCallback' isn't referenced.
lib/services/core/nudge.dart:408:8
╷
408 │ void _setTrackCallback(
│ ^^^^^^^^^^^^^^^^^
╵
To reproduce make sure you are using the lints_core and run flutter analyze lib/services/core/nudge.dart
WARNING: The value of the local variable 'height' isn't used.
lib/services/native/native_callback_handler.dart:36:16
╷
36 │ final num? height = call.arguments['HEIGHT'];
│ ^^^^^^
╵
To reproduce make sure you are using the lints_core and run flutter analyze lib/services/native/native_callback_handler.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.1 | 6.3.1 |
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:44: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.21
, Flutter 3.32.4
, Dart 3.8.1
.
Check the analysis log for details.