Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Docs
提交
012f8fc3
D
Docs
项目概览
OpenHarmony
/
Docs
大约 2 年 前同步成功
通知
161
Star
293
Fork
28
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
D
Docs
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
未验证
提交
012f8fc3
编写于
7月 05, 2022
作者:
刘
刘磊
提交者:
Gitee
7月 05, 2022
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
【OpenHarmony开源贡献者计划2022】update zh-cn/application-dev/quick-start/package-structure.md. 修改json代码缩进
Signed-off-by:
N
leiliufc
<
leiliufc@isoftstone.com
>
上级
9e1770dd
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
76 addition
and
77 deletion
+76
-77
zh-cn/application-dev/quick-start/package-structure.md
zh-cn/application-dev/quick-start/package-structure.md
+76
-77
未找到文件。
zh-cn/application-dev/quick-start/package-structure.md
浏览文件 @
012f8fc3
...
@@ -116,15 +116,15 @@ app实例:
...
@@ -116,15 +116,15 @@ app实例:
"bundleName"
:
"com.example.myapplication"
,
"bundleName"
:
"com.example.myapplication"
,
"vendor"
:
"example"
,
"vendor"
:
"example"
,
"version"
:
{
"version"
:
{
"code"
:
1
,
"code"
:
1
,
"name"
:
"1.0"
"name"
:
"1.0"
},
},
"apiVersion"
:
{
"apiVersion"
:
{
"compatible"
:
4
,
"compatible"
:
4
,
"target"
:
5
,
"target"
:
5
,
"releaseType"
:
"Beta1"
"releaseType"
:
"Beta1"
}
}
}
}
```
```
### deviceConfig对象的内部结构
### deviceConfig对象的内部结构
...
@@ -187,24 +187,24 @@ deviceConfig示例:
...
@@ -187,24 +187,24 @@ deviceConfig示例:
```
json
```
json
"deviceConfig"
:
{
"deviceConfig"
:
{
"default"
:
{
"default"
:
{
"process"
:
"com.example.test.example"
,
"process"
:
"com.example.test.example"
,
"supportBackup"
:
false
,
"supportBackup"
:
false
,
"network"
:
{
"network"
:
{
"cleartextTraffic"
:
true
,
"cleartextTraffic"
:
true
,
"securityConfig"
:
{
"securityConfig"
:
{
"domainSettings"
:
{
"domainSettings"
:
{
"cleartextPermitted"
:
true
,
"cleartextPermitted"
:
true
,
"domains"
:
[
"domains"
:
[
{
{
"subdomains"
:
true
,
"subdomains"
:
true
,
"name"
:
"example.ohos.com"
"name"
:
"example.ohos.com"
}
}
]
]
}
}
}
}
}
}
}
}
}
}
```
```
...
@@ -240,33 +240,33 @@ module示例:
...
@@ -240,33 +240,33 @@ module示例:
```
json
```
json
"module"
:
{
"module"
:
{
"mainAbility"
:
"MainAbility"
,
"mainAbility"
:
"MainAbility"
,
"package"
:
"com.example.myapplication.entry"
,
"package"
:
"com.example.myapplication.entry"
,
"name"
:
".MyOHOSAbilityPackage"
,
"name"
:
".MyOHOSAbilityPackage"
,
"description"
:
"$string:description_application"
,
"description"
:
"$string:description_application"
,
"supportModes"
:
[
"supportModes"
:
[
"drive"
"drive"
],
],
"deviceType"
:
[
"deviceType"
:
[
"car"
"car"
],
],
"distro"
:
{
"distro"
:
{
"moduleName"
:
"ohos_entry"
,
"moduleName"
:
"ohos_entry"
,
"moduleType"
:
"entry"
"moduleType"
:
"entry"
},
},
"abilities"
:
[
"abilities"
:
[
...
...
],
],
"shortcuts"
:
[
"shortcuts"
:
[
...
...
],
],
"js"
:
[
"js"
:
[
...
...
],
],
"reqPermissions"
:
[
"reqPermissions"
:
[
...
...
],
],
"colorMode"
:
"light"
"colorMode"
:
"light"
}
}
```
```
...
@@ -283,9 +283,9 @@ distro示例:
...
@@ -283,9 +283,9 @@ distro示例:
```
json
```
json
"distro"
:
{
"distro"
:
{
"moduleName"
:
"ohos_entry"
,
"moduleName"
:
"ohos_entry"
,
"moduleType"
:
"entry"
,
"moduleType"
:
"entry"
,
"installationFree"
:
true
,
"installationFree"
:
true
,
"deliveryWithInstall"
:
true
"deliveryWithInstall"
:
true
}
}
```
```
...
@@ -398,8 +398,7 @@ abilities示例:
...
@@ -398,8 +398,7 @@ abilities示例:
"label"
:
"$media:example"
,
"label"
:
"$media:example"
,
"launchType"
:
"standard"
,
"launchType"
:
"standard"
,
"orientation"
:
"unspecified"
,
"orientation"
:
"unspecified"
,
"permissions"
:
[
"permissions"
:
[],
],
"visible"
:
true
,
"visible"
:
true
,
"skills"
:
[
"skills"
:
[
{
{
...
@@ -488,13 +487,13 @@ skills示例:
...
@@ -488,13 +487,13 @@ skills示例:
],
],
"uris"
:
[
"uris"
:
[
{
{
"scheme"
:
"http"
,
"scheme"
:
"http"
,
"host"
:
"www.example.com"
,
"host"
:
"www.example.com"
,
"port"
:
"8080"
,
"port"
:
"8080"
,
"path"
:
"query/student/name"
,
"path"
:
"query/student/name"
,
"type"
:
"text/*"
"type"
:
"text/*"
}
}
]
]
}
}
]
]
```
```
...
@@ -750,18 +749,18 @@ commonEvents示例:
...
@@ -750,18 +749,18 @@ commonEvents示例:
```
json
```
json
"commonEvents"
:
[
"commonEvents"
:
[
{
{
"name"
:
"MainAbility"
,
"name"
:
"MainAbility"
,
"permission"
:
"string"
,
"permission"
:
"string"
,
"data"
:[
"data"
:[
"string"
,
"string"
,
"string"
"string"
],
],
"events"
:
[
"events"
:
[
"string"
,
"string"
,
"string"
"string"
]
]
}
}
]
]
```
```
...
@@ -774,8 +773,8 @@ commonEvents示例:
...
@@ -774,8 +773,8 @@ commonEvents示例:
```
json
```
json
"testRunner"
:
{
"testRunner"
:
{
"name"
:
"myTestRUnnerName"
,
"name"
:
"myTestRUnnerName"
,
"srcPath"
:
"etc/test/TestRunner.ts"
"srcPath"
:
"etc/test/TestRunner.ts"
}
}
```
```
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录