未验证 提交 16f6c81b 编写于 作者: O openharmony_ci 提交者: Gitee

!6339 【轻量级 PR】:【OpenHarmony开源贡献者计划2022】update...

!6339 【轻量级 PR】:【OpenHarmony开源贡献者计划2022】update zh-cn/application-dev/quick-start/package-structure.md. 修改json代码缩进
Merge pull request !6339 from 刘磊/N/A
...@@ -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.
先完成此消息的编辑!
想要评论请 注册