Skip to content

Commit 361ae2b

Browse files
authored
Merge pull request #123 from RADAR-base/release-0.5.2
Release 0.5.2
2 parents d91b327 + 0d52c91 commit 361ae2b

21 files changed

+325
-72
lines changed

.github/workflows/codeql.yml

Lines changed: 89 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,89 @@
1+
# For most projects, this workflow file will not need changing; you simply need
2+
# to commit it to your repository.
3+
#
4+
# You may wish to alter this file to override the set of languages analyzed,
5+
# or to provide custom queries or build logic.
6+
#
7+
# ******** NOTE ********
8+
# We have attempted to detect the languages in your repository. Please check
9+
# the `language` matrix defined below to confirm you have the correct set of
10+
# supported CodeQL languages.
11+
#
12+
name: "CodeQL"
13+
14+
on:
15+
push:
16+
branches: [ "master", "dev" ]
17+
pull_request:
18+
branches: [ "master", "dev" ]
19+
schedule:
20+
- cron: '24 21 * * 0'
21+
22+
jobs:
23+
analyze:
24+
name: Analyze
25+
# Runner size impacts CodeQL analysis time. To learn more, please see:
26+
# - https://gh.io/recommended-hardware-resources-for-running-codeql
27+
# - https://gh.io/supported-runners-and-hardware-resources
28+
# - https://gh.io/using-larger-runners
29+
# Consider using larger runners for possible analysis time improvements.
30+
runs-on: ${{ (matrix.language == 'swift' && 'macos-latest') || 'ubuntu-latest' }}
31+
timeout-minutes: ${{ (matrix.language == 'swift' && 120) || 360 }}
32+
permissions:
33+
# required for all workflows
34+
security-events: write
35+
36+
# only required for workflows in private repositories
37+
actions: read
38+
contents: read
39+
40+
strategy:
41+
fail-fast: false
42+
matrix:
43+
language: [ 'java-kotlin' ]
44+
# CodeQL supports [ 'c-cpp', 'csharp', 'go', 'java-kotlin', 'javascript-typescript', 'python', 'ruby', 'swift' ]
45+
# Use only 'java-kotlin' to analyze code written in Java, Kotlin or both
46+
# Use only 'javascript-typescript' to analyze code written in JavaScript, TypeScript or both
47+
# Learn more about CodeQL language support at https://aka.ms/codeql-docs/language-support
48+
49+
steps:
50+
- name: Checkout repository
51+
uses: actions/checkout@v4
52+
53+
- uses: actions/setup-java@v4
54+
with:
55+
distribution: 'temurin' # See 'Supported distributions' for available options
56+
java-version: '17'
57+
58+
# Initializes the CodeQL tools for scanning.
59+
- name: Initialize CodeQL
60+
uses: github/codeql-action/init@v3
61+
with:
62+
languages: ${{ matrix.language }}
63+
# If you wish to specify custom queries, you can do so here or in a config file.
64+
# By default, queries listed here will override any specified in a config file.
65+
# Prefix the list here with "+" to use these queries and those in the config file.
66+
67+
# For more details on CodeQL's query packs, refer to: https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs
68+
# queries: security-extended,security-and-quality
69+
70+
71+
# Autobuild attempts to build any compiled languages (C/C++, C#, Go, Java, or Swift).
72+
# If this step fails, then you should remove it and run the build manually (see below)
73+
- name: Autobuild
74+
uses: github/codeql-action/autobuild@v3
75+
76+
# ℹ️ Command-line programs to run using the OS shell.
77+
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun
78+
79+
# If the Autobuild fails above, remove it and uncomment the following three lines.
80+
# modify them (or add more) to build your code if your project, please refer to the EXAMPLE below for guidance.
81+
82+
# - run: |
83+
# echo "Run, Build Application using script"
84+
# ./location_of_script_within_repo/buildscript.sh
85+
86+
- name: Perform CodeQL Analysis
87+
uses: github/codeql-action/analyze@v3
88+
with:
89+
category: "/language:${{matrix.language}}"

.github/workflows/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
- uses: actions/setup-java@v3
2626
with:
2727
distribution: temurin
28-
java-version: 11
28+
java-version: 17
2929

3030
- name: Setup Gradle
3131
uses: gradle/gradle-build-action@v2

.github/workflows/oura.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
- uses: actions/setup-java@v3
2626
with:
2727
distribution: temurin
28-
java-version: 11
28+
java-version: 17
2929

3030
- name: Setup Gradle
3131
uses: gradle/gradle-build-action@v2

.github/workflows/release-fitbit.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
- uses: actions/setup-java@v3
2121
with:
2222
distribution: temurin
23-
java-version: 11
23+
java-version: 17
2424

2525
- name: Gradle cache
2626
uses: actions/cache@v3

.github/workflows/release-oura.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
- uses: actions/setup-java@v3
2121
with:
2222
distribution: temurin
23-
java-version: 11
23+
java-version: 17
2424

2525
- name: Gradle cache
2626
uses: actions/cache@v3

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Fitbit in particular. The documentation of the Kafka Connect REST source still n
88
### Installation
99

