Skip to content
This repository has been archived by the owner on Dec 4, 2023. It is now read-only.

Update to latest #1

Open
wants to merge 179 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
179 commits
Select commit Hold shift + click to select a range
d0029e8
Support for "nutrition.calories" and "nutrition.carbohydrates" in `qu…
sgilroy Oct 20, 2016
8cfd54e
Support for "nutrition.calories" and "nutrition.carbohydrates" in `qu…
sgilroy Oct 21, 2016
2b06ac0
Support all of the Google Fit nutrient fields for query and queryAggr…
sgilroy Oct 21, 2016
33a6eeb
Remove use of Java 7 feature. [https://github.com/dariosalvi78/cordov…
sgilroy Oct 21, 2016
3b878db
Merge pull request #18 from TwineHealth/nutrition
Oct 21, 2016
a0b9c0d
better readme
Oct 21, 2016
d0fd05d
add type to readme
Nov 18, 2016
481321a
adding query of nutrition
Nov 18, 2016
e259093
fixed minor bugs in query and query aggregated
Nov 21, 2016
cc99dfb
added water
Nov 21, 2016
12b2512
added store of nutrition in roadmap
Nov 21, 2016
44577c4
test commit
Nov 21, 2016
a6a6e6e
adding nutrition.X to HK except nutrition
Nov 21, 2016
bc424fd
added support for nutrition in query for iOS
Nov 22, 2016
0c0ca57
added support for aggregated nutrients plus some simplifications of t…
Nov 22, 2016
67f4a7b
better readme
Nov 22, 2016
32f2066
even better readme!
Nov 22, 2016
d8a6235
remove unit from table
Nov 22, 2016
1f36088
use of standard keys for item and meal type
Nov 23, 2016
223cf65
separates isAvailable from prompting the user to download GF
Nov 23, 2016
737de49
some more details about nutrition
Nov 23, 2016
3aed3b6
added filtered flag to steps for Android
Nov 23, 2016
3a5ced4
udpated readme
Nov 23, 2016
dfe2004
needs cordova 6 at least (probably a lower version would do anyway, b…
Nov 23, 2016
f779abc
release 0.8.0
Nov 23, 2016
8a24946
nicer read
Nov 25, 2016
3abc241
added comment about not having fit installed
dariosalvi78 Dec 7, 2016
f947f1e
use latest version of fitness API
Dec 8, 2016
fd97538
allowing latest version of Play Services
Dec 9, 2016
e2a4795
typo in the readme
Dec 9, 2016
485f2d8
release 0.8.1
Dec 12, 2016
665427b
added comment about overwriting datapoints
dariosalvi78 Dec 16, 2016
6e2be28
added isAuthorized() for Fit
Dec 20, 2016
6b26ada
implements isAuthorized for iOS too
Dec 20, 2016
cb48eca
fixes #28
Dec 20, 2016
a519dbd
fixes #33
Dec 20, 2016
cc3b13c
release 0.8.2
Dec 20, 2016
b1f1276
fixes #34
dariosalvi78 Dec 22, 2016
9492b61
fixes #35
Jan 3, 2017
7f55922
just some comments
Jan 3, 2017
417b21d
release 0.8.3
Jan 3, 2017
783b705
stupid replication
Jan 12, 2017
511a132
few corrections in the readme
Jan 23, 2017
e6de29d
get calories when querying aggregated activities but only when no tim…
Feb 17, 2017
6373d3c
updated documentation
Feb 17, 2017
c221286
added isAuthorized to the Android JS
Mar 7, 2017
8b73b0e
updated readme
Mar 7, 2017
bfd9816
release 0.8.4
Mar 7, 2017
8680943
forgot to use datatypes in isAuthorized()
Mar 7, 2017
a83b095
release 0.8.5
Mar 7, 2017
14493d8
first attempt to support delete() on iOS
Mar 13, 2017
2bc8542
simplified and corrected delete in iOS
Mar 13, 2017
4768c87
fixed a bug in store, when no energy is specified
Mar 14, 2017
7f170da
delete of workouts
Mar 14, 2017
162107c
draft of delete() for Android
Mar 14, 2017
e03e00f
removed unnecessary code from delete()
Mar 15, 2017
37e403f
release 0.9.0
Mar 15, 2017
f9a5525
added editorconfig
aggarwalankush Apr 10, 2017
6e09bdb
ios allows read or write only permissions
aggarwalankush Apr 10, 2017
83a81ae
[docs] - read or write only permissions
aggarwalankush Apr 10, 2017
0f8985e
plugin accepts variable name for health description
aggarwalankush Apr 10, 2017
13f3320
android allows read or write only permissions
aggarwalankush Apr 10, 2017
687a921
[docs] - health description variables
aggarwalankush Apr 10, 2017
fd2f443
Merge pull request #45 from aggarwalankush/master
Apr 11, 2017
19acebb
[docs] a bit more precise readme and some more comments in the java c…
Apr 11, 2017
07f2f57
adding support for HK category sample types in save()
Apr 11, 2017
ca7ac22
confirmed support for sleep
Apr 11, 2017
6f02e79
added store of nutrition in iOS
Apr 11, 2017
ca76fb2
release 0.9.1
Apr 11, 2017
81a308c
added explanation of quirky isAuthorized in HK
Apr 11, 2017
c08fb1d
[docs] just fixing typos
Apr 11, 2017
dbc1031
bug when storing nutrition: no need to convert to grams!
Apr 12, 2017
bef74fb
[docs] nicer readme
May 3, 2017
f35c144
removed calories from aggregated query of activity
May 3, 2017
1e230ce
added support for nutrition in java
May 15, 2017
bc9d94d
release 0.10.0
May 15, 2017
ca9474c
Added support for HKFoodBrandName metadata key in iOS
JulianLaval May 28, 2017
451dafc
Updated README to include brand_name in nutrition response example
JulianLaval May 28, 2017
ad0c112
Clarified meal_type and brand_name platform availability in README
JulianLaval May 29, 2017
d485c14
Fixed README error - nutrition meal_type property is also available o…
JulianLaval May 29, 2017
14021ec
Merge pull request #51 from Distillr/master
May 29, 2017
5a209ca
Initial iOS support for reading blood glucose
JulianLaval Jun 3, 2017
eb4e52a
Initial iOS support for reading blood glucose
JulianLaval Jun 3, 2017
b9920ce
Merge branch 'master' of https://github.com/Distillr/cordova-plugin-h…
JulianLaval Jun 3, 2017
92154a0
Fixing issue with BG unit
JulianLaval Jun 3, 2017
e318474
Fixed README
JulianLaval Jun 4, 2017
5b11eeb
Prettified README :tada: :bikini:
JulianLaval Jun 4, 2017
2b1b3ce
Changed fixed blood glucose unit to mmol/L
JulianLaval Jun 4, 2017
df9c964
Merge pull request #53 from Distillr/master
dariosalvi78 Jun 4, 2017
3bf326e
Fix for mmol/L blood glucose support
JulianLaval Jun 4, 2017
a035579
Fix for mmol/L blood glucose support
JulianLaval Jun 4, 2017
0590335
Merge branch 'master' of https://github.com/Distillr/cordova-plugin-h…
JulianLaval Jun 4, 2017
75ede96
[docs] added a long term objective
dariosalvi78 Jun 5, 2017
3627f88
Merge pull request #55 from Distillr/master
dariosalvi78 Jun 5, 2017
212797c
Attempting to fix UIRequiredDeviceCapabilities issue with iOS
JulianLaval Jun 6, 2017
6f93d42
Removed HealthKit device support requirement from plugin
JulianLaval Jun 6, 2017
9fdcb79
Added clarification on iOS/Android quirks when it comes to querying a…
JulianLaval Jun 6, 2017
a0a7339
Merge pull request #61 from Distillr/master
dariosalvi78 Jun 7, 2017
dd20d11
Merge branch 'docs/query-quirks'
JulianLaval Jun 7, 2017
3c27765
Merge pull request #62 from Distillr/master
dariosalvi78 Jun 7, 2017
07f360d
- Added disconnect method
Jun 14, 2017
72c6b6f
- Changed disconnect method
Jun 15, 2017
1590c51
Merge pull request #63 from hardikdevios/master
dariosalvi78 Jun 15, 2017
e379d4b
release 0.10.1
Jun 19, 2017
9496a49
better disconnect on Android and now documented
Jun 20, 2017
98871e3
fixes #60
Jun 20, 2017
1233844
better and complete disconnection from Fit
Jun 21, 2017
372f088
release 0.10.2
Jun 21, 2017
6965218
starting to add blood glucose for Fit
Jun 21, 2017
10f049b
added gitter channel
dariosalvi78 Jun 27, 2017
1675099
added health data types to request authorization
Aug 9, 2017
5ca02a0
adding blood glucose to query
Aug 9, 2017
60684d5
added auth for write data and completed glucose on android
Aug 9, 2017
042c819
updated roadmap
Aug 9, 2017
c4d0c2b
as done in https://github.com/Telerik-Verified-Plugins/HealthKit/comm…
Aug 9, 2017
29488e7
refactoring blood glucose in iOS to use metadata too
Aug 9, 2017
ea4d6e4
fixes #65
Aug 9, 2017
b0e2050
fixed README
Aug 10, 2017
14ace21
always parses correct unit
Aug 10, 2017
f14a588
fixed issue when returning glucose
Aug 10, 2017
1b57242
[docs] fixing README (again)
Aug 10, 2017
fa0cb47
[docs] fixing README (again)
Aug 10, 2017
bf26687
[docs] added comments about health data types permission in Google Fit
Aug 10, 2017
3d17e36
release 1.0.0
Aug 10, 2017
2d27038
[docs] some notes about health data
Aug 10, 2017
03e9cc9
added workout only identifier
Aug 18, 2017
7f4d61b
[docs] added documentation about use of workouts instead of activity …
Aug 18, 2017
1ed7d8e
adding workouts in query too
Aug 21, 2017
41b5cc7
fixes #75
Oct 3, 2017
bd74a7a
adding support for HKBloodGlucoseMealTime in iOS
Oct 6, 2017
838c0c5
release 1.1.0
Oct 9, 2017
c308e8b
Revert "release 1.1.0"
Oct 9, 2017
4898a1b
Revert "Revert "release 1.1.0""
Oct 9, 2017
aeee275
Pass bucket in when querying calories.active
Earthstar Oct 11, 2017
7b91dcb
Merge pull request #81 from Earthstar/3148-fix-active-calories
dariosalvi78 Oct 13, 2017
03c1872
fixes #52
Oct 16, 2017
50179eb
fixes #83
Oct 20, 2017
ffd32f3
added activityType as unit of activity
Oct 25, 2017
24a030d
added calories and distance in activity in readme
Oct 25, 2017
d156bda
fixes #85
Oct 25, 2017
c42bc90
release 1.0.2
Oct 27, 2017
cd854d4
fixes #95
Nov 8, 2017
01b0598
added workouts data type to queryAggregated
petemcwilliams Nov 20, 2017
524db7a
Merge pull request #87 from petemcwilliams/master
Nov 21, 2017
03af089
fixes #88
Dec 14, 2017
71be8f1
Testing insulin
JulianLaval Jan 10, 2018
a9e574d
Added insulin unit
JulianLaval Jan 10, 2018
ead2077
Added insulin write
JulianLaval Jan 10, 2018
bb89ac3
Updated README
JulianLaval Jan 10, 2018
0451b92
added new type activitydistcal to support distance and calories for a…
petemcwilliams Jan 10, 2018
4379c70
Merge pull request #91 from CenterHealth/feature/insulin-ios
dariosalvi78 Jan 10, 2018
96488ae
Fixed meal type enum issue
JulianLaval Jan 10, 2018
86585f1
Merge pull request #93 from CenterHealth/fix/mealtime-enum
Jan 10, 2018
6b37b59
removed the added new type, use activity to return distance and calor…
petemcwilliams Jan 11, 2018
8fcb33e
Merge pull request #92 from petemcwilliams/master
Jan 11, 2018
99e67f3
release 1.0.3
Jan 11, 2018
eed5775
aggregate query added distance and calories when no bucket
petemcwilliams Jan 15, 2018
c296361
Merge pull request #95 from petemcwilliams/master
dariosalvi78 Jan 15, 2018
83fde80
Fixes #100
Jan 26, 2018
d551a1c
fixes #101
Jan 31, 2018
2e56b9a
Merge branch 'master' of https://github.com/dariosalvi78/cordova-plug…
Jan 31, 2018
2b3fbd9
release 1.0.4
Feb 14, 2018
96e0cc5
fixes #104
Mar 5, 2018
363a3bc
fix #105
aggarwalankush Mar 13, 2018
b5bb501
Merge pull request #106 from aggarwalankush/patch-1
Mar 13, 2018
98a00ac
Add support for Apple Exercise Time
bryantee Mar 13, 2018
20d967f
Merge pull request #107 from bryantee/master
dariosalvi78 Mar 13, 2018
f52880a
added description of appleExerciseTime to README
Mar 13, 2018
d8ed6ba
Merge branch 'master' of https://github.com/dariosalvi78/cordova-plug…
Mar 13, 2018
5147262
added filtered steps description to query aggregated
Mar 13, 2018
0339379
scaffolding BP support, only query
Mar 21, 2018
36510ec
added example to readme
Mar 21, 2018
c5ceeff
added store support for android
Mar 27, 2018
705de9b
support for querying bp on android
Mar 28, 2018
a35f77a
bug fixes, tested and works on Android
Mar 28, 2018
e576207
BP store and query tested on iOS
Mar 28, 2018
cdddeca
updated readme
Mar 28, 2018
f5bf6df
Merge branch 'bpsupport'
Mar 28, 2018
f2090c9
release 1.0.5
Mar 28, 2018
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
15 changes: 15 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# EditorConfig helps developers define and maintain consistent coding styles between different editors and IDEs
# editorconfig.org

root = true

[*.js]
indent_style = space
indent_size = 2
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true

[*.md]
trim_trailing_whitespace = false
15 changes: 15 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
Log of changes
==============

## v 1.0.4

* updated README with better documentation
* minor bug fixes


## v 1.0.5

* updated README
* added `filtered` flag to steps also for iOS (but only in aggregatedQuery)
* added `appleExerciseTime` in datatypes (store and query) only on iOS
* added support for blood pressure store and query on both Android and iOS
417 changes: 310 additions & 107 deletions README.md

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion activities_map.md
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,8 @@ This means that, for example, if you try to save "aerobics" in an iOS applicatio
| sleep.light | SLEEP_LIGHT | HKCategoryValueSleepAnalysisAsleep |
| sleep.deep | SLEEP_DEEP | HKCategoryValueSleepAnalysisAsleep |
| sleep.rem | SLEEP_REM | HKCategoryValueSleepAnalysisAsleep |
| sleep.awake | SLEEP_AWAKE | HKCategoryValueSleepAnalysisInBed |
| sleep.inBed | SLEEP_AWAKE | HKCategoryValueSleepAnalysisInBed |
| sleep.awake | SLEEP_AWAKE | HKCategoryValueSleepAnalysisAwake |
| snowboarding | SNOWBOARDING | HKWorkoutActivityTypeSnowboarding |
| snowmobile | SNOWMOBILE | HKWorkoutActivityTypeSnowSports |
| snowshoeing | SNOWSHOEING | HKWorkoutActivityTypeSnowSports |
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "0.7.0",
"version": "1.0.5",
"name": "cordova-plugin-health",
"cordova_name": "Health",
"description": "A plugin that abstracts fitness and health repositories like Apple HealthKit or Google Fit",
Expand Down Expand Up @@ -29,7 +29,7 @@
"engines": [
{
"name": "cordova",
"version": ">=3.0.0"
"version": ">=6.0.0"
}
]
}
30 changes: 17 additions & 13 deletions plugin.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<plugin xmlns="http://apache.org/cordova/ns/plugins/1.0"
id="cordova-plugin-health"
version="0.7.0">
version="1.0.5">

<name>Cordova Health</name>

Expand All @@ -20,7 +20,7 @@
<issue>https://github.com/dariosalvi78/cordova-plugin-health/issues</issue>

<engines>
<engine name="cordova" version=">=3.0.0"/>
<engine name="cordova" version=">=6.0.0"/>
</engines>


Expand All @@ -40,26 +40,30 @@
</feature>
</config-file>

<config-file target="*-Info.plist" parent="UIRequiredDeviceCapabilities">
<!-- Commented this because it means you can't download/use the app on iOS devices that don't support Apple Health (e.g. iPad) -->
<!-- See https://github.com/dariosalvi78/cordova-plugin-health/issues/59 -->
<!-- <config-file target="*-Info.plist" parent="UIRequiredDeviceCapabilities">
<array>
<string>healthkit</string>
</array>
</config-file>
</config-file> -->

<!-- Usage description of Health, mandatory since iOS 10 -->
<!-- Usage description of Health, mandatory since iOS 10 -->
<preference name="HEALTH_READ_PERMISSION" default=" " />
<preference name="HEALTH_WRITE_PERMISSION" default=" " />
<config-file target="*-Info.plist" parent="NSHealthShareUsageDescription">
<string/>
<string>$HEALTH_READ_PERMISSION</string>
</config-file>
<config-file target="*-Info.plist" parent="NSHealthUpdateUsageDescription">
<string/>
<string>$HEALTH_WRITE_PERMISSION</string>
</config-file>

<!-- Usage description of Health, mandatory since iOS 10 -->
<config-file target="*-Info.plist" parent="NSHealthShareUsageDescription">
<string/>
<config-file target="*/Entitlements-Debug.plist" parent="com.apple.developer.healthkit">
<true/>
</config-file>
<config-file target="*-Info.plist" parent="NSHealthUpdateUsageDescription">
<string/>

<config-file target="*/Entitlements-Release.plist" parent="com.apple.developer.healthkit">
<true/>
</config-file>

<header-file src="src/ios/WorkoutActivityConversion.h"/>
Expand All @@ -74,7 +78,7 @@

<!-- android -->
<platform name="android">
<framework src="com.google.android.gms:play-services-fitness:9.4.0" />
<framework src="com.google.android.gms:play-services-fitness:+" />

<config-file target="AndroidManifest.xml" parent="/*">
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
Expand Down
Loading