pedometer_pro 0.2.0
pedometer_pro: ^0.2.0 copied to clipboard
Pedometer & Step Detection. Get step count in a timeRange & stream live steps.
0.2.0 #
- Fix historical query accuracy: preserve exact intervals and valid zeros; return HISTORY_UNAVAILABLE instead of cumulative sensor fallback.
- Add getStepCountDetailed with provider metadata while preserving the integer getStepCount interface and native error codes.
- Fix Android state stream first event, cancellation, shared subscriptions, permission concurrency, main-thread blocking, and engine/activity cleanup.
- Consolidate iOS streams, pair event cancellation correctly, surface motion errors, complete unknown methods, and validate native arguments.
- Make the example lifecycle-safe; show explicit sources, avoid duplicate queries and mixed-source totals, and use calendar date boundaries.
- Update dependencies and build tooling; remove unused icons, legacy configuration, noisy logs and blanket R8 warning suppression.
- Replace invalid CI with validation-only builds, add Dart/Kotlin/Swift regression tests, and document migration. Example requires iOS 15.
0.1.0 #
- iOS supports both CocoaPods and Swift Package Manager. The example app uses Swift Package Manager.
- Renamed the package to
pedometer_pro(Dart, Android, and iOS). - Android
getStepCountnow falls back toTYPE_STEP_COUNTERwhen Google Play Services / Recording API is unavailable (Xiaomi, OPPO, vivo, and other devices without GMS). - Android
getStepCountreads Health Connect first (Samsung Health and other linked apps).play-services-fitnessLocal Recording is only a fallback and does not contain OEM health history. - Added an example app.
- Removed donation links from the documentation.
- Pub.dev listing: https://pub.dev/packages/pedometer_pro
- Repository: https://github.com/whevether/pedometer_pro
See CHANGELOG_zh.md for Chinese.
