为了账号安全,请及时绑定邮箱和手机立即绑定

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

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

https://img1.sycdn.imooc.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)。

https://img1.sycdn.imooc.com//63fadad900012b7e07670308.jpg

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

https://img1.sycdn.imooc.com//63fadad90001d84606600359.jpg

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

https://img1.sycdn.imooc.com//63fadad900011a2706270598.jpg

本地模拟器运行应用

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

https://img1.sycdn.imooc.com//63fadada0001e88606850516.jpg

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

源码

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

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

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

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


点击查看更多内容
TA 点赞

若觉得本文不错,就分享一下吧!

评论

作者其他优质文章

正在加载中
全栈工程师
手记
粉丝
1.7万
获赞与收藏
2168

关注作者,订阅最新文章

阅读免费教程

  • 推荐
  • 评论
  • 收藏
  • 共同学习,写下你的评论
感谢您的支持,我会继续努力的~
扫码打赏,你说多少就多少
赞赏金额会直接到老师账户
支付方式
打开微信扫一扫,即可进行扫码打赏哦
今天注册有机会得

100积分直接送

付费专栏免费学

大额优惠券免费领

立即参与 放弃机会
意见反馈 帮助中心 APP下载
官方微信

举报

0/150
提交
取消