Skip to content

Commit d7e2fe6

Browse files
authored
Merge pull request #45 from cjohn001/master
Required Permissions
2 parents cc6fef6 + 3c1f3f0 commit d7e2fe6

File tree

6 files changed

+63
-23
lines changed

6 files changed

+63
-23
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@nativescript-community/health-data",
3-
"version": "1.0.0",
3+
"version": "2.0.0",
44
"homepage": "https://github.com/nativescript-community/health-data#readme",
55
"bugs": {
66
"url": "https://github.com/nativescript-community/health-data/issues"

packages/health-data/package.json

Lines changed: 21 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
2-
"name": "nativescript-health-data",
3-
"version": "1.3.0",
4-
"description": "Health Data plugin for Nativescript, using Google Fit and Apple HealthKit.",
2+
"name": "@nativescript-community/health-data",
3+
"version": "2.0.0",
4+
"description": "Health Data plugin for Nativescript, using Google Fit and Apple HealthKit.",
55
"main": "./index",
66
"sideEffects": false,
77
"typings": "./index.d.ts",
@@ -21,27 +21,27 @@
2121
}
2222
},
2323
"keywords": [
24-
"NativeScript",
25-
"JavaScript",
26-
"Android",
27-
"iOS",
28-
"Health",
29-
"HealthKit",
30-
"Google Fit"
24+
"NativeScript",
25+
"JavaScript",
26+
"Android",
27+
"iOS",
28+
"Health",
29+
"HealthKit",
30+
"Google Fit"
3131
],
3232
"author": {
33-
"name": "Eddy Verbruggen",
34-
"email": "eddyverbruggen@gmail.com"
33+
"name": "Eddy Verbruggen",
34+
"email": "eddyverbruggen@gmail.com"
3535
},
3636
"contributors": [
37-
{
38-
"name": "Filipe Mendes",
39-
"email": "filipemendes1994@gmail.com"
40-
},
41-
{
42-
"name": "Daniel Leal",
43-
"url": "https://github.com/danielgek"
44-
}
37+
{
38+
"name": "Filipe Mendes",
39+
"email": "filipemendes1994@gmail.com"
40+
},
41+
{
42+
"name": "Daniel Leal",
43+
"url": "https://github.com/danielgek"
44+
}
4545
],
4646
"bugs": {
4747
"url": "https://github.com/nativescript-community/health-data/issues"
@@ -52,6 +52,5 @@
5252
},
5353
"license": "Apache-2.0",
5454
"readmeFilename": "README.md",
55-
"dependencies": {
56-
}
55+
"dependencies": {}
5756
}
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
3+
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"/>
4+
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
5+
<uses-permission android:name="android.permission.GET_ACCOUNTS" />
6+
<uses-permission android:name="android.permission.BODY_SENSORS" />
7+
<uses-permission android:name="com.google.android.gms.permission.ACTIVITY_RECOGNITION" maxSdkVersion ="28" />
8+
<uses-permission android:name="android.permission.ACTIVITY_RECOGNITION" />
9+
</manifest>
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
allprojects {
2+
repositories {
3+
jcenter()
4+
maven {
5+
url "https://maven.google.com"
6+
}
7+
}
8+
}
9+
10+
dependencies {
11+
implementation 'com.google.android.gms:play-services-fitness:16.0.1'
12+
implementation 'com.google.android.gms:play-services-auth:16.0.1'
13+
}
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3+
<plist version="1.0">
4+
<dict>
5+
<key>NSHealthShareUsageDescription</key>
6+
<string>HealthKit Share Usage Description</string>
7+
<key>NSHealthUpdateUsageDescription</key>
8+
<string>HealthKit Update Usage Description</string>
9+
</dict>
10+
</plist>
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3+
<plist version="1.0">
4+
<dict>
5+
<key>com.apple.developer.healthkit</key>
6+
<true/>
7+
</dict>
8+
</plist>
9+

0 commit comments

Comments
 (0)