-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathplugin.xml
123 lines (100 loc) · 4.92 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
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<plugin id="com.outsystems.plugins.healthfitness" version="2.3.1" xmlns="http://apache.org/cordova/ns/plugins/1.0" xmlns:android="http://schemas.android.com/apk/res/android">
<name>HealthFitness</name>
<description>Health & Fitness cordova plugin for OutSystems applications.</description>
<author>OutSystems Inc</author>
<js-module name="OSHealthFitness" src="www/OSHealthFitness.js">
<clobbers target="cordova.plugins.OSHealthFitness"/>
</js-module>
<platform name="android">
<hook type="after_prepare" src="hooks/androidCopyPreferencesPermissions.js" />
<hook type="after_prepare" src="hooks/androidCopyPrivacyUrlEnv.js"/>
<config-file parent="/*" target="res/xml/config.xml">
<feature name="OSHealthFitness">
<param name="android-package" value="com.outsystems.plugins.healthfitness.OSHealthFitness"/>
</feature>
<preference name="GradlePluginKotlinEnabled" value="true" />
<preference name="GradlePluginKotlinCodeStyle" value="official" />
<preference name="AndroidXEnabled" value="true"/>
</config-file>
<config-file parent="/*" target="res/values/strings.xml">
<string name="privacy_policy_url">PRIVACY_POLICY_URL</string>
<string name="background_notification_title"></string>
<string name="background_notification_description"></string>
</config-file>
<!-- HealthFitness Plugin -->
<source-file src="src/android/com/outsystems/plugins/healthfitness/OSHealthFitness.kt" target-dir="app/src/main/kotlin/com/outsystems/plugins/healthfitness"/>
<source-file src="src/android/com/outsystems/plugins/healthfitness/OSHealthFitnessWarning.kt" target-dir="app/src/main/kotlin/com/outsystems/plugins/healthfitness"/>
<source-file src="src/android/com/outsystems/plugins/healthfitness/TimeUnitSerializer.kt" target-dir="app/src/main/kotlin/com/outsystems/plugins/healthfitness"/>
<framework src="src/android/build.gradle" custom="true" type="gradleReference" />
<framework src="org.jetbrains.kotlinx:kotlinx-coroutines-core-jvm:1.4.3" />
<framework src="org.jetbrains.kotlinx:kotlinx-coroutines-android:1.4.3" />
<framework src="com.google.code.gson:gson:2.8.8" />
</platform>
<platform name="ios">
<config-file parent="/*" target="config.xml">
<feature name="OSHealthFitness">
<param name="ios-package" value="OSHealthFitness" />
</feature>
<preference name="SwiftVersion" value="5" />
</config-file>
<!-- iOS Permissions -->
<preference name="HEALTH_SHARE_DESCRIPTION" default="App needs to shared health data" />
<config-file target="*-Info.plist" parent="NSHealthShareUsageDescription">
<string>$HEALTH_SHARE_DESCRIPTION</string>
</config-file>
<preference name="HEALTH_UPDATE_DESCRIPTION" default="App needs to use health data" />
<config-file target="*-Info.plist" parent="NSHealthUpdateUsageDescription">
<string>$HEALTH_UPDATE_DESCRIPTION</string>
</config-file>
<config-file target="*-Info.plist" parent="UIBackgroundModes">
<array>
<string>fetch</string>
<string>processing</string>
</array>
</config-file>
<config-file target="*-Info.plist" parent="BGTaskSchedulerPermittedIdentifiers">
<array>
<string>com.outsystems.health.default</string>
</array>
</config-file>
<!-- Entitlements -->
<config-file target="*/Entitlements-Debug.plist" parent="com.apple.developer.healthkit">
<true/>
</config-file>
<config-file target="*/Entitlements-Release.plist" parent="com.apple.developer.healthkit">
<true/>
</config-file>
<config-file target="*/Entitlements-Debug.plist" parent="com.apple.developer.healthkit.access">
<array>
</array>
</config-file>
<config-file target="*/Entitlements-Release.plist" parent="com.apple.developer.healthkit.access">
<array>
</array>
</config-file>
<config-file target="*/Entitlements-Debug.plist" parent="com.apple.developer.healthkit.background-delivery">
<true/>
</config-file>
<config-file target="*/Entitlements-Release.plist" parent="com.apple.developer.healthkit.background-delivery">
<true/>
</config-file>
<config-file target="*/Entitlements-Debug.plist" parent="com.apple.developer.healthkit.recalibrate-estimates">
<true/>
</config-file>
<config-file target="*/Entitlements-Release.plist" parent="com.apple.developer.healthkit.recalibrate-estimates">
<true/>
</config-file>
<!-- iOS Source Files -->
<source-file src="src/ios/OSHealthFitness.swift" />
<framework src="src/ios/frameworks/OSHealthFitnessLib.xcframework" embed="true" custom="true" />
<podspec>
<config>
<source url="https://cdn.cocoapods.org/"/>
</config>
<pods use-frameworks="true">
<pod name="OSCommonPluginLib" spec="1.0.0" />
</pods>
</podspec>
</platform>
</plugin>