@tryvital/vital-health-react-native 1.13.0 → 1.13.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/android/build/.transforms/529d28f4829430de90697bcd9f01b753/transformed/release/com/vitalhealthreactnative/AskForPermissionContinuation.dex +0 -0
- package/android/build/.transforms/529d28f4829430de90697bcd9f01b753/transformed/release/com/vitalhealthreactnative/VitalHealthReactNativeModule$Companion.dex +0 -0
- package/android/build/.transforms/529d28f4829430de90697bcd9f01b753/transformed/release/com/vitalhealthreactnative/VitalHealthReactNativeModule$cleanUp$1.dex +0 -0
- package/android/build/.transforms/529d28f4829430de90697bcd9f01b753/transformed/release/com/vitalhealthreactnative/VitalHealthReactNativeModule$onActivityResult$1.dex +0 -0
- package/android/build/.transforms/529d28f4829430de90697bcd9f01b753/transformed/release/com/vitalhealthreactnative/VitalHealthReactNativeModule$onActivityResult$job$1.dex +0 -0
- package/android/build/.transforms/529d28f4829430de90697bcd9f01b753/transformed/release/com/vitalhealthreactnative/VitalHealthReactNativeModule$startStatusUpdate$1.dex +0 -0
- package/android/build/.transforms/529d28f4829430de90697bcd9f01b753/transformed/release/com/vitalhealthreactnative/VitalHealthReactNativeModule$syncData$1.dex +0 -0
- package/android/build/.transforms/529d28f4829430de90697bcd9f01b753/transformed/release/com/vitalhealthreactnative/VitalHealthReactNativeModule$writeHealthData$1.dex +0 -0
- package/android/build/.transforms/529d28f4829430de90697bcd9f01b753/transformed/release/com/vitalhealthreactnative/VitalHealthReactNativeModule.dex +0 -0
- package/android/build/.transforms/529d28f4829430de90697bcd9f01b753/transformed/release/com/vitalhealthreactnative/VitalHealthReactNativeModuleKt.dex +0 -0
- package/android/build/.transforms/7daa840025aa96d88f6824c7b735a441/transformed/debug/com/vitalhealthreactnative/AskForPermissionContinuation.dex +0 -0
- package/android/build/.transforms/7daa840025aa96d88f6824c7b735a441/transformed/debug/com/vitalhealthreactnative/VitalHealthReactNativeModule$Companion.dex +0 -0
- package/android/build/.transforms/7daa840025aa96d88f6824c7b735a441/transformed/debug/com/vitalhealthreactnative/VitalHealthReactNativeModule$cleanUp$1.dex +0 -0
- package/android/build/.transforms/7daa840025aa96d88f6824c7b735a441/transformed/debug/com/vitalhealthreactnative/VitalHealthReactNativeModule$onActivityResult$1.dex +0 -0
- package/android/build/.transforms/7daa840025aa96d88f6824c7b735a441/transformed/debug/com/vitalhealthreactnative/VitalHealthReactNativeModule$onActivityResult$job$1.dex +0 -0
- package/android/build/.transforms/7daa840025aa96d88f6824c7b735a441/transformed/debug/com/vitalhealthreactnative/VitalHealthReactNativeModule$startStatusUpdate$1.dex +0 -0
- package/android/build/.transforms/7daa840025aa96d88f6824c7b735a441/transformed/debug/com/vitalhealthreactnative/VitalHealthReactNativeModule$syncData$1.dex +0 -0
- package/android/build/.transforms/7daa840025aa96d88f6824c7b735a441/transformed/debug/com/vitalhealthreactnative/VitalHealthReactNativeModule$writeHealthData$1.dex +0 -0
- package/android/build/.transforms/7daa840025aa96d88f6824c7b735a441/transformed/debug/com/vitalhealthreactnative/VitalHealthReactNativeModule.dex +0 -0
- package/android/build/.transforms/7daa840025aa96d88f6824c7b735a441/transformed/debug/com/vitalhealthreactnative/VitalHealthReactNativeModuleKt.dex +0 -0
- package/android/build/.transforms/e3790c1093283a76b233286b2e39540a/transformed/out/jars/classes.jar +0 -0
- package/android/build/intermediates/aar_main_jar/debug/classes.jar +0 -0
- package/android/build/intermediates/aar_main_jar/release/classes.jar +0 -0
- package/android/build/intermediates/compile_library_classes_jar/debug/classes.jar +0 -0
- package/android/build/intermediates/compile_library_classes_jar/release/classes.jar +0 -0
- package/android/build/intermediates/full_jar/release/full.jar +0 -0
- package/android/build/intermediates/local_aar_for_lint/release/out.aar +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/com/vitalhealthreactnative/AskForPermissionContinuation.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/com/vitalhealthreactnative/VitalHealthReactNativeModule$Companion.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/com/vitalhealthreactnative/VitalHealthReactNativeModule$cleanUp$1.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/com/vitalhealthreactnative/VitalHealthReactNativeModule$onActivityResult$1.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/com/vitalhealthreactnative/VitalHealthReactNativeModule$onActivityResult$job$1.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/com/vitalhealthreactnative/VitalHealthReactNativeModule$startStatusUpdate$1.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/com/vitalhealthreactnative/VitalHealthReactNativeModule$syncData$1.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/com/vitalhealthreactnative/VitalHealthReactNativeModule$writeHealthData$1.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/com/vitalhealthreactnative/VitalHealthReactNativeModule.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/com/vitalhealthreactnative/VitalHealthReactNativeModuleKt.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/release/com/vitalhealthreactnative/AskForPermissionContinuation.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/release/com/vitalhealthreactnative/VitalHealthReactNativeModule$Companion.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/release/com/vitalhealthreactnative/VitalHealthReactNativeModule$cleanUp$1.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/release/com/vitalhealthreactnative/VitalHealthReactNativeModule$onActivityResult$1.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/release/com/vitalhealthreactnative/VitalHealthReactNativeModule$onActivityResult$job$1.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/release/com/vitalhealthreactnative/VitalHealthReactNativeModule$startStatusUpdate$1.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/release/com/vitalhealthreactnative/VitalHealthReactNativeModule$syncData$1.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/release/com/vitalhealthreactnative/VitalHealthReactNativeModule$writeHealthData$1.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/release/com/vitalhealthreactnative/VitalHealthReactNativeModule.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/release/com/vitalhealthreactnative/VitalHealthReactNativeModuleKt.class +0 -0
- package/android/build/intermediates/runtime_library_classes_jar/debug/classes.jar +0 -0
- package/android/build/intermediates/runtime_library_classes_jar/release/classes.jar +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/lookups.tab +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/lookups.tab.keystream +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/lookups.tab.keystream.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/lookups.tab.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/lookups.tab.values.at +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/lookups.tab_i +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/kotlin/compileReleaseKotlin/cacheable/caches-jvm/lookups/lookups.tab +0 -0
- package/android/build/kotlin/compileReleaseKotlin/cacheable/caches-jvm/lookups/lookups.tab.keystream +0 -0
- package/android/build/kotlin/compileReleaseKotlin/cacheable/caches-jvm/lookups/lookups.tab.keystream.len +0 -0
- package/android/build/kotlin/compileReleaseKotlin/cacheable/caches-jvm/lookups/lookups.tab.len +0 -0
- package/android/build/kotlin/compileReleaseKotlin/cacheable/caches-jvm/lookups/lookups.tab.values.at +0 -0
- package/android/build/kotlin/compileReleaseKotlin/cacheable/caches-jvm/lookups/lookups.tab_i +0 -0
- package/android/build/kotlin/compileReleaseKotlin/cacheable/last-build.bin +0 -0
- package/android/build/kotlin/compileReleaseKotlin/local-state/build-history.bin +0 -0
- package/android/build/outputs/aar/tryvital_vital-health-react-native-debug.aar +0 -0
- package/android/build/outputs/aar/tryvital_vital-health-react-native-release.aar +0 -0
- package/android/build/tmp/kotlin-classes/debug/com/vitalhealthreactnative/AskForPermissionContinuation.class +0 -0
- package/android/build/tmp/kotlin-classes/debug/com/vitalhealthreactnative/VitalHealthReactNativeModule$Companion.class +0 -0
- package/android/build/tmp/kotlin-classes/debug/com/vitalhealthreactnative/VitalHealthReactNativeModule$cleanUp$1.class +0 -0
- package/android/build/tmp/kotlin-classes/debug/com/vitalhealthreactnative/VitalHealthReactNativeModule$onActivityResult$1.class +0 -0
- package/android/build/tmp/kotlin-classes/debug/com/vitalhealthreactnative/VitalHealthReactNativeModule$onActivityResult$job$1.class +0 -0
- package/android/build/tmp/kotlin-classes/debug/com/vitalhealthreactnative/VitalHealthReactNativeModule$startStatusUpdate$1.class +0 -0
- package/android/build/tmp/kotlin-classes/debug/com/vitalhealthreactnative/VitalHealthReactNativeModule$syncData$1.class +0 -0
- package/android/build/tmp/kotlin-classes/debug/com/vitalhealthreactnative/VitalHealthReactNativeModule$writeHealthData$1.class +0 -0
- package/android/build/tmp/kotlin-classes/debug/com/vitalhealthreactnative/VitalHealthReactNativeModule.class +0 -0
- package/android/build/tmp/kotlin-classes/debug/com/vitalhealthreactnative/VitalHealthReactNativeModuleKt.class +0 -0
- package/android/build/tmp/kotlin-classes/release/com/vitalhealthreactnative/AskForPermissionContinuation.class +0 -0
- package/android/build/tmp/kotlin-classes/release/com/vitalhealthreactnative/VitalHealthReactNativeModule$Companion.class +0 -0
- package/android/build/tmp/kotlin-classes/release/com/vitalhealthreactnative/VitalHealthReactNativeModule$cleanUp$1.class +0 -0
- package/android/build/tmp/kotlin-classes/release/com/vitalhealthreactnative/VitalHealthReactNativeModule$onActivityResult$1.class +0 -0
- package/android/build/tmp/kotlin-classes/release/com/vitalhealthreactnative/VitalHealthReactNativeModule$onActivityResult$job$1.class +0 -0
- package/android/build/tmp/kotlin-classes/release/com/vitalhealthreactnative/VitalHealthReactNativeModule$startStatusUpdate$1.class +0 -0
- package/android/build/tmp/kotlin-classes/release/com/vitalhealthreactnative/VitalHealthReactNativeModule$syncData$1.class +0 -0
- package/android/build/tmp/kotlin-classes/release/com/vitalhealthreactnative/VitalHealthReactNativeModule$writeHealthData$1.class +0 -0
- package/android/build/tmp/kotlin-classes/release/com/vitalhealthreactnative/VitalHealthReactNativeModule.class +0 -0
- package/android/build/tmp/kotlin-classes/release/com/vitalhealthreactnative/VitalHealthReactNativeModuleKt.class +0 -0
- package/android/build.gradle +1 -1
- package/android/src/main/java/com/vitalhealthreactnative/VitalHealthReactNativeModule.kt +6 -3
- package/package.json +1 -1
|
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/.transforms/e3790c1093283a76b233286b2e39540a/transformed/out/jars/classes.jar
CHANGED
|
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
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/lookups.tab.keystream
CHANGED
|
Binary file
|
|
Binary file
|
package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/lookups.tab.len
CHANGED
|
Binary file
|
package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/lookups.tab.values.at
CHANGED
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/android/build/kotlin/compileReleaseKotlin/cacheable/caches-jvm/lookups/lookups.tab.keystream
CHANGED
|
Binary file
|
|
Binary file
|
package/android/build/kotlin/compileReleaseKotlin/cacheable/caches-jvm/lookups/lookups.tab.len
CHANGED
|
Binary file
|
package/android/build/kotlin/compileReleaseKotlin/cacheable/caches-jvm/lookups/lookups.tab.values.at
CHANGED
|
Binary file
|
package/android/build/kotlin/compileReleaseKotlin/cacheable/caches-jvm/lookups/lookups.tab_i
CHANGED
|
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
|
package/android/build.gradle
CHANGED
|
@@ -111,7 +111,7 @@ class VitalHealthReactNativeModule(reactContext: ReactApplicationContext) :
|
|
|
111
111
|
promise: Promise
|
|
112
112
|
) {
|
|
113
113
|
val manager = vitalHealthConnectManager ?: return promise.rejectHealthNotConfigured()
|
|
114
|
-
if (askForPermission != null) {
|
|
114
|
+
if (synchronized(this) { this.askForPermission != null }) {
|
|
115
115
|
return promise.reject(
|
|
116
116
|
VITAL_HEALTH_ERROR,
|
|
117
117
|
"Another ask for permission call is already in progress."
|
|
@@ -140,7 +140,9 @@ class VitalHealthReactNativeModule(reactContext: ReactApplicationContext) :
|
|
|
140
140
|
readResources = read, writeResources = write
|
|
141
141
|
)
|
|
142
142
|
|
|
143
|
-
|
|
143
|
+
synchronized(this) {
|
|
144
|
+
askForPermission = AskForPermissionContinuation(contract, promise)
|
|
145
|
+
}
|
|
144
146
|
|
|
145
147
|
val intent = contract.createIntent(reactApplicationContext, Unit)
|
|
146
148
|
activity.startActivityForResult(intent, VITAL_REQUEST_CODE)
|
|
@@ -301,7 +303,7 @@ class VitalHealthReactNativeModule(reactContext: ReactApplicationContext) :
|
|
|
301
303
|
// p1: request code
|
|
302
304
|
// p2: result code
|
|
303
305
|
if (p1 == VITAL_REQUEST_CODE) {
|
|
304
|
-
val continuation = askForPermission ?: return
|
|
306
|
+
val continuation = synchronized(this) { askForPermission } ?: return
|
|
305
307
|
|
|
306
308
|
val resultAsync = continuation.contract.parseResult(p2, p3)
|
|
307
309
|
val job = mainScope.launch {
|
|
@@ -312,6 +314,7 @@ class VitalHealthReactNativeModule(reactContext: ReactApplicationContext) :
|
|
|
312
314
|
if (it != null) {
|
|
313
315
|
continuation.promise.reject(VITAL_HEALTH_ERROR, "ask for permission has encountered an error", it)
|
|
314
316
|
}
|
|
317
|
+
synchronized(this) { this.askForPermission = null }
|
|
315
318
|
}
|
|
316
319
|
}
|
|
317
320
|
}
|
package/package.json
CHANGED