Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
R
rn-apple-healthkit
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Jira
Jira
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ym
rn-apple-healthkit
Commits
edf44bcf
Commit
edf44bcf
authored
Jun 28, 2016
by
Greg Wilson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
updated examples/BodyMeasurements app to use unit option in weight and height getters
parent
e70b6aa5
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
14 deletions
+20
-14
examples/BodyMeasurements/app/stores/body.js
examples/BodyMeasurements/app/stores/body.js
+8
-2
examples/BodyMeasurements/ios/BodyMeasurements.xcodeproj/project.pbxproj
...asurements/ios/BodyMeasurements.xcodeproj/project.pbxproj
+12
-12
No files found.
examples/BodyMeasurements/app/stores/body.js
View file @
edf44bcf
...
...
@@ -166,7 +166,10 @@ class BodyStore extends airflux.Store {
_fetchHealthKitUserWeight
()
{
let
self
=
this
;
AppleHealthKit
.
getLatestWeight
(
null
,
(
err
,
weight
)
=>
{
let
options
=
{
unit
:
"
pound
"
};
AppleHealthKit
.
getLatestWeight
(
options
,
(
err
,
weight
)
=>
{
if
(
this
.
_handleHealthKitError
(
err
,
'
getLatestWeight
'
)){
return
;
}
...
...
@@ -184,7 +187,10 @@ class BodyStore extends airflux.Store {
_fetchHealthKitUserHeight
()
{
let
self
=
this
;
AppleHealthKit
.
getLatestHeight
(
null
,
(
err
,
height
)
=>
{
let
options
=
{
unit
:
"
inch
"
};
AppleHealthKit
.
getLatestHeight
(
options
,
(
err
,
height
)
=>
{
if
(
this
.
_handleHealthKitError
(
err
,
'
getLatestHeight
'
)){
return
;
}
...
...
examples/BodyMeasurements/ios/BodyMeasurements.xcodeproj/project.pbxproj
View file @
edf44bcf
...
...
@@ -22,7 +22,7 @@
13B07FC11A68108700A75B9A
/* main.m in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
13B07FB71A68108700A75B9A
/* main.m */
;
};
140ED2AC1D01E1AD002B40FF
/* libReact.a in Frameworks */
=
{
isa
=
PBXBuildFile
;
fileRef
=
146834041AC3E56700842450
/* libReact.a */
;
};
146834051AC3E58100842450
/* libReact.a in Frameworks */
=
{
isa
=
PBXBuildFile
;
fileRef
=
146834041AC3E56700842450
/* libReact.a */
;
};
3787535
71D23261E0016D000
/* libRCTAppleHealthKit.a in Frameworks */
=
{
isa
=
PBXBuildFile
;
fileRef
=
378753561D23261A
0016D000
/* libRCTAppleHealthKit.a */
;
};
3787535
E1D232E290016D000
/* libRCTAppleHealthKit.a in Frameworks */
=
{
isa
=
PBXBuildFile
;
fileRef
=
3787535D1D232E25
0016D000
/* libRCTAppleHealthKit.a */
;
};
37E9B8741D21B52F0090B19B
/* HealthKit.framework in Frameworks */
=
{
isa
=
PBXBuildFile
;
fileRef
=
37E9B8731D21B52F0090B19B
/* HealthKit.framework */
;
};
832341BD1AAA6AB300B99B32
/* libRCTText.a in Frameworks */
=
{
isa
=
PBXBuildFile
;
fileRef
=
832341B51AAA6A8300B99B32
/* libRCTText.a */
;
};
/* End PBXBuildFile section */
...
...
@@ -91,9 +91,9 @@
remoteGlobalIDString
=
83CBBA2E1A601D0E00E9B192
;
remoteInfo
=
React
;
};
3787535
51D23261A
0016D000
/* PBXContainerItemProxy */
=
{
3787535
C1D232E25
0016D000
/* PBXContainerItemProxy */
=
{
isa
=
PBXContainerItemProxy
;
containerPortal
=
3787535
11D23261A
0016D000
/* RCTAppleHealthKit.xcodeproj */
;
containerPortal
=
3787535
81D232E25
0016D000
/* RCTAppleHealthKit.xcodeproj */
;
proxyType
=
2
;
remoteGlobalIDString
=
3774C88D1D2092F20000B3F3
;
remoteInfo
=
RCTAppleHealthKit
;
...
...
@@ -134,7 +134,7 @@
13B07FB61A68108700A75B9A
/* Info.plist */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
text.plist.xml
;
name
=
Info.plist
;
path
=
BodyMeasurements/Info.plist
;
sourceTree
=
"<group>"
;
};
13B07FB71A68108700A75B9A
/* main.m */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.c.objc
;
name
=
main.m
;
path
=
BodyMeasurements/main.m
;
sourceTree
=
"<group>"
;
};
146833FF1AC3E56700842450
/* React.xcodeproj */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
"wrapper.pb-project"
;
name
=
React.xcodeproj
;
path
=
"../node_modules/react-native/React/React.xcodeproj"
;
sourceTree
=
"<group>"
;
};
3787535
11D23261A
0016D000
/* RCTAppleHealthKit.xcodeproj */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
"wrapper.pb-project"
;
name
=
RCTAppleHealthKit.xcodeproj
;
path
=
"../node_modules/react-native-apple-healthkit/RCTAppleHealthKit.xcodeproj"
;
sourceTree
=
"<group>"
;
};
3787535
81D232E25
0016D000
/* RCTAppleHealthKit.xcodeproj */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
"wrapper.pb-project"
;
name
=
RCTAppleHealthKit.xcodeproj
;
path
=
"../node_modules/react-native-apple-healthkit/RCTAppleHealthKit.xcodeproj"
;
sourceTree
=
"<group>"
;
};
37E9B8731D21B52F0090B19B
/* HealthKit.framework */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
wrapper.framework
;
name
=
HealthKit.framework
;
path
=
System/Library/Frameworks/HealthKit.framework
;
sourceTree
=
SDKROOT
;
};
37E9B8751D21B52F0090B19B
/* BodyMeasurements.entitlements */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
text.xml
;
name
=
BodyMeasurements.entitlements
;
path
=
BodyMeasurements/BodyMeasurements.entitlements
;
sourceTree
=
"<group>"
;
};
78C398B01ACF4ADC00677621
/* RCTLinking.xcodeproj */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
"wrapper.pb-project"
;
name
=
RCTLinking.xcodeproj
;
path
=
"../node_modules/react-native/Libraries/LinkingIOS/RCTLinking.xcodeproj"
;
sourceTree
=
"<group>"
;
};
...
...
@@ -154,7 +154,7 @@
isa
=
PBXFrameworksBuildPhase
;
buildActionMask
=
2147483647
;
files
=
(
3787535
71D23261E
0016D000
/* libRCTAppleHealthKit.a in Frameworks */
,
3787535
E1D232E29
0016D000
/* libRCTAppleHealthKit.a in Frameworks */
,
146834051AC3E58100842450
/* libReact.a in Frameworks */
,
00C302E51ABCBA2D00DB3ED1
/* libRCTActionSheet.a in Frameworks */
,
37E9B8741D21B52F0090B19B
/* HealthKit.framework in Frameworks */
,
...
...
@@ -268,10 +268,10 @@
name
=
Products
;
sourceTree
=
"<group>"
;
};
3787535
21D23261A
0016D000
/* Products */
=
{
3787535
91D232E25
0016D000
/* Products */
=
{
isa
=
PBXGroup
;
children
=
(
3787535
61D23261A
0016D000
/* libRCTAppleHealthKit.a */
,
3787535
D1D232E25
0016D000
/* libRCTAppleHealthKit.a */
,
);
name
=
Products
;
sourceTree
=
"<group>"
;
...
...
@@ -287,7 +287,7 @@
832341AE1AAA6A7D00B99B32
/* Libraries */
=
{
isa
=
PBXGroup
;
children
=
(
3787535
11D23261A
0016D000
/* RCTAppleHealthKit.xcodeproj */
,
3787535
81D232E25
0016D000
/* RCTAppleHealthKit.xcodeproj */
,
146833FF1AC3E56700842450
/* React.xcodeproj */
,
00C302A71ABCB8CE00DB3ED1
/* RCTActionSheet.xcodeproj */
,
00C302B51ABCB90400DB3ED1
/* RCTGeolocation.xcodeproj */
,
...
...
@@ -411,8 +411,8 @@
ProjectRef
=
00C302A71ABCB8CE00DB3ED1
/* RCTActionSheet.xcodeproj */
;
},
{
ProductGroup
=
3787535
21D23261A
0016D000
/* Products */
;
ProjectRef
=
3787535
11D23261A
0016D000
/* RCTAppleHealthKit.xcodeproj */
;
ProductGroup
=
3787535
91D232E25
0016D000
/* Products */
;
ProjectRef
=
3787535
81D232E25
0016D000
/* RCTAppleHealthKit.xcodeproj */
;
},
{
ProductGroup
=
00C302B61ABCB90400DB3ED1
/* Products */
;
...
...
@@ -516,11 +516,11 @@
remoteRef
=
146834031AC3E56700842450
/* PBXContainerItemProxy */
;
sourceTree
=
BUILT_PRODUCTS_DIR
;
};
3787535
61D23261A
0016D000
/* libRCTAppleHealthKit.a */
=
{
3787535
D1D232E25
0016D000
/* libRCTAppleHealthKit.a */
=
{
isa
=
PBXReferenceProxy
;
fileType
=
archive.ar
;
path
=
libRCTAppleHealthKit.a
;
remoteRef
=
3787535
51D23261A
0016D000
/* PBXContainerItemProxy */
;
remoteRef
=
3787535
C1D232E25
0016D000
/* PBXContainerItemProxy */
;
sourceTree
=
BUILT_PRODUCTS_DIR
;
};
78C398B91ACF4ADC00677621
/* libRCTLinking.a */
=
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment