kvs-coder / health_kit_reporter

A Flutter wrapper for the HealthKitReporter library
https://pub.dev/packages/health_kit_reporter
MIT License
38 stars 38 forks source link

Deprecated usage warning #53

Open shilangyu opened 1 year ago

shilangyu commented 1 year ago

When building a flutter app which uses this plugin, a deprecation warning is issued:

/Users/xxx/.pub-cache/hosted/pub.dartlang.org/health_kit_reporter-2.1.0/ios/Classes/Extensions+SwiftHealthKitReporterPlugin.swift:626:45: warning: 'sampleQuery(type:predicate:sortDescriptors:limit:resultsHandler:)' was deprecated in iOS 11: Use special functions for fetching Quantity/Category/Workout samples. For Quantity Samples will return with SI units
                let query = try reporter.reader.sampleQuery(

I do not know much about iOS development so I cannot comment on it more than just pasting the warning here.