diff --git a/CHANGELOG.md b/CHANGELOG.md index a3040d6..6019c7d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 The changes documented here do not include those from the original repository. +## [2.2.0] + +### Features + +- (ios): Implement support for `Body Temperature` health variable (https://outsystemsrd.atlassian.net/browse/RMET-3672). +- (android): Implement support for `Body Temperature` health variable (https://outsystemsrd.atlassian.net/browse/RMET-3673). + ## [2.1.2] - Fix: Request `READ_HEALTH_DATA_IN_BACKGROUND` permission for Android 15 when setting a background job (https://outsystemsrd.atlassian.net/browse/RMET-3574). diff --git a/hooks/androidCopyPreferencesPermissions.js b/hooks/androidCopyPreferencesPermissions.js index e7f8cb8..98cf10b 100644 --- a/hooks/androidCopyPreferencesPermissions.js +++ b/hooks/androidCopyPreferencesPermissions.js @@ -1,7 +1,7 @@ const fs = require('fs'); const path = require('path'); const { ConfigParser } = require('cordova-common'); -const { DOMParser, XMLSerializer } = require('xmldom'); +const { DOMParser, XMLSerializer } = require('@xmldom/xmldom'); const READ = "Read" const WRITE = "Write" @@ -99,6 +99,13 @@ let permissions = { writePermission: "android.permission.health.WRITE_OXYGEN_SATURATION", configValue: undefined, wasSet: false + }, + BodyTemperature: { + variableName: "BodyTemperature", + readPermission: "android.permission.health.READ_BODY_TEMPERATURE", + writePermission: "android.permission.health.WRITE_BODY_TEMPERATURE", + configValue: undefined, + wasSet: false } } @@ -121,7 +128,7 @@ let groupPermissions = { variableName: "HealthVariables", configValue: undefined, wasSet: false, - groupVariables: ["HeartRate", "Sleep", "BloodPressure", "BloodGlucose", "OxygenSaturation"] + groupVariables: ["HeartRate", "Sleep", "BloodPressure", "BloodGlucose", "OxygenSaturation", "BodyTemperature"] }, ProfileVariables: { variableName: "ProfileVariables", diff --git a/package.json b/package.json index cce5d5a..afa9228 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "com.outsystems.plugins.healthfitness", - "version": "2.1.2", + "version": "2.2.0", "description": "Health & Fitness cordova plugin for OutSystems applications.", "keywords": [ "ecosystem:cordova", @@ -16,6 +16,6 @@ }, "engines": [], "dependencies": { - "xmldom": "^0.6.0" + "@xmldom/xmldom": "^0.9.0" } } diff --git a/plugin.xml b/plugin.xml index 48970f6..9b6a361 100644 --- a/plugin.xml +++ b/plugin.xml @@ -1,5 +1,5 @@ - + HealthFitness Health & Fitness cordova plugin for OutSystems applications. OutSystems Inc diff --git a/src/android/build.gradle b/src/android/build.gradle index 4a7c453..5066c87 100644 --- a/src/android/build.gradle +++ b/src/android/build.gradle @@ -25,7 +25,7 @@ dependencies{ implementation("com.github.outsystems:oscore-android:1.2.0@aar") implementation("com.github.outsystems:oscordova-android:2.0.1@aar") - implementation("com.github.outsystems:oshealthfitness-android:2.1.2@aar") + implementation("com.github.outsystems:oshealthfitness-android:2.2.0@aar") implementation("com.github.outsystems:osnotificationpermissions-android:0.0.4@aar") // activity