health_sync_plugin 0.0.13 copy "health_sync_plugin: ^0.0.13" to clipboard
health_sync_plugin: ^0.0.13 copied to clipboard

PlatformAndroid

A Flutter plugin to sync health data from Health Connect-compatible apps.

140/ 160
pub points
57
downloads

We analyzed this package 10 days ago, and awarded it 140 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.

Passed report section
Provide documentation
20 / 20trigger folding of the section

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

15 out of 41 API elements (36.6 %) have documentation comments.

Some symbols that are missing documentation: health_history_service, health_sync_plugin, health_sync_plugin.ForegroundTaskService, health_sync_plugin.ForegroundTaskService.ForegroundTaskService.new, health_sync_plugin.HealthAverageService.

Passed check 10/10 points: Package has an example

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

Passed check 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:health_sync_plugin/health_sync_plugin.dart that declares support for platforms: Android.
Package does not support platform `Windows`.

Because:

  • package:health_sync_plugin/health_sync_plugin.dart that declares support for platforms: Android.
Package does not support platform `Linux`.

Because:

  • package:health_sync_plugin/health_sync_plugin.dart that declares support for platforms: Android.
Package does not support platform `macOS`.

Because:

  • package:health_sync_plugin/health_sync_plugin.dart that declares support for platforms: Android.
Package does not support platform `Web`.

Because:

  • package:health_sync_plugin/health_sync_plugin.dart that 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:health_sync_plugin/health_sync_plugin.dart that imports:
  • package:health_sync_plugin/src/services/health_history_service.dart that imports:
  • package:health/health.dart that imports:
  • package:device_info_plus/device_info_plus.dart that imports:
  • package:device_info_plus/src/device_info_plus_windows.dart that imports:
  • package:win32_registry/win32_registry.dart that declares support for platforms: Windows.

Built-in Kotlin support:

Legacy Kotlin configuration detected in `android/build.gradle`.

This plugin applies the Kotlin Gradle Plugin (KGP) or uses the android.kotlinOptions{} block.

Note: This Android plugin does not support built-in Kotlin. In the future, this might affect scoring. See https://docs.flutter.dev/release/breaking-changes/migrate-to-built-in-kotlin/for-plugin-authors for details.

Partially passed report section
Pass static analysis
40 / 50trigger folding of the section

Partially passed check 40/50 points: code has no errors, warnings, lints, or formatting issues

Found 10 issues. Showing the first 2:

INFO: Don't invoke 'print' in production code.

lib/src/background/health_sync_task_handler.dart:24:9

   ╷
24 │         print('Firebase already initialized or error: $e');
   │         ^^^^^
   ╵

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

INFO: Don't invoke 'print' in production code.

lib/src/background/health_sync_task_handler.dart:37:5

   ╷
37 │     print('⏰ Foreground onRepeatEvent: syncing health data...');
   │     ^^^^^
   ╵

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

