Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Huawei DevEco Studio 3.1 Canary release, complete with Hongmeng ArkTS declarative development comprehensive upgrade

2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > IT Information >

Share

Shulou(Shulou.com)11/24 Report--

Thanks to CTOnews.com netizens Xing Han roaming clues delivery! CTOnews.com, November 16, this year's developer conference released the HarmonyOS application development kit DevEco Studio 3.1, which showcases the key features of DevEco Studio 3.1.

HUAWEI DevEco Studio (click here to download) is an one-stop integrated development environment (IDE) for developing HarmonyOS applications and services. DevEco Studio 3.1 will be fully upgraded with ArkTS declarative development, efficient development and rapid debugging.

DevEco Studio 3.1 Program milestone Show

Huawei HarmonyOS developers have now brought new feature parsing for DevEco Studio 3.1 Canary version.

Rapid diagnosis of development environment development environment depends on network, nodejs,npm,SDK and other configurations, when there are configuration problems, application development may not be possible. In order to help developers diagnose environment problems quickly and improve the efficiency of environment configuration, DevEco Studio 3.1 adds environment diagnosis features, which can identify whether configuration items meet development requirements, and provide solutions and suggestions for configuration items that do not meet.

For the first time, DevEco Studio 3.1 will automatically check the environment configuration items, and if there is any problem, a message will pop up to remind you. Developers can click the link to enter the diagnosis interface, view the diagnosis details and deal with them according to the recommendations.

Developers can also enter the environmental diagnosis interface through the Help menu to diagnose environmental problems themselves.

Rapid diagnosis of development environment differentiation packaging many applications need to customize the corresponding scenario projects according to specific business requirements, there may be only a small number of code differences between these projects, developers need to create multiple projects to adapt to different scenarios.

To solve this problem, DevEco Studio 3.1 supports an application to build different target product versions through a small amount of differentiated configuration, so as to achieve efficient reuse of source code, resource files, etc.

Usually a project consists of multiple modules, the construction product of the project is App, and the construction product of the module is HAP. Due to the different requirements of business scenarios, when developing an application, different App packages will be customized in the project, and different HAP packages will be customized according to functions, resources and configurations under the module, in which the customized App package is product and the customized HAP package is target. A project can customize multiple product and a module can customize multiple target.

The new project will have a default product named default, and the new module will have a default target named default. By customizing the configuration of product and target in the build-profile.json5 file at the project level / module level, you can build multiple different App packages for one project or different HAP packages for one module.

At the same time, DevEco Studio 3.1 provides an interface for managing product / target to switch the context of the product target model.

When building differentiated cross-language mixed debugging and developing HarmonyOS applications, C / C++ language may also be used for some high-performance scenarios in addition to ArkTS. Because only one language can be debugged at a time, debugging sessions are frequently switched, applications are restarted, and debugging efficiency is low.

CTOnews.com learned that DevEco Studio 3.1 provides cross-language debugging function, supports debugging both languages at the same time, only needs to manage a debugging session, supports Step Into to jump to C / C++ code in ArkTS code, stitches up the debug stack of different languages, and presents a complete call chain, which makes the debugging process more convenient and efficient, and the overall operation experience is the same as that of single-language debugging.

Quick access to debug breakpoints between the two languages quickly aggregates a wealth of development resources, such as Quick start, sample tutorials, development guides, API references, What's New, question help, and so on.

This upgrade optimizes the interface experience and adds quick access to reference documents. Developers select the corresponding ArkTS API interface / ArkTS component / JS component in the IDE editor, and right-click "Show in API Reference" to view the API interface / component reference documentation. At the same time, FAQ supports the linkage with the IDE error log, and when the developer encounters a problem, you can quickly view the solution of the problem through the link in the error log.

At the same time, some key features to be released in subsequent versions of DevEco Studio 3.1, such as intelligent aided programming, hot overload Hot Reload, multi-engineering development mode, end-cloud integrated development, performance ArkTS engine-AOT compilation, deep tuning and other features will be demonstrated at the developer conference.

Overview of HUAWEI DevEco Studio 3.1 Canary new features 1. New features:

1) add diagnostic features to support the application / service development environment, which can check whether the development environment is complete, and ensure that developers have a good development experience. If there are unsatisfactory check items in the inspection results, it is recommended that you adjust them according to the repair recommendations. Please refer to DevEco Studio development environment diagnostics for details.

2) added support for customized multi-objective construction products based on Hvigor engineering. Application vendors will customize the same application to different versions according to different deployment environments, different target groups, different running environments, such as ordinary version, VIP version, free version, paid version, etc. Through a small amount of differential processing in DevEco Studio 3.1, an application can be built into different target product versions in the process of compilation and construction, and the source code and resource files can be reused efficiently. For more information, please refer to the customized multi-objective build products.

3) added support for cross-language debugging of ArkTS / JS and C / C++. In C / C++ project, ArkTS / JS and C / C++ are used for mixed development. Where ArkTS or JS calls C / C++ method, it can be directly entered into C / C++ code for debugging, making it easy for developers to quickly find and solve the problem of calling related codes across languages. For details, please refer to ArkTS / JS and C / C++ project cross-language debugging.

4) added support for quick query of API reference documents. When you call the ArkTS API API or ArkTS / JS component in the editor, you can query the corresponding reference class documents quickly and accurately through the editor (DevEco Studio integrates offline API reference class documentation. For the latest version, please refer to the official website HarmonyOS API reference and OpenHarmony API reference), so that developers can quickly consult the relevant content.

2. Enhanced features:

1) support HarmonyOS application / service 3.1.0 (API 9) application / service development, including engineering template, HarmonyOS SDK, etc.

2) About Ability, Business Card Ability, Category Ability and other application / service development templates have been added to the project wizard. Developers can quickly create application / service projects by selecting corresponding templates according to application scenarios.

3) the compilation and build performance of API Version 84th 9 project is optimized, which supports task-level parallel and incremental construction, which improves the construction speed.

4) the remote simulator supports the remote device P50 of HarmonyOS 3.1.0 (API 9) image, which makes it convenient for developers to debug 3.1.0 (API 9) applications / services.

5) the OpenHarmony log function supports printing FaultLog, which makes it easy for application developers to query, locate and export application fault information quickly.

3. Problems solved:

1) solved the problem that the installation path of OpenHarmony SDK does not support spaces.

2) solved the problem that the properties of some components are not displayed in the Attributes attribute list when using the Inspector bidirectional preview function in the ArkTS project.

3) it solves the problem that the continuous modification of the values attribute value of DataPanel components may lead to the crash of the previewer in the ArkTS project of OpenHarmony.

4) solve the problem of excessive memory usage in the compilation process, which leads to compilation failure.

5) it solves the problem that there is an error in running the local simulator when there is a double graphics card in the host computer.

6) solved the problem that the HiLog log could not be printed on the P50 remote simulator.

7) fixed the problem that PreviewLog could not print Console log and HiLog log when previewing OpenHarmony API 9 project.

8) fixed the problem that when the macOS system was upgraded to version 12.3 or above, the system did not carry Python version 2.7 by default, which led to the failure of starting C++ debugging.

"Huawei Hongmeng HarmonyOS 3.1 has been released, fully entering declarative development"

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

IT Information

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report