forked from dariosalvi78/cordova-plugin-health
-
Notifications
You must be signed in to change notification settings - Fork 0
/
plugin.xml
executable file
·95 lines (73 loc) · 3.33 KB
/
plugin.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
<?xml version="1.0" encoding="UTF-8"?>
<plugin xmlns="http://apache.org/cordova/ns/plugins/1.0"
id="cordova-plugin-health"
version="0.10.0">
<name>Cordova Health</name>
<description>
A plugin that abstracts fitness and health repositories like Apple HealthKit or Google Fit
</description>
<author>Dario Salvi, based on code by Eddy Verbruggen / Telerik and Carmelo Velardo</author>
<license>MIT</license>
<keywords>Health, HealthKit, Fit, Fitness, Google Fit</keywords>
<repo>https://github.com/dariosalvi78/cordova-plugin-health.git</repo>
<issue>https://github.com/dariosalvi78/cordova-plugin-health/issues</issue>
<engines>
<engine name="cordova" version=">=6.0.0"/>
</engines>
<!-- ios -->
<platform name="ios">
<js-module src="www/ios/HealthKit.js" name="HealthKit">
<clobbers target="window.plugins.healthkit" />
</js-module>
<js-module src="www/ios/health.js" name="health">
<clobbers target="navigator.health" />
</js-module>
<config-file target="config.xml" parent="/*">
<feature name="HealthKit">
<param name="ios-package" value="HealthKit"/>
</feature>
</config-file>
<!-- 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> -->
<!-- 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>$HEALTH_READ_PERMISSION</string>
</config-file>
<config-file target="*-Info.plist" parent="NSHealthUpdateUsageDescription">
<string>$HEALTH_WRITE_PERMISSION</string>
</config-file>
<header-file src="src/ios/WorkoutActivityConversion.h"/>
<source-file src="src/ios/WorkoutActivityConversion.m"/>
<header-file src="src/ios/HKHealthStore+AAPLExtensions.h"/>
<source-file src="src/ios/HKHealthStore+AAPLExtensions.m"/>
<header-file src="src/ios/HealthKit.h"/>
<source-file src="src/ios/HealthKit.m"/>
<framework src="HealthKit.framework" weak="true" />
</platform>
<!-- android -->
<platform name="android">
<framework src="com.google.android.gms:play-services-fitness:+" />
<config-file target="AndroidManifest.xml" parent="/*">
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
<uses-permission android:name="android.permission.BODY_SENSORS" />
</config-file>
<config-file target="res/xml/config.xml" parent="/*">
<feature name="health">
<param name="android-package" value="org.apache.cordova.health.HealthPlugin" />
</feature>
<access origin="https://accounts.google.com/*" />
</config-file>
<source-file src="src/android/HealthPlugin.java" target-dir="src/org/apache/cordova/health/" />
<js-module src="www/android/health.js" name="health">
<clobbers target="navigator.health" />
</js-module>
</platform>
</plugin>