Skip to content

Commit f6dbbe8

Browse files
author
MicroEJ GitHub Delivery
committed
Version 8.0.0
1 parent b35e37b commit f6dbbe8

File tree

265 files changed

+3974
-1211
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

265 files changed

+3974
-1211
lines changed

.gitignore

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
.gradle
2+
.idea
3+
.vscode
4+
.DS_Store
5+
.settings
6+
.project
7+
.classpath
8+
.sonar/
9+
bin/
10+
build/
Lines changed: 20 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,23 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8+
## [8.0.0] - 2024-03-05
9+
10+
### Added
11+
12+
- Add ScrollAlphabet widget and page.
13+
- Add Flex container page.
14+
15+
### Changed
16+
17+
- Migrate to gradle.
18+
19+
### Fixed
20+
21+
- Snap scroll (on top or bottom) value when leaving page.
22+
- Restore right image in Image Widget page.
23+
- Fix the rounded borders of the double temperature slider following the fixes in UI Pack 13.7.
24+
825
## [7.6.0] - 2023-10-09
926

1027
### Added
@@ -218,6 +235,6 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
218235
- Initial revision.
219236

220237
---
221-
_Markdown_
222-
_Copyright 2016-2023 MicroEJ Corp. All rights reserved._
223-
_Use of this source code is governed by a BSD-style license that can be found with this software._
238+
_Markdown_
239+
_Copyright 2016-2024 MicroEJ Corp. All rights reserved._
240+
_Use of this source code is governed by a BSD-style license that can be found with this software._

CHANGELOG.rst

Lines changed: 0 additions & 9 deletions
This file was deleted.

LICENSE.txt

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,14 @@
1-
Copyright (c) 2016, IS2T S.A.
1+
MicroEJ Corp. does not claim any right in the Specification of this file. For the purpose
2+
of this paragraph, Specification means the methods' names and the structure, sequence and
3+
organization of the API.
4+
You are free to use this Specification to make any clean room implementations or
5+
derivative work as long as you don't claim that Your work is compliant with this Specification.
6+
Compliance tests may be available from MicroEJ Corp.
7+
If the data contained in the file is only composed of a Specification, then the following
8+
license doesn't apply.
9+
10+
-----------------------------------------------------------------------------
11+
212
All rights reserved.
313
Redistribution and use in source and binary forms, with or without
414
modification, are permitted provided that the following conditions are met:
@@ -8,11 +18,11 @@ modification, are permitted provided that the following conditions are met:
818
* Redistributions in binary form must reproduce the above copyright
919
notice, this list of conditions and the following disclaimer in the
1020
documentation and/or other materials provided with the distribution.
11-
* Neither the name of IS2T S.A. nor the names of its contributors may be
21+
* Neither the name of MicroEJ Corp. nor the names of its contributors may be
1222
used to endorse or promote products derived from this software without
1323
specific prior written permission.
1424