1010
This repository relies on a recent version of docker and docker-compose as well as an installation
11-
of Java 11 or later.
11+
of Java 17 or later.
1212

1313
### Usage
1414

buildSrc/build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
plugins {
2-
kotlin("jvm") version "1.9.10"
2+
kotlin("jvm") version "1.9.22"
33
}
44

55
repositories {
Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,33 @@
11
@Suppress("ConstPropertyName", "MemberVisibilityCanBePrivate")
22
object Versions {
3-
const val project = "0.5.1"
3+
const val project = "0.5.2"
44

5-
const val java = 11
5+
const val java = 17
66
const val kotlin = "1.9.10"
77
const val wrapper = "8.4"
88

9-
const val radarCommons = "1.1.1"
10-
const val confluent = "7.5.0"
9+
const val radarCommons = "1.1.2"
10+
const val confluent = "7.6.0"
1111
const val kafka = "$confluent-ce"
12-
const val avro = "1.11.0"
12+
const val avro = "1.11.3"
1313

1414
const val managementPortal = "2.0.0"
1515

1616
// From image
17-
const val jackson = "2.14.2"
17+
const val jackson = "2.16.1"
1818

1919
const val log4j2 = "2.20.0"
2020
const val slf4j = "2.0.9"
2121

22-
const val okhttp = "4.11.0"
22+
const val okhttp = "4.12.0"
2323

2424
const val firebaseAdmin = "9.1.0"
25-
const val radarSchemas = "0.8.6"
25+
const val radarSchemas = "0.8.7-hotfix"
2626
const val ktor = "2.3.5"
2727

2828
const val junit = "5.9.3"
2929
const val wiremock = "2.27.2"
3030
const val mockito = "5.3.1"
3131

32-
const val kotlinVersion = "1.8.21"
32+
const val kotlinVersion = "1.9.10"
3333
}

kafka-connect-fitbit-source/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15-
FROM --platform=$BUILDPLATFORM gradle:8.4-jdk11 as builder
15+
FROM --platform=$BUILDPLATFORM gradle:8.4-jdk17 as builder
1616

1717
RUN mkdir /code
1818
WORKDIR /code

kafka-connect-fitbit-source/src/main/java/org/radarbase/connect/rest/fitbit/FitbitRestSourceConnectorConfig.java

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,11 @@ public class FitbitRestSourceConnectorConfig extends RestSourceConnectorConfig {
106106
private static final String FITBIT_INTRADAY_HEART_RATE_VARIABILITY_TOPIC_DISPLAY = "Intraday heart rate variability topic";
107107
private static final String FITBIT_INTRADAY_HEART_RATE_VARIABILITY_TOPIC_DEFAULT = "connect_fitbit_intraday_heart_rate_variability";
108108

109+
private static final String FITBIT_INTRADAY_SPO2_TOPIC_CONFIG = "fitbit.intraday.spo2.topic";
110+
private static final String FITBIT_INTRADAY_SPO2_TOPIC_DOC = "Topic for Fitbit intraday intraday_spo2";
111+
private static final String FITBIT_INTRADAY_SPO2_TOPIC_DISPLAY = "Intraday spo2 topic";
112+
private static final String FITBIT_INTRADAY_SPO2_TOPIC_DEFAULT = "connect_fitbit_intraday_spo2";
113+
109114
private static final String FITBIT_BREATHING_RATE_TOPIC_CONFIG = "fitbit.breathing.rate.topic";
110115
private static final String FITBIT_BREATHING_RATE_TOPIC_DOC = "Topic for Fitbit breathing rate";
111116
private static final String FITBIT_BREATHING_RATE_TOPIC_DISPLAY = "Breathing rate topic";
@@ -343,6 +348,17 @@ public String toString() {
343348
Width.SHORT,
344349
FITBIT_INTRADAY_HEART_RATE_VARIABILITY_TOPIC_DISPLAY)
345350

351+
.define(FITBIT_INTRADAY_SPO2_TOPIC_CONFIG,
352+
Type.STRING,
353+
FITBIT_INTRADAY_SPO2_TOPIC_DEFAULT,
354+
nonControlChar,
355+
Importance.LOW,
356+
FITBIT_INTRADAY_SPO2_TOPIC_DOC,
357+
group,
358+
++orderInGroup,
359+
Width.SHORT,
360+
FITBIT_INTRADAY_SPO2_TOPIC_DISPLAY)
361+
346362
.define(FITBIT_BREATHING_RATE_TOPIC_CONFIG,
347363
Type.STRING,
348364
FITBIT_BREATHING_RATE_TOPIC_DEFAULT,
@@ -511,6 +527,10 @@ public String getFitbitIntradayHeartRateVariabilityTopic() {
511527
return getString(FITBIT_INTRADAY_HEART_RATE_VARIABILITY_TOPIC_CONFIG);
512528
}
513529

530+
public String getFitbitIntradaySpo2Topic() {
531+
return getString(FITBIT_INTRADAY_SPO2_TOPIC_CONFIG);
532+
}
533+
514534
public String getFitbitBreathingRateTopic() {
515535
return getString(FITBIT_BREATHING_RATE_TOPIC_CONFIG);
516536
}

0 commit comments

Comments
 (0)