Failed report section
Support up-to-date dependencies
30 / 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
awesome_notifications >=0.10.1 <2.0.0 0.12.1 0.12.1
cloud_firestore >=5.6.9 <7.0.0 6.9.0 6.9.0
encrypt >=5.0.3 <6.0.0 5.0.3 5.0.3
firebase_core >=3.14.0 <5.0.0 4.14.0 4.14.0
flutter_foreground_task >=9.1.0 <11.0.0 10.0.0 11.0.2
flutter_local_notifications >=19.2.1 <21.0.0 20.1.0 22.3.0
flutter_secure_storage >=9.2.4 <10.0.0 9.2.4 11.0.0
health >=13.0.1 <14.0.0 13.3.1 13.3.2
http >=1.4.0 <3.0.0 1.6.0 1.6.0
intl >=0.20.2 <2.0.0 0.20.3 0.20.3
permission_handler >=11.3.1 <13.0.0 12.0.3 13.0.1
plugin_platform_interface ^2.0.2 2.1.8 2.1.8
shared_preferences >=2.5.3 <4.0.0 2.5.5 2.5.5
url_launcher >=6.3.1 <8.0.0 6.3.2 6.3.2
Transitive dependencies
Package Constraint Compatible Latest Notes
_flutterfire_internals - 1.3.77 1.3.77
args - 2.7.0 2.7.0
asn1lib - 1.6.5 1.6.5
async - 2.13.1 2.13.1
carp_serializable - 2.0.1 3.0.0
characters - 1.4.1 1.4.1
clock - 1.1.3 1.1.3
cloud_firestore_platform_interface - 8.0.7 8.0.7
cloud_firestore_web - 5.7.3 5.7.3
code_assets - 2.0.0 2.0.0
collection - 1.19.1 1.19.1
convert - 3.1.2 3.1.2
crypto - 3.0.7 3.0.7
dbus - 0.7.15 0.7.15
device_info_plus - 12.4.0 13.2.0
device_info_plus_platform_interface - 7.0.3 8.1.0
ffi - 2.2.0 2.2.0
file - 7.0.1 7.0.1
firebase_core_platform_interface - 8.1.1 8.1.1
firebase_core_web - 3.11.0 3.11.0
flutter_local_notifications_linux - 7.0.0 8.0.1
flutter_local_notifications_platform_interface - 10.0.0 12.2.0
flutter_local_notifications_windows - 2.0.1 3.1.1
flutter_secure_storage_linux - 1.2.3 3.0.2
flutter_secure_storage_macos - 3.1.3 4.0.0 Discontinued
flutter_secure_storage_platform_interface - 1.1.2 2.0.3
flutter_secure_storage_web - 1.2.1 2.1.1
flutter_secure_storage_windows - 3.1.2 4.2.2
hooks - 2.2.0 2.2.0
http_parser - 4.1.2 4.1.2
jni - 1.0.3 1.0.3
jni_flutter - 1.0.3 1.0.3
jni_util - 1.0.0 1.0.0
js - 0.6.7 0.7.2 Discontinued
json_annotation - 4.12.0 4.12.0
logging - 1.3.0 1.3.0
material_color_utilities - 0.13.0 0.13.1
meta - 1.19.0 1.19.0
objective_c - 9.6.0 9.6.0
package_config - 3.0.0 3.0.0
path - 1.9.1 1.9.1
path_provider - 2.1.6 2.1.6
path_provider_android - 2.3.1 2.3.1
path_provider_foundation - 2.6.0 2.6.0
path_provider_linux - 2.2.2 2.2.2
path_provider_platform_interface - 2.1.3 2.1.3
path_provider_windows - 2.3.0 2.3.0
permission_handler_android - 13.0.1 14.0.0
permission_handler_apple - 9.6.1 9.6.1
permission_handler_html - 0.1.4+1 0.1.4+1
permission_handler_platform_interface - 4.4.0 4.4.0
permission_handler_windows - 0.2.2 0.2.2
petitparser - 7.0.2 7.0.2
platform - 3.1.6 3.1.6
pointycastle - 3.9.1 4.0.0
pub_semver - 2.2.1 2.2.1
record_use - 1.1.1 1.1.1
shared_preferences_android - 2.4.28 2.4.28
shared_preferences_foundation - 2.5.7 2.5.7
shared_preferences_linux - 2.4.1 2.4.1
shared_preferences_platform_interface - 2.4.2 2.4.2
shared_preferences_web - 2.4.3 2.4.3
shared_preferences_windows - 2.4.1 2.4.1
source_span - 1.10.2 1.10.2
string_scanner - 1.4.1 1.4.1
term_glyph - 1.2.2 1.2.2
timezone - 0.10.1 0.11.1
typed_data - 1.4.0 1.4.0
url_launcher_android - 6.3.33 6.3.33
url_launcher_ios - 6.4.2 6.4.2
url_launcher_linux - 3.2.3 3.2.3
url_launcher_macos - 3.2.6 3.2.6
url_launcher_platform_interface - 2.3.2 2.3.2
url_launcher_web - 2.4.3 2.4.3
url_launcher_windows - 3.1.6 3.1.6
vector_math - 2.4.2 2.4.2
web - 1.1.1 1.1.1
win32 - 5.15.0 6.4.0
win32_registry - 2.1.0 3.0.3
xdg_directories - 1.1.0 1.1.0
xml - 6.6.1 7.0.1
yaml - 3.1.4 3.1.4

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

Found 4 issues. Showing the first 2:

The constraint `>=9.1.0 <11.0.0` on flutter_foreground_task does not support the stable version `11.0.0`, that was published 16 days ago.

When flutter_foreground_task is 30 days old, this package will no longer be awarded points in this category.

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

The constraint `>=19.2.1 <21.0.0` on flutter_local_notifications does not support the stable version `21.0.0`.

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

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

Passed check 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.0, Dart 3.13.0.

Check the analysis log for details.

Weekly downloads

Display as:
By versions: