Location>code7788 >text

API13Bate version is here DevEco has been updated Check out the new features!

Popularity:372 ℃/2024-11-18 19:12:52

HarmonyOS 5.0.1 Beta3, is the first Beta release of HarmonyOS development kit based on API 13. This version of the OS capabilities mainly enhance the C API related capabilities, several features supplement the C API for developers to use.

Increased OS platform capabilities

First of all, the system capabilities have been increased, this time adding a lot of C interface capabilities, like we use more scenes are: Ability component in the meta-capability of the new C API, you can get from the ApplicationContext cache path, Area, and the ability to get the bundleName; ArkData component, the Preferences may be used in C API, but does not support the mixed use of C API and ArkTS API; AVSession media broadcast control module can be played, paused, stopped, fast-forwarded, fast-reversed, etc. in C; background tasks such as the short-time task is also added to the C interface; Image component supports reading data in ARGB format from PixelMap via C API. Image component supports reading data from PixelMap in ARGB format through C API. There are also many other modules to increase the ability of C. This update is considered a comprehensive enhancement of the ability of the C interface.

In addition to the enhancement of C capability, some other commonly used functions have also been enhanced. Like RichEditor supports configuring the reveal and concealment of scrollbars; Web component supports getting the resource response data and the readiness of response data, as well as getting the current scroll offset of the web page; background tasks add audio and video call long-time tasks; Map component supports setting the latitude and longitude range of the map and the distance between the 4 directions and the boundary; and in the default interface of the scanning interface, it supports the user to click to close the "Privacy Banner". When re-open the default interface of the application sweep will only show the security access tips, and disappear after 3s; New interface for adding new digital RMB is added.

There are 5 enhancements to PhotoViewPicker capabilities:

  • PickerOptions adds the option of whether or not to support sliding multi-selection and the option of setting the position of the checkbox on the big picture page.
  • Added API to send notification to picker for exiting big picture
  • Added API to set whether UI elements other than the large preview component of the large image page are visible or not
  • New API for defining UI elements other than the large image preview component of the large image page
  • Support for PhotoPicker component deletion notification and other related capabilities

Newly added NearLink Kit (StarFlash Service), StarFlash Service provides a low-power, high-rate, short-range communication service that supports connection and data interaction between StarFlash devices. The center device can discover peripheral devices through scanning and initiate connection. Peripheral devices can be found by the central device by sending broadcasts, and can transmit data accordingly after connecting with the central device.

DevEco Studio Feature Additions

hvigor adds getOverrides, setOverrides and setProperty capabilities. This will be very convenient for handling three-way dependencies in multiple environments. In the previous version, we have to differentiate between different environments to rely on different packages, we have to replace the dependency libraries under their own modules, which is not a good way to do unified processing, such as the static har module may be even more troublesome to deal with. Now with the getOverrides and setOverrides interfaces, we can unify in the project root directory directly determine the different environments to rely on, which is simply too convenient.

In the latest DevEco Studio, we can upload application packages directly within the IDE. In the DevEco Studio menu bar, click Build > Upload Product, and click Sign in to sign in to your Huawei developer account.
img1
After successful login, return to DevEco Studio to enter the package upload interface. Confirm the product information of the current project, select the type of package to be uploaded, and click OK to start uploading.

  • If the currently uploaded package is only for test distribution, please select Generate app package and upload it to AppGallery Connect for test
  • If the package needs to be officially released across the web,please selectGenerate app package and upload it to AppGallery Connect for test and publish

img2
After the upload is complete, the results of the cloud test appear, click Full results on App Gallary Connect to access AGC to view the package upload records and test results.

Launch Analytics supports manual cold start scenarios. Launch modes are categorized into automatic and manual launch, and the two different modes can be switched by clicking on the icons:

  • If you select Auto Start Mode, the selected application will be actively restarted when the user uses the Launch template and starts recording;
  • Manual start mode will only actively terminate the selected app when recording starts, and after waiting for the interface to show a pop-up window prompting to start the app, the developer needs to start the app manually.

New Features

  • DevEco Studio Supports Development of API 13 Projects
  • DevEco Profiler Frame templates add Lost Frames and Hitch Time lanes to identify and optimize stuttering and frame loss
  • hvigor-config.json5 in the properties under the new field, used to specify the ArkTS compilation process whether to generate js intermediate products, do not generate js intermediate products can reduce the compilation process of the peak memory, speed up the compilation speed.
  • Added support for HWASan detection
  • Application and Service Checkup adds a new rule for fast performance testing: avoiding time-consuming serialization deserialization
  • ohpm adds support for resolve_conflict_strict mode dependency conflict handling.

Enhanced Features

  • The Intent Framework adds support for multiple dropline types
  • DevEco Profiler Tool Recording Provides Visual Configuration
  • The hvigorw command line tool supports the --max-old-space-size parameter for setting the daemon memory size
  • AppAnalyzer inspection reports support the use of timestamp linkage with the Profiler tool. Clicking on the timestamp opens the Profiler and locates the point in time when the problem occurred.