diff --git a/CHANGELOG.md b/CHANGELOG.md index d9d8101c..fe77b4d1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,11 @@ # Change Log +## 4.16.5 — 2024-07-12 +* [Android][Expo] Conditionally add polygonLicense only if provided in Config. Do not write to AndroidManifest unless provided. + +## 4.16.4 — 2024-07-08 +* [Android][Expo] Implement polygonLicense Config option + ## 4.16.3 — 2024-06-12 * [Android] Remove permission `FOREGROUND_SERVICE_HEALTH`. It turns out that this permission is no longer required whe n the `ActivityRecognitionServivce` is defined with a `foregroundServiceType="shortservice"`, instead of `"health"`, which allows a background diff --git a/expo/plugin/src/androidPlugin.ts b/expo/plugin/src/androidPlugin.ts index ce4a242d..83ea9693 100644 --- a/expo/plugin/src/androidPlugin.ts +++ b/expo/plugin/src/androidPlugin.ts @@ -98,11 +98,13 @@ const androidPlugin: ConfigPlugin = (config, props={}) => { META_HMS_LICENSE_KEY, props.hmsLicense || "UNDEFINED" ); - addMetaDataItemToMainApplication( - mainApplication, - META_POLYGON_LICENSE_KEY, - props.polygonLicense || "UNDEFINED" - ); + if (props.polygonLicense) { + addMetaDataItemToMainApplication( + mainApplication, + META_POLYGON_LICENSE_KEY, + props.polygonLicense + ); + } return config; }); diff --git a/package.json b/package.json index ad1950b0..290d72d0 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "react-native-background-geolocation", - "version": "4.16.4", + "version": "4.16.5", "description": "The most sophisticated cross-platform background location-tracking & geofencing module with battery-conscious motion-detection intelligence", "scripts": { "build": "yarn run build:expo",