Skip to content

Commit

Permalink
#65 [requestAuthorization] calls always success
Browse files Browse the repository at this point in the history
  • Loading branch information
EddyVerbruggen committed Feb 9, 2016
1 parent c0f29e2 commit 7e4e3a6
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@ Using the Cordova CLI?
cordova plugin add com.telerik.plugins.healthkit
```

Using PGB?
Using PhoneGap Build?

```xml
<gap:plugin name="com.telerik.plugins.healthkit" source="npm" />
<plugin name="com.telerik.plugins.healthkit" source="npm" />
```
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "0.4.1",
"version": "0.4.2",
"name": "com.telerik.plugins.healthkit",
"cordova_name": "HealthKit",
"description": "Interact with the iOS HealthKit SDK.",
Expand Down
2 changes: 1 addition & 1 deletion 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="com.telerik.plugins.healthkit"
version="0.4.1">
version="0.4.2">

<name>HealthKit</name>

Expand Down
8 changes: 4 additions & 4 deletions src/ios/HealthKit.m
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,9 @@ - (void) requestAuthorization:(CDVInvokedUrlCommand*)command {
HKObjectType *type = nil;

if([elem isEqual: @"HKWorkoutTypeIdentifier"]) {
type = [HKObjectType workoutType];
} else{
type = [self getHKObjectType:elem];
}else{
type = [HKObjectType workoutType];
}

if (type == nil) {
Expand All @@ -73,9 +73,9 @@ - (void) requestAuthorization:(CDVInvokedUrlCommand*)command {
HKObjectType *type = nil;

if([elem isEqual: @"HKWorkoutTypeIdentifier"]) {
type = [HKObjectType workoutType];
} else{
type = [self getHKObjectType:elem];
}else{
type = [HKObjectType workoutType];
}

if (type == nil) {
Expand Down

0 comments on commit 7e4e3a6

Please sign in to comment.