Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update README.md #9

Merged
merged 4 commits into from
Nov 20, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 1.0.2+2

* Update README with instructions on how to add `NSHealthShareUsageDescription`

## 1.0.2+1

* Update README with instructions on how to add `NSHealthUpdateUsageDescription`
Expand Down
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,11 @@ This works on iOS 12 (other pub.dev health plugins require a higher iOS version,

* Add to pubspec.yaml
* Use plugin in your code (see examples of all methods below)
* Add permission for [NSHealthUpdateUsageDescription](https://developer.apple.com/documentation/bundleresources/information_property_list/nshealthupdateusagedescription) to `ios/Runner/info.plist`:
* Add permission for [NSHealthShareUsageDescription](https://developer.apple.com/documentation/bundleresources/information_property_list/nshealthshareusagedescription) and [NSHealthUpdateUsageDescription](https://developer.apple.com/documentation/bundleresources/information_property_list/nshealthupdateusagedescription) to `ios/Runner/info.plist`:

```
<key>NSHealthShareUsageDescription</key>
<string>This app would like to access mindful minutes.</string>
<key>NSHealthUpdateUsageDescription</key>
<string>This app would like to save mindful minutes.</string>
```
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ description: A Flutter plugin for saving mindful minutes to Apple Health.
repository: https://github.com/nohli/mindful_minutes
issue_tracker: https://github.com/nohli/mindful_minutes/issues

version: 1.0.2+1
version: 1.0.2+2

environment:
sdk: '>=2.12.0 <3.0.0'
Expand Down