继续浏览精彩内容
慕课网APP
程序员的梦工厂
打开
继续
感谢您的支持,我会继续努力的
赞赏金额会直接到老师账户
将二维码发送给自己后长按识别
微信支付
支付宝支付

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

2023-02-26 12:08:483274浏览

老卫

1实战 · 202手记 · 2推荐
TA的实战

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

http://img4.mukewang.com/63fadad80001206a04510260.jpg

主要特性

新特性包括:

  • 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)。

http://img2.mukewang.com/63fadad900012b7e07670308.jpg

而本次更新是可以支持API 9的。

http://img2.mukewang.com/63fadad90001d84606600359.jpg

同时,新版的模拟器里面也支持更多的设置,比如:摄像头、CPU个数、内存等等。

http://img2.mukewang.com/63fadad900011a2706270598.jpg

本地模拟器运行应用

以下是一个本地模拟器运行“仿抖音”的短视频应用。

http://img2.mukewang.com/63fadada0001e88606850516.jpg

完整演示效果可以见B站视频:https://www.bilibili.com/video/BV1ms4y1Z7jj/

源码

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

  1. 《跟老卫学HarmonyOS开发》 开源免费教程,https://github.com/waylau/harmonyos-tutorial

  2. 《鸿蒙HarmonyOS手机应用开发实战》(清华大学出版社)

  3. 《鸿蒙HarmonyOS应用开发从入门到精通战》(北京大学出版社)


打开App,阅读手记
0人推荐
发表评论
随时随地看视频慕课网APP