README_zh.md
1# Stage模型开发指导依赖
2
3### 介绍
4
5本示例是Stage模型开发指导的依赖Hap,用于展示Stage模型开发指导的隐式启动功能。
6
7本示例参考[应用模型](https://gitee.com/openharmony/docs/tree/master/zh-cn/application-dev/application-models)。
8
9### 效果预览
10
11|主页|
12|--------------------------------|
13||
14
15使用说明
16
17安装该工程编译的HAP包
18
19### 工程目录
20```
21entry/src/main/ets/
22├── entryability
23│ └── EntryAbility.ts // 主Ability
24└── pages
25 └── Index.ets // 应用主界面
26```
27### 具体实现
28
29* 本示例是Stage模型开发指导依赖的Hap包。
30
31* 需要在[module.json5配置文件](entry/src/main/module.json5)进行配置,具体配置如下:
32
33 ```
34 {
35 "module": {
36 ...
37 "abilities": [
38 {
39 ...
40 "skills": [
41 {
42 "entities": [
43 "entity.system.home",
44 "entity.system.browsable"
45 ...
46 ],
47 "actions": [
48 "action.system.home",
49 "ohos.want.action.viewData"
50 ...
51 ],
52 "uris": [
53 {
54 "scheme": "https",
55 "host": "www.test.com",
56 "port": "8080",
57 // prefix matching
58 "pathStartWith": "query"
59 },
60 {
61 "scheme": "http",
62 ...
63 }
64 ...
65 ]
66 }
67 ]
68 }
69 ]
70 }
71 }
72 ```
73
74
75### 相关权限
76
77无。
78
79### 依赖
80
81详见[Stage模型开发指导](https://gitee.com/openharmony/applications_app_samples/blob/master/code/DocsSample/ApplicationModels/StageModelAbilityDevelop/README_zh.md)。
82
83### 约束与限制
84
851.本示例仅支持标准系统上运行,支持设备:RK3568。
86
872.本示例为Stage模型,已适配API version 11版本SDK,版本号:4.1.3.1
88
893.本示例需要使用DevEco Studio 3.1.1 Release (Build Version: 3.1.0.501, built on June 20, 2023)及以上版本才可编译运行。
90
91### 下载
92
93如需单独下载本工程,执行如下命令:
94
95```
96git init
97git config core.sparsecheckout true
98echo code/BasicFeature/ApplicationModels/ImplicitStartRely/ > .git/info/sparse-checkout
99git remote add origin https://gitee.com/openharmony/applications_app_samples.git
100git pull origin master
101```
102