TcMenu / tcMenu

Menu library for Arduino, mbed and ESP with designer UI and remote control capabilities.
https://www.thecoderscorner.com/products/arduino-libraries/tc-menu/
Apache License 2.0
292 stars 24 forks source link

Move the Java API and embedded examples to a new repository. Provide a starting point Java UI for client and server #502

Closed vzahradnik closed 2 days ago

vzahradnik commented 2 months ago

Is your feature request related to a problem? Please describe. The TcMenu example in this repository is unused and at this point outdated. Remove it from the repository.

davetcc commented 2 weeks ago

We should also refactor the way that TcMenu Designer handles embedded Java builds. My suggestion is to remove all the complexity as the Java version does not need a code generator, simply it needs a way to export the menu tree that would be immediately usable from the starting point application.

My suggestion is that we:

  1. Move the existing example to a new repository named tcmenu-java-examples along with all the Java API examples.
  2. Better document the java embedded example and make it a starting point rather than the present auto-generated mess.
  3. Remove the embedded Java code generator and instead provide a method of getting the MenuTree object directly from designer UI.
  4. Provide a "starting point" connectivity UI that can be used by others to build their own Java UI.
davetcc commented 1 week ago

The work is under way ready for 4.4, we must move it now because there are already critical issues with the dependencies on the embedded java example. The proposed new repo is called tcmenu-examples-starters and longer term will look somewhat like

java
   javaApiExamples
   javaApiWebsocketServer
   embedControlJavaFx
   embeddedJavaDeviceUI
dotnet
   dotNetConnectsToDevice
flutter
   embedcontrol
   dartapiexample
python
   ...
typescript
   ...