目录

老卫搬砖034期HarmonyOS-3.1-Beta-1初体验,我在本地模拟器里面刷短视频

【老卫搬砖】034期:HarmonyOS 3.1 Beta 1初体验,我在本地模拟器里面刷短视频

今天啊打开这个DevEco Studio的话,已经提示有3.1Beta1版本的一个更新啊。然后看一下它的一些特性。本文也演示了如何在本地模拟器里面运行HarmonyOS版短视频。 https://i-blog.csdnimg.cn/blog_migrate/62771dc7bba8397eb77d3f65ab5f33b7.png

主要特性

新特性包括:

  • Added support for Windows 11 64-bit and macOS 13.x OSs, as well as the M1 chip for Mac.
  • Added support for redirection from JS/ArkTS to C/C++ code in the editor.
  • Added the device-cloud integrated development feature.
  • Added support for importing Sketch source files to generate low-code pages and for using custom components in low-code development.
  • Added the HarmonyOS 3.1 X86-based phone emulator.
  • Added the release-type application stack parsing feature.
  • Added support for C/C++ time travel debugging (also known as reverse debugging). 增强特性:
  • Enhanced the low-code development experience by adding six ArkTS components (select, refresh, toggle, textpicker, datepicker, and timepicker) .
  • Enhanced the ArkTS/TS editing experience by adding programming language specification check, code refactoring, and intelligent code completion.
  • Enhanced the C/C++ editing experience by adding function reconstruction/extraction and quick fix of unused function parameters.
  • Updated the SDK to API version 7 for lite wearable application development. HarmonyOS SDK 更新内容: Components to install:
  • EmulatorX86 3.1.0.100
  • Toolchains 3.2.2.2
  • Previewer 3.2.2.2
  • Toolchains 3.2.2.6
  • Previewer 3.2.2.6
  • ArkTS 3.2.2.6
  • JS 3.2.2.6 OpenHarmony SDK 更新内容:
  • API Version 9
  • ArkTS  3.2.10.6  44.36 MB
  • JS  3.2.10.6  13.92 MB
  • Previewer  3.2.10.6  146.41 MB
  • Toolchains  3.2.10.6  14.88 MB

本地模拟器

其实我比较关注的是本地模拟器。之前的本地模拟器只支持到API 6(HarmonyOS 2)。 https://i-blog.csdnimg.cn/blog_migrate/63d3bc7846d5eb9afc40c45d04c3459e.png 而本次更新是可以支持API 9的。 https://i-blog.csdnimg.cn/blog_migrate/1c1b88eef13b526f2261f8922024d13c.png 同时,新版的模拟器里面也支持更多的设置,比如:摄像头、CPU个数、内存等等。 https://i-blog.csdnimg.cn/blog_migrate/3f6f848199c3670c9984fd5f551c848e.png

本地模拟器运行应用

以下是一个本地模拟器运行“仿抖音”的短视频应用。 https://i-blog.csdnimg.cn/blog_migrate/40ca29a54679379fc9cd773e51a5bb1c.png 完整演示效果可以见B站视频:

源码

更多示例源码、HarmonyOS学习资料可见

  1. 《跟老卫学HarmonyOS开发》 开源免费教程,
  2. (清华大学出版社)
  3. (北京大学出版社)