Skip to content

Commit

Permalink
Merge pull request #367 from RADAR-base/release-0.8.7
Browse files Browse the repository at this point in the history
Release 0.8.7
  • Loading branch information
Bdegraaf1234 authored Mar 15, 2024
2 parents f8523a5 + 5c011db commit 0273f99
Show file tree
Hide file tree
Showing 9 changed files with 41 additions and 16 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/snyk.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,6 @@ jobs:
--all-sub-projects
--configuration-matching='^runtimeClasspath$'
--org=radar-base
--policy-path=$PWD/.snyk
--policy-path=.snyk
--json-file-output=snyk.json
--severity-threshold=high
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
- In the `passive` subdirectory, add schemas for passive data collection, like wearables.
- In the `stream` subdirectory, add schemas used in Kafka Streams.
- The `specifications` directory contains specifications of what data types are collected through which devices.
- Java SDKs for each of the components are provided in the `java-sdk` folder, see installation instructions there. They are automatically generated from the Avro schemas using the Avro 1.8.2 specification.
- Java SDKs for each of the components are provided in the `java-sdk` folder, see installation instructions there. They are automatically generated from the Avro schemas using the Avro specification (version in [Versions.kt](java-sdk/buildSrc/src/main/kotlin/Versions.kt)).

## Usage

Expand Down
11 changes: 11 additions & 0 deletions commons/connector/fitbit/fitbit_intraday_spo2.avsc
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"namespace": "org.radarcns.connector.fitbit",
"type": "record",
"name": "FitbitIntradaySpo2",
"doc": "Intra day spo2 data from fitbit device.",
"fields": [
{ "name": "time", "type": "double", "doc": "Device timestamp in UTC (s)." },
{ "name": "timeReceived", "type": "double", "doc": "Time that the data was received from the Fitbit API (seconds since the Unix Epoch)." },
{ "name": "spo2", "type": "float", "doc": "Percentage value of SpO2 in the bloodstream. SpO2 data is collected when the user is in an extended period of sleep (at least 3 hours of quality sleep). Spo2 values are calculated on a 5-minute exponentially-moving average and provided at the end of a period of sleep."}
]
}
8 changes: 7 additions & 1 deletion commons/passive/phone/phone_bluetooth_device_scanned.avsc
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,12 @@
{"name": "timeReceived", "type": "double", "doc": "Device receiver timestamp in UTC (s)."},
{"name": "macAddressHash", "type": ["null", "bytes"], "default": null, "doc":"Hash of Nearby Bluetooth device MAC address."},
{"name": "hashSaltReference", "type": ["null", "int"], "doc": "Random identifier associated with the device or installation of the app. If the app gets reinstalled or installed on another device, it's clear during analysis that the mac addresses between iterations are not comparable.", "default": null},
{"name": "isPaired", "type": ["null","boolean"], "doc": "Whether the bluetooth device is paired.", "default": null}
{"name": "isPaired", "type": ["null","boolean"], "doc": "Whether the bluetooth device is paired. This has been deprecated in favor of pairedState in newer versions.", "default": null},
{"name": "pairedState", "type": ["null", {
"name": "PairedState",
"type": "enum",
"doc": "Represent the bond state of the remote device. \nNOT_PAIRED indicates the remote device is not paired. \nPAIRING indicates pairing is in progress with the remote device. \nPAIRED Indicates the remote device is paired. \nUNKNOWN indicates the pairing status is not known.",
"symbols": ["NOT_PAIRED", "PAIRING", "PAIRED", "UNKNOWN"]
}], "doc": "Indicates the current paired status of the remote device.", "default": null }
]
}
2 changes: 1 addition & 1 deletion java-sdk/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ configure(listOf(
apply(plugin = "org.radarbase.radar-publishing")

radarKotlin {
javaVersion.set(11)
javaVersion.set(Versions.java)
}

radarPublishing {
Expand Down
2 changes: 1 addition & 1 deletion java-sdk/buildSrc/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import org.jetbrains.kotlin.gradle.dsl.JvmTarget
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile

plugins {
kotlin("jvm") version "1.9.10"
kotlin("jvm") version "1.9.22"
}

repositories {
Expand Down
20 changes: 10 additions & 10 deletions java-sdk/buildSrc/src/main/kotlin/Versions.kt
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
object Versions {
const val project = "0.8.6"
const val project = "0.8.7"

const val kotlin = "1.9.10"
const val java = 17
const val avroGenerator = "1.5.0"
const val avroGenerator = "1.9.1"

const val radarCommons = "1.1.1-SNAPSHOT"
const val avro = "1.11.1"
const val jackson = "2.15.2"
const val radarCommons = "1.1.2"
const val avro = "1.11.3"
const val jackson = "2.16.1"
const val argparse = "0.9.0"
const val radarJersey = "0.11.0-SNAPSHOT"
const val junit = "5.10.0"
const val confluent = "7.5.0"
const val radarJersey = "0.11.1"
const val junit = "5.10.1"
const val confluent = "7.6.0"
const val kafka = "$confluent-ce"
const val okHttp = "4.11.0"
const val ktor = "2.3.0"
const val okHttp = "4.12.0"
const val ktor = "2.3.4"
const val slf4j = "2.0.9"
const val jakartaValidation = "3.0.2"
const val log4j2 = "2.20.0"
Expand Down
2 changes: 1 addition & 1 deletion java-sdk/radar-schemas-registration/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,5 @@ dependencies {
implementation("io.confluent:kafka-schema-registry-client:${Versions.confluent}")

implementation("org.apache.kafka:connect-json:${Versions.kafka}")
implementation("io.ktor:ktor-client-auth:2.3.4")
implementation("io.ktor:ktor-client-auth:${Versions.ktor}")
}
6 changes: 6 additions & 0 deletions specifications/connector/radar-fitbit-connector.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,3 +37,9 @@ data:
- doc: Skin temperature
topic: connect_fitbit_skin_temperature
value_schema: .connector.fitbit.FitbitSkinTemperature
- doc: Spo2 or Blood oxygen saturation
topic: connect_fitbit_intraday_spo2
value_schema: .connector.fitbit.FitbitIntradaySpo2
- doc: Resting heart rate
topic: connect_fitbit_resting_heart_rate
value_schema: .connector.fitbit.FitbitRestingHeartRate

0 comments on commit 0273f99

Please sign in to comment.