nudgecore_v2 5.0.0 copy "nudgecore_v2: ^5.0.0" to clipboard
nudgecore_v2: ^5.0.0 copied to clipboard

Official NudgeCore V2 Flutter plugin for the NudgeNow platform.

2
likes
100/ 160
pub points
3.21k
downloads

We analyzed this package 46 hours ago, and awarded it 100 pub points (of a possible 160):

Passed report section
Follow Dart file conventions
30 / 30trigger folding of the section

Passed check 10/10 points: Provide a valid pubspec.yaml

Passed check 5/5 points: Provide a valid README.md

Passed check 5/5 points: Provide a valid CHANGELOG.md

Passed check 10/10 points: Use an OSI-approved license

Detected license: MIT.

Partially passed report section
Provide documentation
10 / 20trigger folding of the section

Partially passed check 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.

Passed check 10/10 points: Package has an example

Failed report section
Platform support
20 / 20trigger folding of the section

Passed check 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.

Failed check 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.

Failed check 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.

Failed report section
Pass static analysis
30 / 50trigger folding of the section

Failed check 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

Failed report section
Support up-to-date dependencies
10 / 40trigger folding of the section

Failed check 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
Package Constraint Compatible Latest Notes
characters - 1.4.0 1.4.1
collection - 1.19.1 1.19.1
ffi - 2.1.4 2.1.4
file - 7.0.1 7.0.1
material_color_utilities - 0.11.1 0.13.0
meta - 1.16.0 1.17.0
path_provider_android - 2.2.17 2.2.17
path_provider_foundation - 2.4.1 2.4.1
path_provider_linux - 2.2.1 2.2.1
path_provider_platform_interface - 2.1.2 2.1.2
path_provider_windows - 2.3.0 2.3.0
platform - 3.1.6 3.1.6
shared_preferences_android - 2.4.10 2.4.10
shared_preferences_foundation - 2.5.4 2.5.4
shared_preferences_linux - 2.4.1 2.4.1
shared_preferences_platform_interface - 2.4.1 2.4.1
shared_preferences_web - 2.4.3 2.4.3
shared_preferences_windows - 2.4.1 2.4.1
sqflite_android - 2.4.1 2.4.1
sqflite_common - 2.5.5 2.5.5
sqflite_darwin - 2.4.2 2.4.2
sqflite_platform_interface - 2.4.0 2.4.0
synchronized - 3.4.0 3.4.0
url_launcher_android - 6.3.16 6.3.16
url_launcher_ios - 6.3.3 6.3.3
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.4.1 2.4.1
url_launcher_windows - 3.1.4 3.1.4
vector_math - 2.1.4 2.2.0
web - 1.1.1 1.1.1
xdg_directories - 1.1.0 1.1.0

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.

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

Failed check 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.

Weekly downloads

Display as:
By versions:
2
likes
100
points
3.21k
downloads

Publisher

unverified uploader

Weekly Downloads

Official NudgeCore V2 Flutter plugin for the NudgeNow platform.

Homepage

Documentation

API reference

License

MIT (license)

Dependencies

flutter, path, path_provider, plugin_platform_interface, rxdart, shared_preferences, sqflite, url_launcher

More

Packages that depend on nudgecore_v2