Huawei at the HDC.Together 2021 keynote speech released the HarmonyOS 3.0.0 developer preview. The preview version includes IDE tools DevEco Studio 3.0 and DevEco Device Tool 3.0, the IDE tool can be upgraded to version 3.0 Beta 1.
New features of DevEco 3.0 Beta 1:
DevEco Studio 3.0 Beta 1:
HUAWEI DevEco Studio is a one-stop integrated development environment (IDE) for developing HarmonyOS applications and atomic services. It provides developers with functions such as project template creation, development, compilation, debugging, and release. The upgraded version is 3.0 Beta1.
The 2 upgrade methods are as follows:
- Open the installed historical version of DevEco Studio and select “Help> Check for Updates” to upgrade.
- Download directly from the HarmonyOS official website:
Let’s take a look at the key features of DevEco Studio 3.0 Beta1:
1. Support ArkUI 3.0 framework
ArkUI 3.0 is a set of declarative UI development framework for building HarmonyOS application interface. It helps developers improve the efficiency of HarmonyOS application interface development through a minimalist UI information description grammar, rich UI components and dynamic effects, and real-time interface preview capabilities.
DevEco Studio 3.0 Beta1 version supports UI development based on the ArkUI 3.0 framework, and provides the functions of “two-way speed preview” and “one-time development, multi-terminal deployment”.
(1) Support bidirectional speed preview
The components under the ArkUI 3.0 framework can be reused and combined, and the component state can also be synchronized through the data binding mechanism, so how to quickly verify the effect of the component?
This 3.0 Beta1 version provides a two-way preview function, two-way association code and built-in components of the preview interface, and linkage between the code editor, the UI interface and the component tree. For example, if a component is selected on the UI interface, the corresponding component in the component tree will be selected, and the corresponding code block in the editor will be highlighted. Similarly, when you click in the code or component tree, it will also be highlighted in the interface.
In addition, if the developer does not change the page structure and only modifies the code, the UI interface can be previewed in real time without saving. Similarly, if you modify the properties in the properties box, the corresponding properties in the code will also be modified synchronously. The code and interface can be modified in both directions, and developers can quickly adjust the interface style.
Developers only need to click the icon on the previewer interface to use the two-way preview function.
(2) Support one-time development and multi-terminal deployment
DevEco Studio 3.0 Beta1 is based on the UI adaptation capabilities of ArkUI 3.0, and provides developers with eTS language-based multi-device development project templates and card templates. When creating a project, you only need to check the required devices to achieve one-time development and adaptation. A variety of terminal equipment. At the same time, DevEco Studio also provides a multi-terminal preview function and a custom profile, allowing developers to easily see preview effects in multiple sizes, horizontal and vertical screens, bright and dark modes.
2. Low code development
The low-code development interface provided by DevEco Studio 3.0 has rich UI interface editing capabilities, which can quickly build layouts through drag-and-drop development, which effectively reduces the user’s time cost and improves the efficiency of the user’s UI interface construction.
In this version of 3.0 Beta1, the low-code development function has added support for tablet device development, atomic layout capabilities that can automatically adapt to different size interface design effects, and multi-device development switching functions, making development more efficient.
3. Scoring Tool evaluation tool
The Scoring Tool evaluation tool has been added to the 3.0 Beta1 version. Developers can connect to a local device or remote real machine through DevEco Studio, independently traverse the functions of HarmonyOS applications or atomic services, quickly perform self-tests, and view test results and scores. The currently supported test types include compatibility, performance, and design constraints. Before the integration test, you can use the Scoring Tool evaluation tool to quickly complete the above unit tests.
Specific usage method:
Developers can open the Scoring Tool evaluation tool by selecting “Tools> Scoring Tool” in DevEco Studio.
After the developer adds a local device or a remote real machine, click the Start button, and the Scoring Tool evaluation tool will independently traverse the HarmonyOS application or atomic service to quickly perform self-testing. After the test, the Scoring Tool evaluation tool will provide evaluation results, scoring and improvement suggestions.
List of new features of HUAWEI DevEco Studio 3.0 Beta1
1. New features:
- Added support for ArkUI 3.0 version of the Ark development framework and eTS (Extended TypeScript) extended syntax. eTS supports declarative UI grammar on the basis of TS, which is used to describe UI layout, style, event interaction and page logic.
- Added project templates that support eTS, including multiple project templates such as Empty Ability, About Ability, and Category Ability.
- Added support for compiling with the Ark Compiler. This feature is an experimental feature and you need to manually turn on the Ark Compiler switch. The current JS/eTS atomization service, HarmonyOS application, and JS card support the use of the Ark compiler for compilation.
- The new local evaluation tool Scoring Tool is used to test and evaluate the quality of HarmonyOS applications or atomic services. It is used by developers to self-test HarmonyOS applications or atomic services. It can quickly provide evaluation results and suggestions for improvement, helping developers quickly Improve product quality.
- When compiling and constructing the HAP package, a new support for compiling a single Module is added. For scenarios where only one of the Modules needs to be compiled in a multi-module project, the compilation and construction speed can be improved; at the same time, support for one-click reconstruction of the HAP package is added. Before compiling and building HAP, the Clean Project operation will be executed automatically.
2. Enhanced features:
The HarmonyOS SDK is upgraded to API 7 Beta version, the version number is 220.127.116.11, and the compiling and building plug-in is 18.104.22.168.
Remote simulator update:
- Phone, Tablet, TV, Wearable emulators support API 6 Release.
- Provides the simulator P40 Pro corresponding to the HarmonyOS 3.0.0 developer preview version (API7 Beta). Only this simulator can run HarmonyOS applications and atomic services compiled with the Ark compiler.
- The distributed simulator newly supports the “Phone+TV” networking scenario.
The low-code development function adds support for Tablet device development, atomic layout development, and multi-device development switching functions.
Java, xml, Json editors are enhanced, resource index errors support quick fixes, and support quick viewing of resource values.
The project view supports the Ohos view, the default view is the Project view, and the developer can switch it manually.
DevEco Device Tool 3.0 Beta1
DevEco Device Tool is a one-stop integrated development environment for smart device developers. It supports on-demand customization of HarmonyOS components, supports code editing, compilation, burning and debugging, performance monitoring and other functions, supports C/C++ language, and plug-ins Deployed in Visual Studio Code (VSCode for short), supports Windows10 64-bit or Ubuntu18 and above.
The upgradeable version this time is 3.0 Beta1, welcome to upgrade and experience!
The 2 upgrade methods are as follows:
Open the historical version of Device Tool that has been installed, and click the upgrade link in the prompt message.
Download directly from the HarmonyOS official website:
1. Remote development function
In the device development process, developers often need to switch back and forth between different software and platforms, such as reading and editing source code on Windows, and compiling on Linux, which is very tedious and time-consuming.
This time the 3.0 Beta1 version adds the remote development function. Developers only need to operate on Windows to complete the creation of projects, edit files, compile and burn, etc., to achieve an integrated development experience.
Specific usage method:
Developers install DevEco Device Tool in Windows and Linux through the installer, and install the Remote-SSH plug-in in VSCode of Windows.
Click Remote-Explorer of the Remote-SSH plug-in, enter the IP and account number of the remote Linux machine, and then enter the account password to successfully connect to the remote Linux machine.
Developers use the Device Tool tool on Windows to perform actions such as creating projects, editing files, compiling and burning.
2. Integrate Hongmeng Zhilian Service Package
In the previous HarmonyOS Connect chip module integrated development process, developers need to log in to the partner platform (https://devicepartner.huawei.com) to download the Hongmeng Zhilian service pack of the corresponding product, and put the SDK obtained after decompression in The exact location of the OpenHarmony source code project obtained from the open source community is cumbersome to operate.
The 3.0 Beta1 version integrates the Hongmeng Zhilian service package. Developers can directly log in to the enterprise-certified development account in the DevEco Device Tool, and then they can synchronously obtain the product information of the partner platform. DevEco Device Tool also supports the association of the product with the specified OpenHarmony source code project, and automatically downloads and decompresses the service package to the corresponding directory without repeatedly switching between different platforms, which greatly improves the development efficiency.
Specific usage method:
Click the user icon and enter the Huawei ID and password in the login interface after the jump. After logging in successfully, you can see all the products defined by the current account on the partner platform on the Products page.
Developers can search by name and status to find the corresponding product. Click the code icon in the upper right corner and select the project name to automatically download the corresponding Hongmeng Zhilian service pack to the corresponding project directory.
3. Integrated installation and navigation
The DevEco Device Tool environment preparation link relies on more software, and there are version requirements for different software, which increases the difficulty for developers to get started to a certain extent, causing some developers to be dismissed due to installation problems.
This time 3.0 Beta1 version adds integrated installation navigation function. The installer automatically detects dependent software and provides recommended software versions for missing software. The developer only checks according to the prompts, and the installer automatically downloads and installs the software to improve the user experience and convenience of the installation.
For example, Figure 7 shows that the installer detects that the HPM software is missing, and the developer can complete the automatic installation of HPM by checking it.
4. HDF driver development
This time 3.0 Beta1 version adds HDF driver development function, by calling OpenHarmony built-in scripts to quickly generate driver source code and configuration files that conform to the hardware driver framework, eliminating the cumbersome directory creation and configuration process, making it convenient for developers to manage driver modules and focus on driver modules Function realization.
Specific usage method:
Click “HDF”, select the project that needs to add a driver, and click “Driver Module ➕” to add a new driver. After the addition is successful, click on a different icon, and the developer can quickly open the corresponding source file or configuration file for modification. Of course, the developer can also delete the added driver configuration through Delete.
New features of HUAWEI DevEco DeviceTool
1. New features:
Remote development function: supports developers to control remote Linux servers on the Windows platform, and perform operations such as code acquisition, compilation, and burning.
Integrated Hongmeng Zhilian Service Package: List all the solution packages, quickly realize the construction from product to project, and automatically pull the integrated Hongmeng Zhilian service package, allowing developers to focus more on product development itself.
Integrated installation and navigation: one-stop product environment construction, automatic installation of required tools and dependencies, eliminating cumbersome steps to set up the environment.
The HDF driver development framework is optimized and launched, and the driver source code and configuration files that conform to the hardware driver framework are quickly generated, eliminating the cumbersome directory creation and configuration process, making it convenient for developers to manage driver modules and focus on the realization of driver module functions.
2. Enhanced features:
Device emulator: supports simulating Arm A7 or RISC-V chips to run OpenHarmony under the x86 platform, providing basic kernel, graphics, and network functions to facilitate functional verification by developers.
Visual debugging and tuning: support GDB and LLDB debuggers; provide debugging methods such as variable monitoring, memory address viewing, register viewing, and disassembly viewing; provide tuning and detection tools such as mirror analysis and stack estimation.
3. Issues fixed:
- Fix some Chinese display problems.
- Solve the problems of custom path installation and repeated installation failures.
- Solve the problem of function failure after uninstalling the old version.
- Solve the problem that the corresponding project is not removed when clicking remove on the Home and Projects interface.
- Optimize the system drive letter display when the project is imported.
- Solve the problem of compilation failure of Hi3516DV300 and Hi3518EV300 projects obtained by hpm.
- Solve the problem of Hi3518EV300 network port burning.
- Solve the problem that the Neptune W800 development board fails to burn in the Linux system.