15-
THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND ANY
25+
THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ''AS IS'' AND ANY
1626
EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
1727
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
1828
DISCLAIMED. IN NO EVENT SHALL THE REGENTS AND CONTRIBUTORS BE LIABLE FOR ANY
@@ -21,4 +31,4 @@ DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
2131
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
2232
ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
2333
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
24-
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
34+
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
Lines changed: 54 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
1+
![SDK 6 Badge](https://shields.microej.com/endpoint?url=https://repository.microej.com/packages/badges/sdk_6.0.json)
2+
![GUI 3 Badge](https://shields.microej.com/endpoint?url=https://repository.microej.com/packages/badges/gui_3.json)
3+
14
# Overview
25

3-
This demo illustrates the widgets and containers available in the widget library: [ej.library.ui#widget-4.2.0](https://repository.microej.com/modules/ej/library/ui/widget/4.2.0/).
6+
This repository contains a demo illustrating the widgets and containers available in the widget library.
7+
8+
![Demo overview](demo.gif)
49

510
At startup, it shows a list of items.
611
Clicking on an item opens a new page showing a widget or a set of widgets.
@@ -43,36 +48,74 @@ Here are the pages:
4348
- `List`: demonstrates the `List` container from the widget library.
4449
- `Grid`: demonstrates the `Grid` container from the widget library.
4550
- `Fixed Grid`: demonstrates the `FixedGrid` container from the widget library.
51+
- `Flex`: demonstrates the `Flex` container from the widget library.
4652
- `Dock`: demonstrates the `Dock` container from the widget library.
4753
- `Split`: demonstrates a `Split` container.
4854
- `Scrollable List`: demonstrates a `ScrollableList` container.
4955
- `Scrollable Text`: demonstrates displaying a long, scrollable text.
5056
- `Snap Scroll`: demonstrates a scroll that snaps on its children.
5157
- `Secret Scroll`: demonstrates a container with an hidden child that can be shown by scrolling.
5258
- `Buffered Scroll`: demonstrates a scroll that uses the display buffer to scroll faster.
59+
- `Alphabet Scroll`: demonstrates a scroll that can be navigated using an index.
5360
- `Selectable List`: demonstrates a list of items that are selectable with an animation.
5461
- `Line Chart`: demonstrates a `LineChart` widget.
5562
- `Bar Chart`: demonstrates a `BarChart` widget.
5663

64+
# Requirements
65+
66+
- MICROEJ SDK 6.
67+
- A VEE Port that contains:
68+
69+
- EDC-1.3 or higher.
70+
- BON-1.4 or higher.
71+
- MICROUI-3.4 or higher.
72+
- DRAWING-1.0 or higher.
73+
74+
This example has been tested on:
75+
76+
- IntelliJ IDEA 2023.3.3.
77+
- STM32F7508-DK VEE Port 2.2.0.
78+
5779
# Usage
5880

59-
The main class is [Navigation.java](src/main/java/com/microej/demo/widget/common/Navigation.java).
81+
By default, the sample will use the STM32F7508-DK VEE Port.
6082

61-
Two launchers are available:
83+
Refer to the [Select a VEE Port](https://docs.microej.com/en/latest/SDK6UserGuide/selectVeePort.html) documentation for more information.
6284

63-
- `DemoWidget (SIM)`: launches the demo on the simulator of the STM32F7508 board,
64-
- `DemoWidget (EMB)`: builds a binary of the demo for the STM32F7508 board.
85+
## Configuration
6586

66-
# Requirements
87+
Configuration options can be found in: `configuration/common.properties`.
6788

68-
This library requires the following Foundation Libraries:
89+
- Make sure the configuration option `ej.microui.memory.imagesheap.size` is set to `24000` and `ej.microui.memory.imagesheap.size` is set to `42000`.
6990

70-
EDC-1.3, BON-1.4, MICROUI-3.0, DRAWING-1.0
91+
## Run on simulator
7192

72-
# Dependencies
93+
In IntelliJ IDEA or Android Studio:
94+
- Open the Gradle tool window by clicking on the elephant icon on the right side,
95+
- Expand the `Tasks` list,
96+
- From the `Tasks` list, expand the `microej` list,
97+
- Double-click on `runOnSimulator`,
98+
- The application starts, the traces are visible in the Run view.
99+
100+
Alternative ways to run in simulation are described in the [Run on Simulator](https://docs.microej.com/en/latest/SDK6UserGuide/runOnSimulator.html) documentation.
101+
102+
## Run on device
73103

74-
_All dependencies are retrieved transitively by MicroEJ Module Manager_.
104+
Make sure to properly setup the VEE Port environment before going further.
105+
Refer to the VEE Port README for more information.
106+
107+
In IntelliJ IDEA or Android Studio:
108+
- Open the Gradle tool window by clicking on the elephant on the right side,
109+
- Expand the `Tasks` list,
110+
- From the `Tasks` list, expand the `microej` list,
111+
- Double-Click on `runOnDevice`.
112+
- The device is flashed. Use the appropriate tool to retrieve the execution traces.
113+
114+
Alternative ways to run on device are described in the [Run on Device](https://docs.microej.com/en/latest/SDK6UserGuide/runOnDevice.html) documentation.
115+
116+
# Dependencies
75117

118+
_All dependencies are retrieved transitively by gradle_.
76119

77120
# Source
78121

@@ -83,5 +126,5 @@ N/A
83126
None.
84127

85128
---
86-
_Copyright 2020-2023 MicroEJ Corp. All rights reserved._
129+
_Copyright 2020-2024 MicroEJ Corp. All rights reserved._
87130
_Use of this source code is governed by a BSD-style license that can be found with this software._

README.rst

Lines changed: 0 additions & 13 deletions
This file was deleted.

build.gradle.kts

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
/*
2+
* Kotlin
3+
*
4+
* Copyright 2024 MicroEJ Corp. All rights reserved.
5+
* Use of this source code is governed by a BSD-style license that can be found with this software.
6+
*/
7+
8+
plugins {
9+
id("com.microej.gradle.application") version "0.15.0"
10+
}
11+
12+
group = "com.microej.example.ui"
13+
version = "8.0.0"
14+
15+
microej {
16+
applicationMainClass = "com.microej.demo.widget.common.Navigation"
17+
}
18+
19+
dependencies {
20+
implementation("ej.api:edc:1.3.5")
21+
implementation("ej.api:microui:3.1.0")
22+
implementation("ej.api:drawing:1.0.2")
23+
implementation("ej.library.ui:widget:5.1.0")
24+
implementation("ej.library.runtime:basictool:1.5.0")
25+
implementation("ej.library.runtime:service:1.1.1")
26+
implementation("ej.library.eclasspath:collections:1.4.0")
27+
implementation("ej.library.eclasspath:stringtokenizer:1.2.0")
28+
29+
microejVee("com.microej.veeport.st.stm32f7508-dk:M5QNX_eval:2.2.0")
30+
}
31+
32+
tasks.withType<Javadoc> {
33+
options.encoding = "UTF-8"
34+
}
35+
36+
testing {
37+
suites {
38+
val test by getting(JvmTestSuite::class) {
39+
microej.useMicroejTestEngine(this)
40+
41+
dependencies {
42+
implementation(project())
43+
implementation("ej.api:edc:1.3.5")
44+
implementation("ej.api:microui:3.1.0")
45+
implementation("ej.api:drawing:1.0.2")
46+
implementation("ej.library.test:junit:1.7.1")
47+
implementation("ej.library.runtime:basictool:1.5.0")
48+
implementation("org.junit.platform:junit-platform-launcher:1.8.2")
49+
}
50+
}
51+
}
52+
}

com.microej.demo.widget/.classpath

Lines changed: 0 additions & 14 deletions
This file was deleted.

com.microej.demo.widget/.gitignore

Lines changed: 0 additions & 14 deletions
This file was deleted.

com.microej.demo.widget/.project

Lines changed: 0 additions & 23 deletions
This file was deleted.

0 commit comments

Comments
 (0)