From ead7e2e6583ad3bd8e1898f3c8c8c29ae6458b50 Mon Sep 17 00:00:00 2001 From: Philip Abbey Date: Mon, 18 Dec 2023 15:14:36 +0000 Subject: [PATCH] Tweakes export.cmd amended cosmetically. README.md version info updated. --- README.md | 2 +- export.cmd | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 6857850..5b5847c 100644 --- a/README.md +++ b/README.md @@ -259,4 +259,4 @@ The `id` attribute values are taken from the same names used in [`strings.xml`]( | 1.5 | Added an optional confirmation dialogue view to prevent accidental execution of actions on mistaken tap. This also brings a change in the JSON schema to allow an optional field to specify that the confirmation should be used for a menu item. As we are now maturing and adding features we have decided to mitigate breaking changes to the JSON schema by being more careful to adopt the Home Assistant schema (noting there is a 1:1 mapping between YAML and JSON). This change does deprecate the top level `service` tag in favour of `tag_action` containing multiple fields including `service` & `confirm`. Users should migrate to the new format for the new functionality, but the timescale for actual deprecation are long and undecided. | | 1.6 | Added a user configurable 'timeout' in seconds so that when no action is taken the application automatically closes, stopping the continuous polling for changes of status and hence saving the drain on the battery. This can be disabled with timeout=0. | | 1.7 | Added timeout to confirmation views so that when used for security devices it does not linger when left unconfirmed. Thanks to [Jan Schneider](https://github.com/j-a-n) for the contribution. Known bug for devices not supporting [`WatchUi.getCurrentView()`](https://developer.garmin.com/connect-iq/api-docs/Toybox/WatchUi.html#getCurrentView-instance_function) API call which is only available on API Level 3.4.0, e.g. Vivoactive 4S. | -| 2.0 | A significant code base change to enable both a 'widget' version for older devices, e.g. Venu (1), and an application with a glance, e.g. Venu2. These two versions must now be distributed under separate application IDs, but they have the same code base. A further 20 more devices are now supported, and the settings have been internationalised. | +| 2.0 | A significant code base change to enable both a 'widget' version for older devices, e.g. Venu (1), and an application with a glance, e.g. Venu2. These two versions must now be distributed under separate application IDs, but they have the same code base. A further 20 more devices are now supported, the settings have been internationalised, and there's a bug fix for older devices when trying to display a helpful error message but instead the application crashed. | diff --git a/export.cmd b/export.cmd index 08e9da7..4449351 100644 --- a/export.cmd +++ b/export.cmd @@ -19,7 +19,7 @@ rem rem ----------------------------------------------------------------------------------- rem Check this path is correct for your Java installation -set JAVA_PATH="C:\Program Files (x86)\Common Files\Oracle\Java\javapath" +set JAVA_PATH=C:\Program Files (x86)\Common Files\Oracle\Java\javapath rem SDK_PATH should work for all users set /p SDK_PATH=<"%USERPROFILE%\AppData\Roaming\Garmin\ConnectIQ\current-sdk.cfg" set SDK_PATH=%SDK_PATH:~0,-1%\bin @@ -69,7 +69,9 @@ set SRC=%~dp0 rem drop last character '\' set SRC=%SRC:~0,-1% -del /f /q %SRC%\export\HomeAssistant*.iq +if exist %SRC%\export\HomeAssistant*.iq ( + del /f /q %SRC%\export\HomeAssistant*.iq +) echo. echo Starting export of HomeAssistant Application