house-of-abbey / GarminHomeAssistantWidget

Garmin widget to provide a dashboard to control your Home Assistant
https://community.home-assistant.io/t/home-assistant-app-for-garmin/637348
MIT License
1 stars 0 forks source link

SDK 7.1.0 Cannot compile existing codebase #15

Open philipabbey opened 6 months ago

philipabbey commented 6 months ago
java -Xms1g -Dfile.encoding=UTF-8 -Dapple.awt.UIElement=true -jar c:\Users\philip\AppData\Roaming\Garmin\ConnectIQ\Sdks\connectiq-sdk-win-7.1.0_RC2-2024-02-14-4a71df847\bin\monkeybrains.jar -o a:\Philip\Programming\MonkeyC\HomeAssistantWidget\bin\HomeAssistantWidget.prg -f a:\Philip\Programming\MonkeyC\HomeAssistantWidget\monkey.jungle -y a:\Philip\Programming\MonkeyC\developer_key -d venu -w -r

ERROR: venu: A:\Philip\Programming\MonkeyC\HomeAssistantWidget\source\HomeAssistantApp.mc:52: Cannot override '$.Toybox.Application.AppBase.getInitialView' with a different return type.
ERROR: venu: A:\Philip\Programming\MonkeyC\HomeAssistantWidget\source\HomeAssistantApp.mc:323: Cannot override '$.Toybox.Application.AppBase.getServiceDelegate' with a different return type.

I have yet to figure out what the function prototype should be instead based on documentation at https://developer.garmin.com/connect-iq/api-docs/Toybox/Application/AppBase.html#getInitialView-instance_function.

philipabbey commented 6 months ago

Hold fire on this issue, see https://forums.garmin.com/developer/connect-iq/f/discussion/365809/is-sdk-7-1-0-an-april-s-fool-joke/

philipabbey commented 1 month ago

The Application variant has now been updated to SDK 7.3.0. The new function prototypes can be copied across.