@flomentumsolutions/capacitor-health-extended 0.7.0 → 0.7.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +11 -4
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -70,6 +70,7 @@ you can keep using the CocoaPods spec `FlomentumSolutionsCapacitorHealthExtended
|
|
|
70
70
|
</queries>
|
|
71
71
|
|
|
72
72
|
<!-- Declare permissions you’ll request -->
|
|
73
|
+
<!-- READ permissions -->
|
|
73
74
|
<uses-permission android:name="android.permission.health.READ_STEPS" />
|
|
74
75
|
<uses-permission android:name="android.permission.health.READ_ACTIVE_CALORIES_BURNED" />
|
|
75
76
|
<uses-permission android:name="android.permission.health.READ_TOTAL_CALORIES_BURNED" />
|
|
@@ -92,6 +93,7 @@ you can keep using the CocoaPods spec `FlomentumSolutionsCapacitorHealthExtended
|
|
|
92
93
|
<uses-permission android:name="android.permission.health.READ_FLOORS_CLIMBED" />
|
|
93
94
|
<uses-permission android:name="android.permission.health.READ_BASAL_METABOLIC_RATE" />
|
|
94
95
|
<uses-permission android:name="android.permission.health.READ_SLEEP" />
|
|
96
|
+
<!-- WRITE permissions -->
|
|
95
97
|
<uses-permission android:name="android.permission.health.WRITE_EXERCISE" />
|
|
96
98
|
<uses-permission android:name="android.permission.health.WRITE_ACTIVE_CALORIES_BURNED" />
|
|
97
99
|
<uses-permission android:name="android.permission.health.WRITE_TOTAL_CALORIES_BURNED" />
|
|
@@ -105,8 +107,9 @@ Include the WRITE_* entries when you call `saveWorkout` to insert exercise sessi
|
|
|
105
107
|
* Android Manifest in application tag
|
|
106
108
|
```xml
|
|
107
109
|
<!-- Handle Health Connect rationale (Android 13-) -->
|
|
110
|
+
<!-- REPLACE com.my.app with your details -->
|
|
108
111
|
<activity
|
|
109
|
-
android:name=".PermissionsRationaleActivity"
|
|
112
|
+
android:name="com.my.app.PermissionsRationaleActivity"
|
|
110
113
|
android:exported="true">
|
|
111
114
|
<intent-filter>
|
|
112
115
|
<action android:name="androidx.health.ACTION_SHOW_PERMISSIONS_RATIONALE"/>
|
|
@@ -115,10 +118,11 @@ Include the WRITE_* entries when you call `saveWorkout` to insert exercise sessi
|
|
|
115
118
|
</activity>
|
|
116
119
|
|
|
117
120
|
<!-- Handle Android 14+ alias -->
|
|
121
|
+
<!-- REPLACE com.my.app with your details -->
|
|
118
122
|
<activity-alias
|
|
119
123
|
android:name="ViewPermissionUsageActivity"
|
|
120
124
|
android:exported="true"
|
|
121
|
-
android:targetActivity=".PermissionsRationaleActivity"
|
|
125
|
+
android:targetActivity="com.my.app.PermissionsRationaleActivity"
|
|
122
126
|
android:permission="android.permission.START_VIEW_PERMISSION_USAGE">
|
|
123
127
|
<intent-filter>
|
|
124
128
|
<action android:name="android.intent.action.VIEW_PERMISSION_USAGE"/>
|
|
@@ -137,8 +141,9 @@ Include the WRITE_* entries when you call `saveWorkout` to insert exercise sessi
|
|
|
137
141
|
</application>
|
|
138
142
|
```
|
|
139
143
|
|
|
140
|
-
* Create `com.my.app.PermissionsRationaleActivity.kt` with:
|
|
144
|
+
* Create `com.my.app.PermissionsRationaleActivity.kt` with (REPLACE com.my.app with your details):
|
|
141
145
|
```xml
|
|
146
|
+
<!-- REPLACE com.my.app with your details -->
|
|
142
147
|
package com.my.app
|
|
143
148
|
|
|
144
149
|
import android.os.Bundle
|
|
@@ -633,7 +638,9 @@ Create a workout session with optional totals and route/heart-rate samples.
|
|
|
633
638
|
|
|
634
639
|
Construct a type with a set of properties K of type T
|
|
635
640
|
|
|
636
|
-
<code>{
|
|
637
641
|
[P in K]: T;
|
|
638
642
|
}</code>
|
|
643
|
+
<code>{
|
|
644
|
+
[P in K]: T;
|
|
645
|
+
}</code>
|
|
639
646
|
|
|
640
647
|
|
|
641
648
|
#### HealthPermission
|
package/package.json
CHANGED