73 Star 611 Fork 376

HarmonyOS / Samples

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
README.md 14.24 KB
一键复制 编辑 原始数据 按行查看 历史

App Samples

Introduction

We provide a series of app samples to help you quickly get familiar with the APIs and development process of the HarmonyOS SDKs. Each app sample is an independent project in DevEco Studio. You can import an app sample into DevEco Studio and learn how to use APIs in the sample by browsing code, building the project, and installing and running the app.

Directory Structure

Usage

  1. Import an app sample project into DevEco Studio for compilation, building, running, and debugging.
  2. Some app samples contain multiple modules. You can compile and build a single module to generate a HAP file or compile and build the entire project to generate multiple HAP files.
  3. After HAP installation and execution, you can view the execution effect of the app sample on the device and then conduct debugging.

Constraints

  1. Before installing and running an app sample, check the deviceType field in the config.json file to obtain the device types supported by the sample. You can modify this field to enable the sample to run on your target device. (The config.json file is generally stored in the entry/src/main directory, which may be different depending on the samples.)
  2. If you want to run a sample on HarmonyOS, configure the development environment by referring to HUAWEI DevEco Studio User Guide.
  3. App samples that can run on standard-system or small-system devices (as stipulated in Readme) must run on OpenHarmony, whereas those that can run on large-system devices must run on HarmonyOS.
  4. For details about all app samples running on OpenHarmony, see the app_samples repository in the OpenHarmony community.

Repositories Involved

  1. HarmonyOS scenario-specific app samples: HarmonyOS codelabs
  2. OpenHarmony basic app samples: OpenHarmony app_samples
  3. OpenHarmony scenario-specific app samples: OpenHarmony codelabs
1
https://gitee.com/harmonyos/samples.git
git@gitee.com:harmonyos/samples.git
harmonyos
samples
Samples
master

搜索帮助