Skip to content

Commit

Permalink
Merge pull request #148 from OutSystems/development
Browse files Browse the repository at this point in the history
Merge `development` into `main` for `2.2.0` Release
  • Loading branch information
OS-ricardomoreirasilva authored Oct 3, 2024
2 parents e98f02f + 134a9eb commit 9ed6540
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 6 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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).
Expand Down
11 changes: 9 additions & 2 deletions hooks/androidCopyPreferencesPermissions.js
Original file line number Diff line number Diff line change
@@ -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"
Expand Down Expand Up @@ -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
}
}

Expand All @@ -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",
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand All @@ -16,6 +16,6 @@
},
"engines": [],
"dependencies": {
"xmldom": "^0.6.0"
"@xmldom/xmldom": "^0.9.0"
}
}
2 changes: 1 addition & 1 deletion plugin.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<plugin id="com.outsystems.plugins.healthfitness" version="2.1.2" xmlns="http://apache.org/cordova/ns/plugins/1.0" xmlns:android="http://schemas.android.com/apk/res/android">
<plugin id="com.outsystems.plugins.healthfitness" version="2.2.0" xmlns="http://apache.org/cordova/ns/plugins/1.0" xmlns:android="http://schemas.android.com/apk/res/android">
<name>HealthFitness</name>
<description>Health &amp; Fitness cordova plugin for OutSystems applications.</description>
<author>OutSystems Inc</author>
Expand Down
2 changes: 1 addition & 1 deletion src/android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 9ed6540

Please sign in to comment.