File tree 4 files changed +8
-8
lines changed
4 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -50,8 +50,8 @@ Using the Cordova CLI?
50
50
cordova plugin add com.telerik.plugins.healthkit
51
51
```
52
52
53
- Using PGB ?
53
+ Using PhoneGap Build ?
54
54
55
55
``` xml
56
- <gap : plugin name =" com.telerik.plugins.healthkit" source =" npm" />
56
+ <plugin name =" com.telerik.plugins.healthkit" source =" npm" />
57
57
```
Original file line number Diff line number Diff line change 1
1
{
2
- "version" : " 0.4.1 " ,
2
+ "version" : " 0.4.2 " ,
3
3
"name" : " com.telerik.plugins.healthkit" ,
4
4
"cordova_name" : " HealthKit" ,
5
5
"description" : " Interact with the iOS HealthKit SDK." ,
Original file line number Diff line number Diff line change 1
1
<?xml version =" 1.0" encoding =" UTF-8" ?>
2
2
<plugin xmlns =" http://apache.org/cordova/ns/plugins/1.0"
3
3
id =" com.telerik.plugins.healthkit"
4
- version =" 0.4.1 " >
4
+ version =" 0.4.2 " >
5
5
6
6
<name >HealthKit</name >
7
7
Original file line number Diff line number Diff line change @@ -49,9 +49,9 @@ - (void) requestAuthorization:(CDVInvokedUrlCommand*)command {
49
49
HKObjectType *type = nil ;
50
50
51
51
if ([elem isEqual: @" HKWorkoutTypeIdentifier" ]) {
52
+ type = [HKObjectType workoutType ];
53
+ } else {
52
54
type = [self getHKObjectType: elem];
53
- }else {
54
- type = [HKObjectType workoutType ];
55
55
}
56
56
57
57
if (type == nil ) {
@@ -73,9 +73,9 @@ - (void) requestAuthorization:(CDVInvokedUrlCommand*)command {
73
73
HKObjectType *type = nil ;
74
74
75
75
if ([elem isEqual: @" HKWorkoutTypeIdentifier" ]) {
76
+ type = [HKObjectType workoutType ];
77
+ } else {
76
78
type = [self getHKObjectType: elem];
77
- }else {
78
- type = [HKObjectType workoutType ];
79
79
}
80
80
81
81
if (type == nil ) {
You can’t perform that action at this time.
0 commit comments