Skip to content

Commit

Permalink
#509 bump version, fix tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
davetcc committed Sep 8, 2024
1 parent 2681dab commit 46647ad
Show file tree
Hide file tree
Showing 10 changed files with 12 additions and 11 deletions.
2 changes: 1 addition & 1 deletion embedCONTROLCore/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<artifactId>embedCONTROLCore</artifactId>
<name>embedCONTROLCore</name>
<description>TcMenu embedCONTROL shared core</description>
<version>4.3.1-SNAPSHOT</version>
<version>4.3.1</version>
<url>https://tcmenu.github.io/documentation/arduino-libraries/tc-menu/</url>

<licenses>
Expand Down
2 changes: 1 addition & 1 deletion embeddedJavaExample/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<jdk.version>22</jdk.version>
<jfx.version>22.0.2</jfx.version>
<jserialcomm.version>2.11.0</jserialcomm.version>
<tcmenu.api.version>4.3.1-SNAPSHOT</tcmenu.api.version>
<tcmenu.api.version>4.3.1</tcmenu.api.version>
<timestamp>${maven.build.timestamp}</timestamp>
</properties>

Expand Down
2 changes: 1 addition & 1 deletion tcMenuGenerator/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<name>menuEditorUI</name>
<groupId>com.thecoderscorner.tcmenu</groupId>
<description>JavaFX based menu editor UI</description>
<version>4.3.1-SNAPSHOT</version>
<version>4.3.1</version>

<properties>
<timestamp>${maven.build.timestamp}</timestamp>
Expand Down
1 change: 1 addition & 0 deletions tcMenuGenerator/src/main/java/module-info.java
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
requires com.thecoderscorner.embedcontrol.core;

