@tryterra/react-native 2.3.1 → 2.4.0
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/android/src/bridgeCore/kotlin/co/tryterra/sdk/bridge/Conversions.kt +2 -0
- package/android/src/bridgeCore/kotlin/co/tryterra/sdk/bridge/ReadConversions.kt +1 -1
- package/android/src/bridgeCore/kotlin/co/tryterra/sdk/bridge/generated/BridgeTypes.kt +38 -1
- package/docs/availability.md +11 -1
- package/frameworks/TerraSDK.xcframework/Info.plist +5 -5
- package/frameworks/TerraSDK.xcframework/ios-arm64/TerraSDK.framework/Info.plist +0 -0
- package/frameworks/TerraSDK.xcframework/ios-arm64/TerraSDK.framework/Modules/TerraSDK.swiftmodule/arm64-apple-ios.abi.json +4400 -682
- package/frameworks/TerraSDK.xcframework/ios-arm64/TerraSDK.framework/Modules/TerraSDK.swiftmodule/arm64-apple-ios.package.swiftinterface +95 -4
- package/frameworks/TerraSDK.xcframework/ios-arm64/TerraSDK.framework/Modules/TerraSDK.swiftmodule/arm64-apple-ios.private.swiftinterface +95 -4
- package/frameworks/TerraSDK.xcframework/ios-arm64/TerraSDK.framework/Modules/TerraSDK.swiftmodule/arm64-apple-ios.swiftdoc +0 -0
- package/frameworks/TerraSDK.xcframework/ios-arm64/TerraSDK.framework/Modules/TerraSDK.swiftmodule/arm64-apple-ios.swiftinterface +94 -4
- package/frameworks/TerraSDK.xcframework/ios-arm64/TerraSDK.framework/TerraSDK +0 -0
- package/frameworks/TerraSDK.xcframework/ios-arm64/dSYMs/TerraSDK.framework.dSYM/Contents/Info.plist +2 -2
- package/frameworks/TerraSDK.xcframework/ios-arm64/dSYMs/TerraSDK.framework.dSYM/Contents/Resources/DWARF/TerraSDK +0 -0
- package/frameworks/TerraSDK.xcframework/ios-arm64/dSYMs/TerraSDK.framework.dSYM/Contents/Resources/Relocations/aarch64/TerraSDK.yml +7725 -7449
- package/frameworks/TerraSDK.xcframework/ios-arm64_x86_64-simulator/TerraSDK.framework/Info.plist +0 -0
- package/frameworks/TerraSDK.xcframework/ios-arm64_x86_64-simulator/TerraSDK.framework/Modules/TerraSDK.swiftmodule/arm64-apple-ios-simulator.abi.json +4400 -682
- package/frameworks/TerraSDK.xcframework/ios-arm64_x86_64-simulator/TerraSDK.framework/Modules/TerraSDK.swiftmodule/arm64-apple-ios-simulator.package.swiftinterface +95 -4
- package/frameworks/TerraSDK.xcframework/ios-arm64_x86_64-simulator/TerraSDK.framework/Modules/TerraSDK.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface +95 -4
- package/frameworks/TerraSDK.xcframework/ios-arm64_x86_64-simulator/TerraSDK.framework/Modules/TerraSDK.swiftmodule/arm64-apple-ios-simulator.swiftdoc +0 -0
- package/frameworks/TerraSDK.xcframework/ios-arm64_x86_64-simulator/TerraSDK.framework/Modules/TerraSDK.swiftmodule/arm64-apple-ios-simulator.swiftinterface +94 -4
- package/frameworks/TerraSDK.xcframework/ios-arm64_x86_64-simulator/TerraSDK.framework/Modules/TerraSDK.swiftmodule/x86_64-apple-ios-simulator.abi.json +4400 -682
- package/frameworks/TerraSDK.xcframework/ios-arm64_x86_64-simulator/TerraSDK.framework/Modules/TerraSDK.swiftmodule/x86_64-apple-ios-simulator.package.swiftinterface +95 -4
- package/frameworks/TerraSDK.xcframework/ios-arm64_x86_64-simulator/TerraSDK.framework/Modules/TerraSDK.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface +95 -4
- package/frameworks/TerraSDK.xcframework/ios-arm64_x86_64-simulator/TerraSDK.framework/Modules/TerraSDK.swiftmodule/x86_64-apple-ios-simulator.swiftdoc +0 -0
- package/frameworks/TerraSDK.xcframework/ios-arm64_x86_64-simulator/TerraSDK.framework/Modules/TerraSDK.swiftmodule/x86_64-apple-ios-simulator.swiftinterface +94 -4
- package/frameworks/TerraSDK.xcframework/ios-arm64_x86_64-simulator/TerraSDK.framework/TerraSDK +0 -0
- package/frameworks/TerraSDK.xcframework/ios-arm64_x86_64-simulator/TerraSDK.framework/_CodeSignature/CodeResources +21 -21
- package/frameworks/TerraSDK.xcframework/ios-arm64_x86_64-simulator/dSYMs/TerraSDK.framework.dSYM/Contents/Info.plist +2 -2
- package/frameworks/TerraSDK.xcframework/ios-arm64_x86_64-simulator/dSYMs/TerraSDK.framework.dSYM/Contents/Resources/DWARF/TerraSDK +0 -0
- package/frameworks/TerraSDK.xcframework/ios-arm64_x86_64-simulator/dSYMs/TerraSDK.framework.dSYM/Contents/Resources/Relocations/aarch64/TerraSDK.yml +7726 -7450
- package/frameworks/TerraSDK.xcframework/ios-arm64_x86_64-simulator/dSYMs/TerraSDK.framework.dSYM/Contents/Resources/Relocations/x86_64/TerraSDK.yml +7625 -7359
- package/ios/TerraBridgeCore/Generated/BridgeTypes.swift +22 -1
- package/lib/generated/codecs.js +2 -2
- package/lib/generated/types.d.ts +2 -2
- package/lib/generated/types.js +6 -0
- package/package.json +3 -3
- package/src/generated/codecs.ts +2 -2
- package/src/generated/types.ts +14 -2
|
@@ -316,6 +316,8 @@ internal object Conversions {
|
|
|
316
316
|
Nutrient.FOLATE -> WireNutrient.FOLATE
|
|
317
317
|
Nutrient.BIOTIN -> WireNutrient.BIOTIN
|
|
318
318
|
Nutrient.PANTOTHENIC_ACID -> WireNutrient.PANTOTHENIC_ACID
|
|
319
|
+
Nutrient.TRANS_FAT -> WireNutrient.TRANS_FAT
|
|
320
|
+
Nutrient.FOLIC_ACID -> WireNutrient.FOLIC_ACID
|
|
319
321
|
}
|
|
320
322
|
|
|
321
323
|
fun mealType(type: MealSample.MealType): WireMealType = when (type) {
|
|
@@ -57,7 +57,7 @@ internal object ReadConversions {
|
|
|
57
57
|
DayTotal.Metric.ACTIVE_ENERGY_BURNED -> WireDayTotalMetric.ACTIVE_ENERGY_BURNED
|
|
58
58
|
DayTotal.Metric.BASAL_ENERGY_BURNED -> WireDayTotalMetric.BASAL_ENERGY_BURNED
|
|
59
59
|
DayTotal.Metric.FLIGHTS_CLIMBED -> WireDayTotalMetric.FLIGHTS_CLIMBED
|
|
60
|
-
DayTotal.Metric.STEPS, DayTotal.Metric.SWIMMING_STROKE_COUNT -> null
|
|
60
|
+
DayTotal.Metric.STEPS, DayTotal.Metric.SWIMMING_STROKE_COUNT, DayTotal.Metric.EXERCISE_TIME, DayTotal.Metric.ELEVATION_GAINED -> null
|
|
61
61
|
}
|
|
62
62
|
|
|
63
63
|
fun dayTotal(total: DayTotal): WireDayTotal? = dayTotalMetric(total.metric)?.let {
|
|
@@ -124,7 +124,17 @@ public enum class HealthDataType {
|
|
|
124
124
|
/** Available on ios only. */
|
|
125
125
|
@SerialName("swimmingStrokes")
|
|
126
126
|
SWIMMING_STROKES,
|
|
127
|
-
/**
|
|
127
|
+
/**
|
|
128
|
+
* Health Connect's ElevationGainedRecord, totalled per day.
|
|
129
|
+
*
|
|
130
|
+
* Available on android only.
|
|
131
|
+
*/
|
|
132
|
+
@SerialName("elevationGained")
|
|
133
|
+
ELEVATION_GAINED,
|
|
134
|
+
/**
|
|
135
|
+
* Apple's exercise ring minutes on iOS; on Android the minutes inside Health Connect exercise
|
|
136
|
+
* sessions, under READ_EXERCISE.
|
|
137
|
+
*/
|
|
128
138
|
@SerialName("exerciseTime")
|
|
129
139
|
EXERCISE_TIME,
|
|
130
140
|
/** Available on ios only. */
|
|
@@ -162,6 +172,13 @@ public enum class HealthDataType {
|
|
|
162
172
|
/** On Health Connect granted under READ_EXERCISE, the sessions' own permission. */
|
|
163
173
|
@SerialName("cyclingCadence")
|
|
164
174
|
CYCLING_CADENCE,
|
|
175
|
+
/**
|
|
176
|
+
* Mindfulness sessions, uploaded on the activity route. On Android, Health Connect's
|
|
177
|
+
* MindfulnessSessionRecord, read only where the installed Health Connect has the mindfulness
|
|
178
|
+
* feature.
|
|
179
|
+
*/
|
|
180
|
+
@SerialName("mindfulSession")
|
|
181
|
+
MINDFUL_SESSION,
|
|
165
182
|
@SerialName("weight")
|
|
166
183
|
WEIGHT,
|
|
167
184
|
@SerialName("height")
|
|
@@ -280,6 +297,12 @@ public enum class HealthDataType {
|
|
|
280
297
|
DIETARY_BIOTIN,
|
|
281
298
|
@SerialName("dietaryPantothenicAcid")
|
|
282
299
|
DIETARY_PANTOTHENIC_ACID,
|
|
300
|
+
/** Available on android only. */
|
|
301
|
+
@SerialName("dietaryTransFat")
|
|
302
|
+
DIETARY_TRANS_FAT,
|
|
303
|
+
/** Available on android only. */
|
|
304
|
+
@SerialName("dietaryFolicAcid")
|
|
305
|
+
DIETARY_FOLIC_ACID,
|
|
283
306
|
/** Water, which travels as hydration rather than as a nutrient. */
|
|
284
307
|
@SerialName("dietaryWater")
|
|
285
308
|
DIETARY_WATER,
|
|
@@ -465,6 +488,20 @@ public enum class Nutrient {
|
|
|
465
488
|
BIOTIN,
|
|
466
489
|
@SerialName("pantothenicAcid")
|
|
467
490
|
PANTOTHENIC_ACID,
|
|
491
|
+
/**
|
|
492
|
+
* Health Connect's NutritionRecord.transFat, grams. HealthKit has no trans fat type.
|
|
493
|
+
*
|
|
494
|
+
* Available on android only.
|
|
495
|
+
*/
|
|
496
|
+
@SerialName("transFat")
|
|
497
|
+
TRANS_FAT,
|
|
498
|
+
/**
|
|
499
|
+
* Health Connect's NutritionRecord.folicAcid, milligrams. HealthKit has folate only.
|
|
500
|
+
*
|
|
501
|
+
* Available on android only.
|
|
502
|
+
*/
|
|
503
|
+
@SerialName("folicAcid")
|
|
504
|
+
FOLIC_ACID,
|
|
468
505
|
}
|
|
469
506
|
|
|
470
507
|
/**
|
package/docs/availability.md
CHANGED
|
@@ -105,7 +105,8 @@ at runtime, and becomes available without a breaking change when the SDK catches
|
|
|
105
105
|
| `HealthDataType` | `distance` | yes | yes | supported |
|
|
106
106
|
| `HealthDataType` | `floorsClimbed` | yes | yes | supported |
|
|
107
107
|
| `HealthDataType` | `swimmingStrokes` | yes | - | supported |
|
|
108
|
-
| `HealthDataType` | `
|
|
108
|
+
| `HealthDataType` | `elevationGained` | - | yes | supported |
|
|
109
|
+
| `HealthDataType` | `exerciseTime` | yes | yes | supported |
|
|
109
110
|
| `HealthDataType` | `moveTime` | yes | - | supported |
|
|
110
111
|
| `HealthDataType` | `standTime` | yes | - | supported |
|
|
111
112
|
| `HealthDataType` | `heartRate` | yes | yes | supported |
|
|
@@ -116,6 +117,7 @@ at runtime, and becomes available without a breaking change when the SDK catches
|
|
|
116
117
|
| `HealthDataType` | `speed` | yes | yes | supported |
|
|
117
118
|
| `HealthDataType` | `power` | yes | yes | supported |
|
|
118
119
|
| `HealthDataType` | `cyclingCadence` | yes | yes | supported |
|
|
120
|
+
| `HealthDataType` | `mindfulSession` | yes | yes | supported |
|
|
119
121
|
| `HealthDataType` | `weight` | yes | yes | supported |
|
|
120
122
|
| `HealthDataType` | `height` | yes | yes | supported |
|
|
121
123
|
| `HealthDataType` | `bmi` | yes | - | supported |
|
|
@@ -170,6 +172,8 @@ at runtime, and becomes available without a breaking change when the SDK catches
|
|
|
170
172
|
| `HealthDataType` | `dietaryFolate` | yes | yes | supported |
|
|
171
173
|
| `HealthDataType` | `dietaryBiotin` | yes | yes | supported |
|
|
172
174
|
| `HealthDataType` | `dietaryPantothenicAcid` | yes | yes | supported |
|
|
175
|
+
| `HealthDataType` | `dietaryTransFat` | - | yes | supported |
|
|
176
|
+
| `HealthDataType` | `dietaryFolicAcid` | - | yes | supported |
|
|
173
177
|
| `HealthDataType` | `dietaryWater` | yes | yes | supported |
|
|
174
178
|
| `HealthDataType` | `menstrualFlow` | yes | yes | supported |
|
|
175
179
|
| `HealthDataType` | `intermenstrualBleeding` | yes | yes | supported |
|
|
@@ -240,6 +244,8 @@ at runtime, and becomes available without a breaking change when the SDK catches
|
|
|
240
244
|
| `Nutrient` | `folate` | yes | yes | supported |
|
|
241
245
|
| `Nutrient` | `biotin` | yes | yes | supported |
|
|
242
246
|
| `Nutrient` | `pantothenicAcid` | yes | yes | supported |
|
|
247
|
+
| `Nutrient` | `transFat` | - | yes | supported |
|
|
248
|
+
| `Nutrient` | `folicAcid` | - | yes | supported |
|
|
243
249
|
| `MealType` | `breakfast` | yes | yes | supported |
|
|
244
250
|
| `MealType` | `lunch` | yes | yes | supported |
|
|
245
251
|
| `MealType` | `dinner` | yes | yes | supported |
|
|
@@ -319,6 +325,8 @@ at runtime, and becomes available without a breaking change when the SDK catches
|
|
|
319
325
|
| `DayTotalMetric` | `activeEnergyBurned` | yes | yes | supported |
|
|
320
326
|
| `DayTotalMetric` | `basalEnergyBurned` | yes | yes | supported |
|
|
321
327
|
| `DayTotalMetric` | `flightsClimbed` | yes | yes | supported |
|
|
328
|
+
| `DayTotalMetric` | `exerciseTime` | - | yes | excluded |
|
|
329
|
+
| `DayTotalMetric` | `elevationGained` | - | yes | excluded |
|
|
322
330
|
| `DayTotalMetric` | `appleExerciseTime` | yes | - | supported |
|
|
323
331
|
| `DayTotalMetric` | `steps` | yes | yes | excluded |
|
|
324
332
|
| `DayTotalMetric` | `swimmingStrokeCount` | yes | yes | excluded |
|
|
@@ -384,6 +392,8 @@ Each one exists in at least one native SDK. They are listed rather than dropped,
|
|
|
384
392
|
case that simply went unmentioned is the bug this whole schema exists to prevent.
|
|
385
393
|
|
|
386
394
|
- `DataCategory.healthObservation` (excluded): The iOS SDK reads these types and uploads them on the healthObservation route, but has no local accessor for them, so a wrapper has nothing to expose.
|
|
395
|
+
- `DayTotalMetric.exerciseTime` (excluded): Uploaded, and never part of the 1.x daily read this op replaces.
|
|
396
|
+
- `DayTotalMetric.elevationGained` (excluded): Uploaded, and never part of the 1.x daily read this op replaces.
|
|
387
397
|
- `DayTotalMetric.steps` (excluded): daily.steps answers steps, split by writer. A merged total beside it would be two step figures for one day.
|
|
388
398
|
- `DayTotalMetric.swimmingStrokeCount` (excluded): Uploaded, and never part of the 1.x daily read this op replaces.
|
|
389
399
|
- `DayTotalMetric.appleMoveTime` (excluded): A ring figure the 1.x daily read never returned. Uploaded.
|
|
@@ -10,18 +10,15 @@
|
|
|
10
10
|
<key>DebugSymbolsPath</key>
|
|
11
11
|
<string>dSYMs</string>
|
|
12
12
|
<key>LibraryIdentifier</key>
|
|
13
|
-
<string>ios-
|
|
13
|
+
<string>ios-arm64</string>
|
|
14
14
|
<key>LibraryPath</key>
|
|
15
15
|
<string>TerraSDK.framework</string>
|
|
16
16
|
<key>SupportedArchitectures</key>
|
|
17
17
|
<array>
|
|
18
18
|
<string>arm64</string>
|
|
19
|
-
<string>x86_64</string>
|
|
20
19
|
</array>
|
|
21
20
|
<key>SupportedPlatform</key>
|
|
22
21
|
<string>ios</string>
|
|
23
|
-
<key>SupportedPlatformVariant</key>
|
|
24
|
-
<string>simulator</string>
|
|
25
22
|
</dict>
|
|
26
23
|
<dict>
|
|
27
24
|
<key>BinaryPath</key>
|
|
@@ -29,15 +26,18 @@
|
|
|
29
26
|
<key>DebugSymbolsPath</key>
|
|
30
27
|
<string>dSYMs</string>
|
|
31
28
|
<key>LibraryIdentifier</key>
|
|
32
|
-
<string>ios-
|
|
29
|
+
<string>ios-arm64_x86_64-simulator</string>
|
|
33
30
|
<key>LibraryPath</key>
|
|
34
31
|
<string>TerraSDK.framework</string>
|
|
35
32
|
<key>SupportedArchitectures</key>
|
|
36
33
|
<array>
|
|
37
34
|
<string>arm64</string>
|
|
35
|
+
<string>x86_64</string>
|
|
38
36
|
</array>
|
|
39
37
|
<key>SupportedPlatform</key>
|
|
40
38
|
<string>ios</string>
|
|
39
|
+
<key>SupportedPlatformVariant</key>
|
|
40
|
+
<string>simulator</string>
|
|
41
41
|
</dict>
|
|
42
42
|
</array>
|
|
43
43
|
<key>CFBundlePackageType</key>
|
|
Binary file
|