mirror of
https://github.com/house-of-abbey/GarminHomeAssistant.git
synced 2025-06-15 10:58:40 +00:00
Support for Vivoactive 6 device (#230)
This required an update to the SDK to version 8.1.0. The new SDK found some new code warnings for unreachable code previously known to be reached based on stricter type checking, so fixed in this commit too.
This commit is contained in:
@ -40,3 +40,4 @@
|
|||||||
| 2.25 | 2 Bug fixes. First time startup issues caused by v2.24 change and a fix for pure numbers in returned templates. |
|
| 2.25 | 2 Bug fixes. First time startup issues caused by v2.24 change and a fix for pure numbers in returned templates. |
|
||||||
| 2.26 | Retry responsive menu fix failed in v2.24. Cosmetic internal class changes. |
|
| 2.26 | Retry responsive menu fix failed in v2.24. Cosmetic internal class changes. |
|
||||||
| 2.27 | Trivial bug fix for the glance view to prevent the "Unconfigured" result being erroneously displayed because the settings were not yet pulled from persistent storage. |
|
| 2.27 | Trivial bug fix for the glance view to prevent the "Unconfigured" result being erroneously displayed because the settings were not yet pulled from persistent storage. |
|
||||||
|
| 2.28 | Added support for Vivoactive 6 device which also required an SDK update to 8.1.0. |
|
||||||
|
81
export.cmd
81
export.cmd
@ -29,45 +29,49 @@ rem Assume we can create and use this directory
|
|||||||
set DEST=export
|
set DEST=export
|
||||||
set IQ=HomeAssistant-app.iq
|
set IQ=HomeAssistant-app.iq
|
||||||
|
|
||||||
rem C:\>java -jar %SDK_PATH%\monkeybrains.jar -h
|
rem usage: monkeyc [-a <arg>] [-b <arg>] [--build-stats <arg>] [-d <arg>]
|
||||||
rem usage: monkeyc [-a <arg>] [-b <arg>] [--build-stats <arg>] [-c <arg>] [-d <arg>]
|
rem [--debug-log-level <arg>] [--debug-log-output <arg>]
|
||||||
rem [--debug-log-level <arg>] [--debug-log-output <arg>] [-e]
|
rem [--disable-api-has-check-removal] [--disable-v2-opcodes] [-e]
|
||||||
rem [--Eno-invalid-symbol] [-f <arg>] [-g] [-h] [-i <arg>] [-k] [-l <arg>]
|
rem [--Eno-invalid-symbol] [-f <arg>] [-g] [-h] [-i <arg>] [-k] [-l <arg>]
|
||||||
rem [-m <arg>] [--no-gen-styles] [-o <arg>] [-O <arg>] [-p <arg>] [-r] [-s
|
rem [-m <arg>] [--no-gen-styles] [-o <arg>] [-O <arg>] [-p <arg>] [-r] [-t]
|
||||||
rem <arg>] [-t] [-u <arg>] [-v] [-w] [-x <arg>] [-y <arg>] [-z <arg>]
|
rem [-u <arg>] [-v] [-w] [-x <arg>] [-y <arg>] [-z <arg>]
|
||||||
rem -a,--apidb <arg> API import file
|
rem -a,--apidb <arg> API import file
|
||||||
rem -b,--apimir <arg> API MIR file
|
rem -b,--apimir <arg> API MIR file
|
||||||
rem --build-stats <arg> Print build stats [0=basic]
|
rem --build-stats <arg> Print build stats [0=basic]
|
||||||
rem -c,--api-level <arg> API Level to target
|
rem -d,--device <arg> Target device
|
||||||
rem -d,--device <arg> Target device
|
rem --debug-log-level <arg> Debug logging verbosity [0=errors, 1=basic,
|
||||||
rem --debug-log-level <arg> Debug logging verbosity [0=errors, 1=basic,
|
rem 2=intermediate, 3=verbose]
|
||||||
rem 2=intermediate, 3=verbose]
|
rem --debug-log-output <arg> Output log zip file
|
||||||
rem --debug-log-output <arg>Output log zip file
|
rem --disable-api-has-check-removalDo not optimize out API has checks
|
||||||
rem -e,--package-app Create an application package.
|
rem --disable-v2-opcodes Do not use the v2 opcodes
|
||||||
rem --Eno-invalid-symbol Do not error when a symbol is found to be invalid
|
rem -e,--package-app Create an application package.
|
||||||
rem -f,--jungles <arg> Jungle files
|
rem --Eno-invalid-symbol Do not error when a symbol is found to be
|
||||||
rem -g,--debug Print debug output
|
rem invalid
|
||||||
rem -h,--help Prints help information
|
rem -f,--jungles <arg> Jungle files
|
||||||
rem -i,--import-dbg <arg> Import api.debug.xml
|
rem -g,--debug Print debug output
|
||||||
rem -k,--profile Enable profiling support
|
rem -h,--help Prints help information
|
||||||
rem -l,--typecheck <arg> Type check [0=off, 1=gradual, 2=informative,
|
rem -i,--import-dbg <arg> Import api.debug.xml
|
||||||
rem 3=strict]
|
rem -k,--profile Enable profiling support
|
||||||
rem -m,--manifest <arg> Manifest file (deprecated)
|
rem -l,--typecheck <arg> Type check [0=off, 1=gradual, 2=informative,
|
||||||
rem --no-gen-styles Do not generate Rez.Styles module
|
rem 3=strict]
|
||||||
rem -o,--output <arg> Output file to create
|
rem -m,--manifest <arg> Manifest file (deprecated)
|
||||||
rem -O,--optimization <arg> Optimization level [0=none, 1=basic, 2=fast
|
rem --no-gen-styles Do not generate Rez.Styles module
|
||||||
rem optimizations, 3=slow optimizations] [p=optimize
|
rem -o,--output <arg> Output file to create
|
||||||
rem performance, z=optimize code space]
|
rem -O,--optimization <arg> Optimization level [0=none, 1=basic, 2=fast
|
||||||
rem -p,--project-info <arg> projectInfo.xml file to use when compiling
|
rem optimizations, 3=slow optimizations]
|
||||||
rem -r,--release Strip debug information
|
rem [p=optimize performance, z=optimize code
|
||||||
rem -s,--sdk-version <arg> SDK version to target (deprecated, use -c
|
rem space]
|
||||||
rem -t,--unit-test Enables compilation of unit tests
|
rem -p,--project-info <arg> projectInfo.xml file to use when compiling
|
||||||
rem -u,--devices <arg> devices.xml file to use when compiling (deprecated)
|
rem -r,--release Strip debug information
|
||||||
rem -v,--version Prints the compiler version
|
rem -t,--unit-test Enables compilation of unit tests
|
||||||
rem -w,--warn Show compiler warnings
|
rem -u,--devices <arg> devices.xml file to use when compiling
|
||||||
rem -x,--excludes <arg> Add annotations to the exclude list (deprecated)
|
rem (deprecated)
|
||||||
rem -y,--private-key <arg> Private key to sign builds with
|
rem -v,--version Prints the compiler version
|
||||||
rem -z,--rez <arg> Resource files (deprecated)
|
rem -w,--warn Show compiler warnings
|
||||||
|
rem -x,--excludes <arg> Add annotations to the exclude list
|
||||||
|
rem (deprecated)
|
||||||
|
rem -y,--private-key <arg> Private key to sign builds with
|
||||||
|
rem -z,--rez <arg> Resource files (deprecated)
|
||||||
|
|
||||||
title Exporting Garmin Home Assistant Application
|
title Exporting Garmin Home Assistant Application
|
||||||
|
|
||||||
@ -96,7 +100,6 @@ echo.
|
|||||||
-Dfile.encoding=UTF-8 ^
|
-Dfile.encoding=UTF-8 ^
|
||||||
-Dapple.awt.UIElement=true ^
|
-Dapple.awt.UIElement=true ^
|
||||||
-jar %SDK_PATH%\monkeybrains.jar ^
|
-jar %SDK_PATH%\monkeybrains.jar ^
|
||||||
--api-level 3.1.0 ^
|
|
||||||
--output %IQ% ^
|
--output %IQ% ^
|
||||||
--jungles %SRC%\monkey.jungle ^
|
--jungles %SRC%\monkey.jungle ^
|
||||||
--private-key %SRC%\..\developer_key ^
|
--private-key %SRC%\..\developer_key ^
|
||||||
|
@ -159,6 +159,7 @@
|
|||||||
<iq:product id="vivoactive4"/>
|
<iq:product id="vivoactive4"/>
|
||||||
<iq:product id="vivoactive4s"/>
|
<iq:product id="vivoactive4s"/>
|
||||||
<iq:product id="vivoactive5"/>
|
<iq:product id="vivoactive5"/>
|
||||||
|
<iq:product id="vivoactive6"/>
|
||||||
</iq:products>
|
</iq:products>
|
||||||
<!--
|
<!--
|
||||||
Use "Monkey C: Edit Permissions" from the Visual Studio Code command
|
Use "Monkey C: Edit Permissions" from the Visual Studio Code command
|
||||||
|
@ -241,5 +241,7 @@ vivoactive3mlte.resourcePath = $(vivoactive3mlte.resourcePath);resources-launche
|
|||||||
vivoactive4.resourcePath = $(vivoactive4.resourcePath);resources-launcher-35-35;resources-icons-30
|
vivoactive4.resourcePath = $(vivoactive4.resourcePath);resources-launcher-35-35;resources-icons-30
|
||||||
# Screen Size 218x218 launcher icon size 30x30
|
# Screen Size 218x218 launcher icon size 30x30
|
||||||
vivoactive4s.resourcePath = $(vivoactive4s.resourcePath);resources-launcher-30-30;resources-icons-26
|
vivoactive4s.resourcePath = $(vivoactive4s.resourcePath);resources-launcher-30-30;resources-icons-26
|
||||||
# Screen Size 390x390 launcher icon size 70x70
|
# Screen Size 390x390 launcher icon size 56x56
|
||||||
vivoactive5.resourcePath = $(vivoactive5.resourcePath);resources-launcher-70-70;resources-icons-46
|
vivoactive5.resourcePath = $(vivoactive5.resourcePath);resources-launcher-56-56;resources-icons-46
|
||||||
|
# Screen Size 390x390 launcher icon size 54x54
|
||||||
|
vivoactive6.resourcePath = $(vivoactive6.resourcePath);resources-launcher-54-54;resources-icons-46
|
||||||
|
@ -51,7 +51,7 @@ class HomeAssistantMenuItem extends WatchUi.IconMenuItem {
|
|||||||
return mTemplate;
|
return mTemplate;
|
||||||
}
|
}
|
||||||
|
|
||||||
function updateState(data as Lang.String or Lang.Dictionary or Null) as Void {
|
function updateState(data as Lang.String or Lang.Dictionary or Lang.Number or Lang.Float or Null) as Void {
|
||||||
if (data == null) {
|
if (data == null) {
|
||||||
setSubLabel($.Rez.Strings.Empty);
|
setSubLabel($.Rez.Strings.Empty);
|
||||||
} else if(data instanceof Lang.String) {
|
} else if(data instanceof Lang.String) {
|
||||||
|
@ -75,7 +75,7 @@ class HomeAssistantToggleMenuItem extends WatchUi.ToggleMenuItem {
|
|||||||
return "{{states('" + mData.get("entity_id") + "')}}";
|
return "{{states('" + mData.get("entity_id") + "')}}";
|
||||||
}
|
}
|
||||||
|
|
||||||
function updateState(data as Lang.String or Lang.Dictionary or Null) as Void {
|
function updateState(data as Lang.String or Lang.Dictionary or Lang.Number or Lang.Float or Null) as Void {
|
||||||
if (data == null) {
|
if (data == null) {
|
||||||
setSubLabel(null);
|
setSubLabel(null);
|
||||||
} else if(data instanceof Lang.String) {
|
} else if(data instanceof Lang.String) {
|
||||||
|
Reference in New Issue
Block a user