老卫搬砖034期:HarmonyOS 3.1 Beta 1初体验,我在本地模拟器里面刷短视频
Posted _waylau
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了老卫搬砖034期:HarmonyOS 3.1 Beta 1初体验,我在本地模拟器里面刷短视频相关的知识,希望对你有一定的参考价值。
今天啊打开这个DevEco Studio的话,已经提示有3.1Beta1版本的一个更新啊。然后看一下它的一些特性。本文也演示了如何在本地模拟器里面运行HarmonyOS版短视频。
主要特性
新特性包括:
- 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)。
而本次更新是可以支持API 9的。
同时,新版的模拟器里面也支持更多的设置,比如:摄像头、CPU个数、内存等等。
本地模拟器运行应用
以下是一个本地模拟器运行“仿抖音”的短视频应用。
完整演示效果可以见B站视频:【老卫搬砖】034期:HarmonyOS 3.1 Beta 1初体验,我在本地模拟器里面刷短视频_哔哩哔哩_bilibili
源码
更多示例源码、HarmonyOS学习资料可见
- 《跟老卫学HarmonyOS开发》 开源免费教程,GitHub - waylau/harmonyos-tutorial: HarmonyOS Tutorial. 《跟老卫学HarmonyOS》
- 《鸿蒙HarmonyOS手机应用开发实战》(清华大学出版社)
- 《鸿蒙HarmonyOS应用开发从入门到精通战》(北京大学出版社)
以上是关于老卫搬砖034期:HarmonyOS 3.1 Beta 1初体验,我在本地模拟器里面刷短视频的主要内容,如果未能解决你的问题,请参考以下文章
老卫搞机138期:华为HarmonyOS Developer礼盒背包短袖咖啡杯
老卫搞机137期:华为HarmonyOS Developer礼盒三件套咖啡杯眼罩勋章
《跟老卫学 HarmonyOS 开发》:以父之名・码力全开!写段 HarmonyOS 祝父亲节
《跟老卫学 HarmonyOS 开发》:以父之名・码力全开!写段 HarmonyOS 祝父亲节