@tryvital/vital-core-react-native 4.0.0-beta.1 → 4.0.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/build/.transforms/777b23048718230f4c0f0cce43c34ef3/transformed/debug/debug_dex/com/vitalcorereactnative/VitalCoreReactNativeModule.dex +0 -0
- package/android/build/.transforms/b98b1f04923c4bc62a7ee968fd2ba191/transformed/classes/classes_dex/classes.dex +0 -0
- package/android/build/intermediates/compile_library_classes_jar/debug/classes.jar +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/com/vitalcorereactnative/VitalCoreReactNativeModule.class +0 -0
- package/android/build/intermediates/runtime_library_classes_jar/debug/classes.jar +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/last-build.bin +0 -0
- package/android/build/kotlin/compileDebugKotlin/local-state/build-history.bin +0 -0
- package/android/build/kspCaches/debug/classLookups/counters.tab +1 -1
- package/android/build/kspCaches/debug/classLookups/file-to-id.tab +0 -0
- package/android/build/kspCaches/debug/classLookups/file-to-id.tab.keystream +0 -0
- package/android/build/kspCaches/debug/classLookups/file-to-id.tab.keystream.len +0 -0
- package/android/build/kspCaches/debug/classLookups/file-to-id.tab.len +0 -0
- package/android/build/kspCaches/debug/classLookups/file-to-id.tab.values.at +0 -0
- package/android/build/kspCaches/debug/classLookups/file-to-id.tab_i +0 -0
- package/android/build/kspCaches/debug/classLookups/id-to-file.tab +0 -0
- package/android/build/kspCaches/debug/classLookups/id-to-file.tab.keystream +0 -0
- package/android/build/kspCaches/debug/classLookups/id-to-file.tab.keystream.len +0 -0
- package/android/build/kspCaches/debug/classLookups/id-to-file.tab.len +0 -0
- package/android/build/kspCaches/debug/classLookups/id-to-file.tab.values.at +0 -0
- package/android/build/kspCaches/debug/classLookups/lookups.tab +0 -0
- package/android/build/kspCaches/debug/classLookups/lookups.tab.keystream +0 -0
- package/android/build/kspCaches/debug/classLookups/lookups.tab.keystream.len +0 -0
- package/android/build/kspCaches/debug/classLookups/lookups.tab.len +0 -0
- package/android/build/kspCaches/debug/classLookups/lookups.tab.values.at +0 -0
- package/android/build/kspCaches/debug/classLookups/lookups.tab_i +0 -0
- package/android/build/kspCaches/debug/classpath-entries.bin +0 -0
- package/android/build/kspCaches/debug/classpath-structure.bin +0 -0
- package/android/build/kspCaches/debug/sourceToOutputs +0 -0
- package/android/build/kspCaches/debug/sourceToOutputs.keystream +0 -0
- package/android/build/kspCaches/debug/sourceToOutputs.keystream.len +0 -0
- package/android/build/kspCaches/debug/sourceToOutputs.len +0 -0
- package/android/build/kspCaches/debug/sourceToOutputs.values.at +0 -0
- package/android/build/kspCaches/debug/sourceToOutputs_i +0 -0
- package/android/build/kspCaches/debug/symbolLookups/counters.tab +1 -1
- package/android/build/kspCaches/debug/symbolLookups/file-to-id.tab +0 -0
- package/android/build/kspCaches/debug/symbolLookups/file-to-id.tab.keystream +0 -0
- package/android/build/kspCaches/debug/symbolLookups/file-to-id.tab.keystream.len +0 -0
- package/android/build/kspCaches/debug/symbolLookups/file-to-id.tab.len +0 -0
- package/android/build/kspCaches/debug/symbolLookups/file-to-id.tab.values.at +0 -0
- package/android/build/kspCaches/debug/symbolLookups/file-to-id.tab_i +0 -0
- package/android/build/kspCaches/debug/symbolLookups/id-to-file.tab +0 -0
- package/android/build/kspCaches/debug/symbolLookups/id-to-file.tab.keystream +0 -0
- package/android/build/kspCaches/debug/symbolLookups/id-to-file.tab.keystream.len +0 -0
- package/android/build/kspCaches/debug/symbolLookups/id-to-file.tab.len +0 -0
- package/android/build/kspCaches/debug/symbolLookups/id-to-file.tab.values.at +0 -0
- package/android/build/kspCaches/debug/symbolLookups/lookups.tab +0 -0
- package/android/build/kspCaches/debug/symbolLookups/lookups.tab.keystream +0 -0
- package/android/build/kspCaches/debug/symbolLookups/lookups.tab.keystream.len +0 -0
- package/android/build/kspCaches/debug/symbolLookups/lookups.tab.len +0 -0
- package/android/build/kspCaches/debug/symbolLookups/lookups.tab.values.at +0 -0
- package/android/build/kspCaches/debug/symbolLookups/lookups.tab_i +0 -0
- package/android/build/kspCaches/debug/symbols +0 -0
- package/android/build/kspCaches/debug/symbols.keystream +0 -0
- package/android/build/kspCaches/debug/symbols.keystream.len +0 -0
- package/android/build/kspCaches/debug/symbols.len +0 -0
- package/android/build/kspCaches/debug/symbols.values.at +0 -0
- package/android/build/kspCaches/debug/symbols_i +0 -0
- package/android/build/tmp/kotlin-classes/debug/com/vitalcorereactnative/VitalCoreReactNativeModule.class +0 -0
- package/android/build.gradle +1 -1
- package/package.json +1 -1
- package/vital-core-react-native.podspec +1 -1
- package/android/build/kspCaches/debug/backups/kotlin/com/vitalcorereactnative/ReactNativeBloodPressureSampleJsonAdapter.kt +0 -74
- package/android/build/kspCaches/debug/backups/kotlin/com/vitalcorereactnative/ReactNativeQuantitySampleJsonAdapter.kt +0 -110
- package/android/build/kspCaches/debug/backups/kotlin/com/vitalcorereactnative/ReactNativeTimeSeriesData_BloodPressureJsonAdapter.kt +0 -66
- package/android/build/kspCaches/debug/backups/kotlin/com/vitalcorereactnative/ReactNativeTimeSeriesData_GlucoseJsonAdapter.kt +0 -63
- package/android/build/kspCaches/debug/backups/resources/META-INF/proguard/moshi-com.vitalcorereactnative.ReactNativeBloodPressureSample.pro +0 -6
- package/android/build/kspCaches/debug/backups/resources/META-INF/proguard/moshi-com.vitalcorereactnative.ReactNativeQuantitySample.pro +0 -6
- package/android/build/kspCaches/debug/backups/resources/META-INF/proguard/moshi-com.vitalcorereactnative.ReactNativeTimeSeriesData.BloodPressure.pro +0 -6
- package/android/build/kspCaches/debug/backups/resources/META-INF/proguard/moshi-com.vitalcorereactnative.ReactNativeTimeSeriesData.Glucose.pro +0 -6
- package/android/build/kspCaches/debug/classLookups/id-to-file.tab_i +0 -0
- package/android/build/kspCaches/debug/classLookups/id-to-file.tab_i.len +0 -0
- package/android/build/kspCaches/debug/symbolLookups/id-to-file.tab_i +0 -0
- package/android/build/kspCaches/debug/symbolLookups/id-to-file.tab_i.len +0 -0
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
1
|
|
2
2
|
0
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
1
|
|
2
2
|
0
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/android/build.gradle
CHANGED
package/package.json
CHANGED
|
@@ -17,7 +17,7 @@ Pod::Spec.new do |s|
|
|
|
17
17
|
s.source_files = "ios/**/*.{h,m,mm,swift}"
|
|
18
18
|
|
|
19
19
|
s.dependency "React-Core"
|
|
20
|
-
s.dependency "VitalCore", "~> 1.0.0
|
|
20
|
+
s.dependency "VitalCore", "~> 1.0.0"
|
|
21
21
|
|
|
22
22
|
# Don't install the dependencies when we run `pod install` in the old architecture.
|
|
23
23
|
if ENV['RCT_NEW_ARCH_ENABLED'] == '1' then
|
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
// Code generated by moshi-kotlin-codegen. Do not edit.
|
|
2
|
-
@file:Suppress("DEPRECATION", "unused", "ClassName", "REDUNDANT_PROJECTION",
|
|
3
|
-
"RedundantExplicitType", "LocalVariableName", "RedundantVisibilityModifier",
|
|
4
|
-
"PLATFORM_CLASS_MAPPED_TO_KOTLIN", "IMPLICIT_NOTHING_TYPE_ARGUMENT_IN_RETURN_POSITION")
|
|
5
|
-
|
|
6
|
-
package com.vitalcorereactnative
|
|
7
|
-
|
|
8
|
-
import com.squareup.moshi.JsonAdapter
|
|
9
|
-
import com.squareup.moshi.JsonReader
|
|
10
|
-
import com.squareup.moshi.JsonWriter
|
|
11
|
-
import com.squareup.moshi.Moshi
|
|
12
|
-
import com.squareup.moshi.`internal`.Util
|
|
13
|
-
import java.lang.NullPointerException
|
|
14
|
-
import kotlin.String
|
|
15
|
-
import kotlin.Suppress
|
|
16
|
-
import kotlin.Unit
|
|
17
|
-
import kotlin.collections.emptySet
|
|
18
|
-
import kotlin.text.buildString
|
|
19
|
-
|
|
20
|
-
public class ReactNativeBloodPressureSampleJsonAdapter(
|
|
21
|
-
moshi: Moshi
|
|
22
|
-
) : JsonAdapter<ReactNativeBloodPressureSample>() {
|
|
23
|
-
private val options: JsonReader.Options = JsonReader.Options.of("systolic", "diastolic", "pulse")
|
|
24
|
-
|
|
25
|
-
private val reactNativeQuantitySampleAdapter: JsonAdapter<ReactNativeQuantitySample> =
|
|
26
|
-
moshi.adapter(ReactNativeQuantitySample::class.java, emptySet(), "systolic")
|
|
27
|
-
|
|
28
|
-
private val nullableReactNativeQuantitySampleAdapter: JsonAdapter<ReactNativeQuantitySample?> =
|
|
29
|
-
moshi.adapter(ReactNativeQuantitySample::class.java, emptySet(), "pulse")
|
|
30
|
-
|
|
31
|
-
public override fun toString(): String = buildString(52) {
|
|
32
|
-
append("GeneratedJsonAdapter(").append("ReactNativeBloodPressureSample").append(')') }
|
|
33
|
-
|
|
34
|
-
public override fun fromJson(reader: JsonReader): ReactNativeBloodPressureSample {
|
|
35
|
-
var systolic: ReactNativeQuantitySample? = null
|
|
36
|
-
var diastolic: ReactNativeQuantitySample? = null
|
|
37
|
-
var pulse: ReactNativeQuantitySample? = null
|
|
38
|
-
reader.beginObject()
|
|
39
|
-
while (reader.hasNext()) {
|
|
40
|
-
when (reader.selectName(options)) {
|
|
41
|
-
0 -> systolic = reactNativeQuantitySampleAdapter.fromJson(reader) ?:
|
|
42
|
-
throw Util.unexpectedNull("systolic", "systolic", reader)
|
|
43
|
-
1 -> diastolic = reactNativeQuantitySampleAdapter.fromJson(reader) ?:
|
|
44
|
-
throw Util.unexpectedNull("diastolic", "diastolic", reader)
|
|
45
|
-
2 -> pulse = nullableReactNativeQuantitySampleAdapter.fromJson(reader)
|
|
46
|
-
-1 -> {
|
|
47
|
-
// Unknown name, skip it.
|
|
48
|
-
reader.skipName()
|
|
49
|
-
reader.skipValue()
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
reader.endObject()
|
|
54
|
-
return ReactNativeBloodPressureSample(
|
|
55
|
-
systolic = systolic ?: throw Util.missingProperty("systolic", "systolic", reader),
|
|
56
|
-
diastolic = diastolic ?: throw Util.missingProperty("diastolic", "diastolic", reader),
|
|
57
|
-
pulse = pulse
|
|
58
|
-
)
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
public override fun toJson(writer: JsonWriter, value_: ReactNativeBloodPressureSample?): Unit {
|
|
62
|
-
if (value_ == null) {
|
|
63
|
-
throw NullPointerException("value_ was null! Wrap in .nullSafe() to write nullable values.")
|
|
64
|
-
}
|
|
65
|
-
writer.beginObject()
|
|
66
|
-
writer.name("systolic")
|
|
67
|
-
reactNativeQuantitySampleAdapter.toJson(writer, value_.systolic)
|
|
68
|
-
writer.name("diastolic")
|
|
69
|
-
reactNativeQuantitySampleAdapter.toJson(writer, value_.diastolic)
|
|
70
|
-
writer.name("pulse")
|
|
71
|
-
nullableReactNativeQuantitySampleAdapter.toJson(writer, value_.pulse)
|
|
72
|
-
writer.endObject()
|
|
73
|
-
}
|
|
74
|
-
}
|
|
@@ -1,110 +0,0 @@
|
|
|
1
|
-
// Code generated by moshi-kotlin-codegen. Do not edit.
|
|
2
|
-
@file:Suppress("DEPRECATION", "unused", "ClassName", "REDUNDANT_PROJECTION",
|
|
3
|
-
"RedundantExplicitType", "LocalVariableName", "RedundantVisibilityModifier",
|
|
4
|
-
"PLATFORM_CLASS_MAPPED_TO_KOTLIN", "IMPLICIT_NOTHING_TYPE_ARGUMENT_IN_RETURN_POSITION")
|
|
5
|
-
|
|
6
|
-
package com.vitalcorereactnative
|
|
7
|
-
|
|
8
|
-
import com.squareup.moshi.JsonAdapter
|
|
9
|
-
import com.squareup.moshi.JsonReader
|
|
10
|
-
import com.squareup.moshi.JsonWriter
|
|
11
|
-
import com.squareup.moshi.Moshi
|
|
12
|
-
import com.squareup.moshi.`internal`.Util
|
|
13
|
-
import java.lang.NullPointerException
|
|
14
|
-
import java.util.Date
|
|
15
|
-
import kotlin.Double
|
|
16
|
-
import kotlin.String
|
|
17
|
-
import kotlin.Suppress
|
|
18
|
-
import kotlin.Unit
|
|
19
|
-
import kotlin.collections.emptySet
|
|
20
|
-
import kotlin.text.buildString
|
|
21
|
-
|
|
22
|
-
public class ReactNativeQuantitySampleJsonAdapter(
|
|
23
|
-
moshi: Moshi
|
|
24
|
-
) : JsonAdapter<ReactNativeQuantitySample>() {
|
|
25
|
-
private val options: JsonReader.Options = JsonReader.Options.of("id", "value", "startDate",
|
|
26
|
-
"endDate", "sourceBundle", "productType", "type", "unit")
|
|
27
|
-
|
|
28
|
-
private val nullableStringAdapter: JsonAdapter<String?> = moshi.adapter(String::class.java,
|
|
29
|
-
emptySet(), "id")
|
|
30
|
-
|
|
31
|
-
private val doubleAdapter: JsonAdapter<Double> = moshi.adapter(Double::class.java, emptySet(),
|
|
32
|
-
"value")
|
|
33
|
-
|
|
34
|
-
private val dateAdapter: JsonAdapter<Date> = moshi.adapter(Date::class.java, emptySet(),
|
|
35
|
-
"startDate")
|
|
36
|
-
|
|
37
|
-
private val stringAdapter: JsonAdapter<String> = moshi.adapter(String::class.java, emptySet(),
|
|
38
|
-
"unit")
|
|
39
|
-
|
|
40
|
-
public override fun toString(): String = buildString(47) {
|
|
41
|
-
append("GeneratedJsonAdapter(").append("ReactNativeQuantitySample").append(')') }
|
|
42
|
-
|
|
43
|
-
public override fun fromJson(reader: JsonReader): ReactNativeQuantitySample {
|
|
44
|
-
var id: String? = null
|
|
45
|
-
var value__: Double? = null
|
|
46
|
-
var startDate: Date? = null
|
|
47
|
-
var endDate: Date? = null
|
|
48
|
-
var sourceBundle: String? = null
|
|
49
|
-
var productType: String? = null
|
|
50
|
-
var type: String? = null
|
|
51
|
-
var unit: String? = null
|
|
52
|
-
reader.beginObject()
|
|
53
|
-
while (reader.hasNext()) {
|
|
54
|
-
when (reader.selectName(options)) {
|
|
55
|
-
0 -> id = nullableStringAdapter.fromJson(reader)
|
|
56
|
-
1 -> value__ = doubleAdapter.fromJson(reader) ?: throw Util.unexpectedNull("value__",
|
|
57
|
-
"value", reader)
|
|
58
|
-
2 -> startDate = dateAdapter.fromJson(reader) ?: throw Util.unexpectedNull("startDate",
|
|
59
|
-
"startDate", reader)
|
|
60
|
-
3 -> endDate = dateAdapter.fromJson(reader) ?: throw Util.unexpectedNull("endDate",
|
|
61
|
-
"endDate", reader)
|
|
62
|
-
4 -> sourceBundle = nullableStringAdapter.fromJson(reader)
|
|
63
|
-
5 -> productType = nullableStringAdapter.fromJson(reader)
|
|
64
|
-
6 -> type = nullableStringAdapter.fromJson(reader)
|
|
65
|
-
7 -> unit = stringAdapter.fromJson(reader) ?: throw Util.unexpectedNull("unit", "unit",
|
|
66
|
-
reader)
|
|
67
|
-
-1 -> {
|
|
68
|
-
// Unknown name, skip it.
|
|
69
|
-
reader.skipName()
|
|
70
|
-
reader.skipValue()
|
|
71
|
-
}
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
reader.endObject()
|
|
75
|
-
return ReactNativeQuantitySample(
|
|
76
|
-
id = id,
|
|
77
|
-
`value` = value__ ?: throw Util.missingProperty("value__", "value", reader),
|
|
78
|
-
startDate = startDate ?: throw Util.missingProperty("startDate", "startDate", reader),
|
|
79
|
-
endDate = endDate ?: throw Util.missingProperty("endDate", "endDate", reader),
|
|
80
|
-
sourceBundle = sourceBundle,
|
|
81
|
-
productType = productType,
|
|
82
|
-
type = type,
|
|
83
|
-
unit = unit ?: throw Util.missingProperty("unit", "unit", reader)
|
|
84
|
-
)
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
public override fun toJson(writer: JsonWriter, value_: ReactNativeQuantitySample?): Unit {
|
|
88
|
-
if (value_ == null) {
|
|
89
|
-
throw NullPointerException("value_ was null! Wrap in .nullSafe() to write nullable values.")
|
|
90
|
-
}
|
|
91
|
-
writer.beginObject()
|
|
92
|
-
writer.name("id")
|
|
93
|
-
nullableStringAdapter.toJson(writer, value_.id)
|
|
94
|
-
writer.name("value")
|
|
95
|
-
doubleAdapter.toJson(writer, value_.`value`)
|
|
96
|
-
writer.name("startDate")
|
|
97
|
-
dateAdapter.toJson(writer, value_.startDate)
|
|
98
|
-
writer.name("endDate")
|
|
99
|
-
dateAdapter.toJson(writer, value_.endDate)
|
|
100
|
-
writer.name("sourceBundle")
|
|
101
|
-
nullableStringAdapter.toJson(writer, value_.sourceBundle)
|
|
102
|
-
writer.name("productType")
|
|
103
|
-
nullableStringAdapter.toJson(writer, value_.productType)
|
|
104
|
-
writer.name("type")
|
|
105
|
-
nullableStringAdapter.toJson(writer, value_.type)
|
|
106
|
-
writer.name("unit")
|
|
107
|
-
stringAdapter.toJson(writer, value_.unit)
|
|
108
|
-
writer.endObject()
|
|
109
|
-
}
|
|
110
|
-
}
|
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
// Code generated by moshi-kotlin-codegen. Do not edit.
|
|
2
|
-
@file:Suppress("DEPRECATION", "unused", "ClassName", "REDUNDANT_PROJECTION",
|
|
3
|
-
"RedundantExplicitType", "LocalVariableName", "RedundantVisibilityModifier",
|
|
4
|
-
"PLATFORM_CLASS_MAPPED_TO_KOTLIN", "IMPLICIT_NOTHING_TYPE_ARGUMENT_IN_RETURN_POSITION")
|
|
5
|
-
|
|
6
|
-
package com.vitalcorereactnative
|
|
7
|
-
|
|
8
|
-
import com.squareup.moshi.JsonAdapter
|
|
9
|
-
import com.squareup.moshi.JsonReader
|
|
10
|
-
import com.squareup.moshi.JsonWriter
|
|
11
|
-
import com.squareup.moshi.Moshi
|
|
12
|
-
import com.squareup.moshi.Types
|
|
13
|
-
import com.squareup.moshi.`internal`.Util
|
|
14
|
-
import java.lang.NullPointerException
|
|
15
|
-
import kotlin.String
|
|
16
|
-
import kotlin.Suppress
|
|
17
|
-
import kotlin.Unit
|
|
18
|
-
import kotlin.collections.List
|
|
19
|
-
import kotlin.collections.emptySet
|
|
20
|
-
import kotlin.text.buildString
|
|
21
|
-
|
|
22
|
-
public class ReactNativeTimeSeriesData_BloodPressureJsonAdapter(
|
|
23
|
-
moshi: Moshi
|
|
24
|
-
) : JsonAdapter<ReactNativeTimeSeriesData.BloodPressure>() {
|
|
25
|
-
private val options: JsonReader.Options = JsonReader.Options.of("samples")
|
|
26
|
-
|
|
27
|
-
private val listOfReactNativeBloodPressureSampleAdapter:
|
|
28
|
-
JsonAdapter<List<ReactNativeBloodPressureSample>> =
|
|
29
|
-
moshi.adapter(Types.newParameterizedType(List::class.java,
|
|
30
|
-
ReactNativeBloodPressureSample::class.java), emptySet(), "samples")
|
|
31
|
-
|
|
32
|
-
public override fun toString(): String = buildString(61) {
|
|
33
|
-
append("GeneratedJsonAdapter(").append("ReactNativeTimeSeriesData.BloodPressure").append(')')
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
public override fun fromJson(reader: JsonReader): ReactNativeTimeSeriesData.BloodPressure {
|
|
37
|
-
var samples: List<ReactNativeBloodPressureSample>? = null
|
|
38
|
-
reader.beginObject()
|
|
39
|
-
while (reader.hasNext()) {
|
|
40
|
-
when (reader.selectName(options)) {
|
|
41
|
-
0 -> samples = listOfReactNativeBloodPressureSampleAdapter.fromJson(reader) ?:
|
|
42
|
-
throw Util.unexpectedNull("samples", "samples", reader)
|
|
43
|
-
-1 -> {
|
|
44
|
-
// Unknown name, skip it.
|
|
45
|
-
reader.skipName()
|
|
46
|
-
reader.skipValue()
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
reader.endObject()
|
|
51
|
-
return ReactNativeTimeSeriesData.BloodPressure(
|
|
52
|
-
samples = samples ?: throw Util.missingProperty("samples", "samples", reader)
|
|
53
|
-
)
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
public override fun toJson(writer: JsonWriter, value_: ReactNativeTimeSeriesData.BloodPressure?):
|
|
57
|
-
Unit {
|
|
58
|
-
if (value_ == null) {
|
|
59
|
-
throw NullPointerException("value_ was null! Wrap in .nullSafe() to write nullable values.")
|
|
60
|
-
}
|
|
61
|
-
writer.beginObject()
|
|
62
|
-
writer.name("samples")
|
|
63
|
-
listOfReactNativeBloodPressureSampleAdapter.toJson(writer, value_.samples)
|
|
64
|
-
writer.endObject()
|
|
65
|
-
}
|
|
66
|
-
}
|
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
// Code generated by moshi-kotlin-codegen. Do not edit.
|
|
2
|
-
@file:Suppress("DEPRECATION", "unused", "ClassName", "REDUNDANT_PROJECTION",
|
|
3
|
-
"RedundantExplicitType", "LocalVariableName", "RedundantVisibilityModifier",
|
|
4
|
-
"PLATFORM_CLASS_MAPPED_TO_KOTLIN", "IMPLICIT_NOTHING_TYPE_ARGUMENT_IN_RETURN_POSITION")
|
|
5
|
-
|
|
6
|
-
package com.vitalcorereactnative
|
|
7
|
-
|
|
8
|
-
import com.squareup.moshi.JsonAdapter
|
|
9
|
-
import com.squareup.moshi.JsonReader
|
|
10
|
-
import com.squareup.moshi.JsonWriter
|
|
11
|
-
import com.squareup.moshi.Moshi
|
|
12
|
-
import com.squareup.moshi.Types
|
|
13
|
-
import com.squareup.moshi.`internal`.Util
|
|
14
|
-
import java.lang.NullPointerException
|
|
15
|
-
import kotlin.String
|
|
16
|
-
import kotlin.Suppress
|
|
17
|
-
import kotlin.Unit
|
|
18
|
-
import kotlin.collections.List
|
|
19
|
-
import kotlin.collections.emptySet
|
|
20
|
-
import kotlin.text.buildString
|
|
21
|
-
|
|
22
|
-
public class ReactNativeTimeSeriesData_GlucoseJsonAdapter(
|
|
23
|
-
moshi: Moshi
|
|
24
|
-
) : JsonAdapter<ReactNativeTimeSeriesData.Glucose>() {
|
|
25
|
-
private val options: JsonReader.Options = JsonReader.Options.of("samples")
|
|
26
|
-
|
|
27
|
-
private val listOfReactNativeQuantitySampleAdapter: JsonAdapter<List<ReactNativeQuantitySample>> =
|
|
28
|
-
moshi.adapter(Types.newParameterizedType(List::class.java,
|
|
29
|
-
ReactNativeQuantitySample::class.java), emptySet(), "samples")
|
|
30
|
-
|
|
31
|
-
public override fun toString(): String = buildString(55) {
|
|
32
|
-
append("GeneratedJsonAdapter(").append("ReactNativeTimeSeriesData.Glucose").append(')') }
|
|
33
|
-
|
|
34
|
-
public override fun fromJson(reader: JsonReader): ReactNativeTimeSeriesData.Glucose {
|
|
35
|
-
var samples: List<ReactNativeQuantitySample>? = null
|
|
36
|
-
reader.beginObject()
|
|
37
|
-
while (reader.hasNext()) {
|
|
38
|
-
when (reader.selectName(options)) {
|
|
39
|
-
0 -> samples = listOfReactNativeQuantitySampleAdapter.fromJson(reader) ?:
|
|
40
|
-
throw Util.unexpectedNull("samples", "samples", reader)
|
|
41
|
-
-1 -> {
|
|
42
|
-
// Unknown name, skip it.
|
|
43
|
-
reader.skipName()
|
|
44
|
-
reader.skipValue()
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
reader.endObject()
|
|
49
|
-
return ReactNativeTimeSeriesData.Glucose(
|
|
50
|
-
samples = samples ?: throw Util.missingProperty("samples", "samples", reader)
|
|
51
|
-
)
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
public override fun toJson(writer: JsonWriter, value_: ReactNativeTimeSeriesData.Glucose?): Unit {
|
|
55
|
-
if (value_ == null) {
|
|
56
|
-
throw NullPointerException("value_ was null! Wrap in .nullSafe() to write nullable values.")
|
|
57
|
-
}
|
|
58
|
-
writer.beginObject()
|
|
59
|
-
writer.name("samples")
|
|
60
|
-
listOfReactNativeQuantitySampleAdapter.toJson(writer, value_.samples)
|
|
61
|
-
writer.endObject()
|
|
62
|
-
}
|
|
63
|
-
}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
-if class com.vitalcorereactnative.ReactNativeBloodPressureSample
|
|
2
|
-
-keepnames class com.vitalcorereactnative.ReactNativeBloodPressureSample
|
|
3
|
-
-if class com.vitalcorereactnative.ReactNativeBloodPressureSample
|
|
4
|
-
-keep class com.vitalcorereactnative.ReactNativeBloodPressureSampleJsonAdapter {
|
|
5
|
-
public <init>(com.squareup.moshi.Moshi);
|
|
6
|
-
}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
-if class com.vitalcorereactnative.ReactNativeQuantitySample
|
|
2
|
-
-keepnames class com.vitalcorereactnative.ReactNativeQuantitySample
|
|
3
|
-
-if class com.vitalcorereactnative.ReactNativeQuantitySample
|
|
4
|
-
-keep class com.vitalcorereactnative.ReactNativeQuantitySampleJsonAdapter {
|
|
5
|
-
public <init>(com.squareup.moshi.Moshi);
|
|
6
|
-
}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
-if class com.vitalcorereactnative.ReactNativeTimeSeriesData$BloodPressure
|
|
2
|
-
-keepnames class com.vitalcorereactnative.ReactNativeTimeSeriesData$BloodPressure
|
|
3
|
-
-if class com.vitalcorereactnative.ReactNativeTimeSeriesData$BloodPressure
|
|
4
|
-
-keep class com.vitalcorereactnative.ReactNativeTimeSeriesData_BloodPressureJsonAdapter {
|
|
5
|
-
public <init>(com.squareup.moshi.Moshi);
|
|
6
|
-
}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
-if class com.vitalcorereactnative.ReactNativeTimeSeriesData$Glucose
|
|
2
|
-
-keepnames class com.vitalcorereactnative.ReactNativeTimeSeriesData$Glucose
|
|
3
|
-
-if class com.vitalcorereactnative.ReactNativeTimeSeriesData$Glucose
|
|
4
|
-
-keep class com.vitalcorereactnative.ReactNativeTimeSeriesData_GlucoseJsonAdapter {
|
|
5
|
-
public <init>(com.squareup.moshi.Moshi);
|
|
6
|
-
}
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|