exports com.thecoderscorner.menu.editorui;
exports com.thecoderscorner.menu.editorui.cli;
exports com.thecoderscorner.menu.editorui.controller;
exports com.thecoderscorner.menu.editorui.storage;
exports com.thecoderscorner.menu.editorui.project;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -448,8 +448,8 @@ private List<String> generateListScrollCustom(MenuItem item, String cbName, Stri
List<String> codeLines = new ArrayList<>();
if(!(item instanceof RuntimeListMenuItem rli) || rli.getListCreationMode() == RuntimeListMenuItem.ListCreationMode.CUSTOM_RTCALL) {
codeLines.addAll(List.of("// This callback needs to be implemented by you, see the below docs:",
"// 1. List Docs - https://www.thecoderscorner.com/products/arduino-libraries/tc-menu/menu-item-types/list-menu-item/",
"// 2. ScrollChoice Docs - https://www.thecoderscorner.com/products/arduino-libraries/tc-menu/menu-item-types/scrollchoice-menu-item/",
"// 1. List Docs - https://tcmenu.github.io/documentation/arduino-libraries/tc-menu/menu-item-types/list-menu-item/",
"// 2. ScrollChoice Docs - https://tcmenu.github.io/documentation/arduino-libraries/tc-menu/menu-item-types/scrollchoice-menu-item/",
"int CALLBACK_FUNCTION " + cbName + "(RuntimeMenuItem* item, uint8_t row, RenderFnMode mode, char* buffer, int bufferSize) {",
" switch(mode) {",
" default:",
Expand Down Expand Up @@ -582,7 +582,7 @@ public void testGenerateLargeNumberWithRtCall() {

private Iterable<String> standardRuntimeCb(String name, String rtFn) {
return List.of("int CALLBACK_FUNCTION " + name + "(RuntimeMenuItem* item, uint8_t row, RenderFnMode mode, char* buffer, int bufferSize) {",
" // See https://www.thecoderscorner.com/products/arduino-libraries/tc-menu/menu-item-types/based-on-runtimemenuitem/",
" // See https://tcmenu.github.io/documentation/arduino-libraries/tc-menu/menu-item-types/based-on-runtimemenuitem/",
" switch(mode) {",
" case RENDERFN_NAME:",
" return false; // use default",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ void testLoadingASinglePlugin() throws IOException {
assertEquals("20409bb8-b8a1-4d1d-b632-2cf9b57353e3", item.getId());
assertEquals("Control menu with analog joystick", item.getDescription());
assertEquals("Use an analog joystick connected to one of the Arduino inbuilt analog pins along with a switch also connected to an Arduino pin.", item.getExtendedDescription());
assertEquals("https://www.thecoderscorner.com/products/arduino-libraries/tc-menu/tcmenu-plugins/encoder-switches-input-plugin/", item.getDocsLink());
assertEquals("https://tcmenu.github.io/documentation/arduino-libraries/tc-menu/tcmenu-plugins/encoder-switches-input-plugin/", item.getDocsLink());
assertEquals("joystick.jpg", item.getImageFileName());
assertEquals(SubSystem.INPUT, item.getSubsystem());
assertThat(item.getSupportedPlatforms()).containsExactlyInAnyOrder(ARDUINO_AVR, ARDUINO_AVR, ARDUINO32);
Expand Down
2 changes: 1 addition & 1 deletion tcMenuJavaApi/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<groupId>com.thecoderscorner.tcmenu</groupId>
<artifactId>tcMenuJavaAPI</artifactId>
<name>tcMenuJavaAPI</name>
<version>4.3.1-SNAPSHOT</version>
<version>4.3.1</version>
<description>A series of domain and serialisation components for the TcMenu library</description>
<url>https://tcmenu.github.io/documentation/arduino-libraries/tc-menu/</url>

Expand Down
2 changes: 1 addition & 1 deletion xmlPlugins/core-display/tcmenu-plugin.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
xsi:schemaLocation="https://www.thecoderscorner.com/libraries/tcmenuPlugin https://tcmenu.github.io/documentation/arduino-libraries/libraries/tcmenu-plugin.xsd">
<GeneralDetails>
<Author name="The Coders Corner" url="http://www.thecoderscorner.com/" />
<Version>4.3.1-SNAPSHOT</Version>
<Version>4.3.1</Version>
<Name>%plugin.name</Name>
<Description>This plugin provides support for most basic inputs and most textual and graphical displays.</Description>
<License name="Apache 2.0" url="http://www.apache.org/licenses/LICENSE-2.0"/>
Expand Down
2 changes: 1 addition & 1 deletion xmlPlugins/core-remote/tcmenu-plugin.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
xsi:schemaLocation="https://www.thecoderscorner.com/libraries/tcmenuPlugin https://tcmenu.github.io/documentation/arduino-libraries/libraries/tcmenu-plugin.xsd">
<GeneralDetails>
<Author name="The Coders Corner" url="http://www.thecoderscorner.com/" />
<Version>4.3.1-SNAPSHOT</Version>
<Version>4.3.1</Version>
<Name>Core remote control</Name>
<Description>This plugin contains remote control capabilites for Ethernet, WiFi, Bluetooth and Serial.</Description>
<License name="Apache 2.0" url="http://www.apache.org/licenses/LICENSE-2.0"/>
Expand Down
2 changes: 1 addition & 1 deletion xmlPlugins/core-themes/tcmenu-plugin.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
xsi:schemaLocation="https://www.thecoderscorner.com/libraries/tcmenuPlugin https://tcmenu.github.io/documentation/arduino-libraries/libraries/tcmenu-plugin.xsd">
<GeneralDetails>
<Author name="The Coders Corner" url="http://www.thecoderscorner.com/" />
<Version>4.3.1-SNAPSHOT</Version>
<Version>4.3.1</Version>
<Name>%plugin.name</Name>
<Description>This plugin provides themes that can be used with all graphical displays.</Description>
<License name="Apache 2.0" url="http://www.apache.org/licenses/LICENSE-2.0"/>
Expand Down

0 comments on commit 46647ad

Please sign in to comment.