工程配置文件entry的各级子目录中查找
oh-package.json5//包版本描述
{
“name”: “entry”,
“version”: “1.0.0”,
“description”: “Please describe the basic information.”,
“main”: “”,
“author”: “”,
“license”: “”,
“dependencies”: {}
}
build-profile.json5//编译系统配置
{
“apiType”: ‘stageMode’,
“buildOption”: {
},
“targets”: [
{
“name”: “default”,
“runtimeOS”: “HarmonyOS”
},
{
“name”: “ohosTest”,
}
]
}
module.json5//模块功能配置
{
“module”: {
“name”: “entry”,
“type”: “entry”,
“description”: “
s
t
r
i
n
g
:
m
o
d
u
l
e
d
e
s
c
"
,
"
m
a
i
n
E
l
e
m
e
n
t
"
:
"
E
n
t
r
y
A
b
i
l
i
t
y
"
,
"
d
e
v
i
c
e
T
y
p
e
s
"
:
[
"
p
h
o
n
e
"
,
"
t
a
b
l
e
t
"
]
,
"
d
e
l
i
v
e
r
y
W
i
t
h
I
n
s
t
a
l
l
"
:
t
r
u
e
,
"
i
n
s
t
a
l
l
a
t
i
o
n
F
r
e
e
"
:
f
a
l
s
e
,
"
p
a
g
e
s
"
:
"
string:module_desc", "mainElement": "EntryAbility", "deviceTypes": [ "phone", "tablet" ], "deliveryWithInstall": true, "installationFree": false, "pages": "
string:moduledesc","mainElement":"EntryAbility","deviceTypes":["phone","tablet"],"deliveryWithInstall":true,"installationFree":false,"pages":"profile:main_pages”,
“abilities”: [
{
“name”: “EntryAbility”,
“srcEntry”: “./ets/entryability/EntryAbility.ts”,
“description”: “
s
t
r
i
n
g
:
a
b
i
l
i
t
y
d
e
s
c
"
,
"
i
c
o
n
"
:
"
string:ability_desc", "icon": "
string:abilitydesc","icon":"media:icon”,
“label”: “
s
t
r
i
n
g
:
a
b
i
l
i
t
y
l
a
b
e
l
"
,
"
s
t
a
r
t
W
i
n
d
o
w
I
c
o
n
"
:
"
string:ability_label", "startWindowIcon": "
string:abilitylabel","startWindowIcon":"media:icon”,
“startWindowBackground”: “$color:start_window_background”,
“exported”: true,
“skills”: [
{
“entities”: [
“entity.system.home”
],
“actions”: [
“action.system.home”
]
}
]
}
],
“requestPermissions”: [
{
“name”: “ohos.permission.READ_MEDIA”
}
]
}
}
main_pages.json //主页配置
{
“src”: [
“pages/Index”
]
}
AppScope目录下的app.json5
{
“app”: {
“bundleName”: “com.example.myapplication”,
“vendor”: “example”,
“versionCode”: 1000000,
“versionName”: “1.0.0”,
“icon”: “
m
e
d
i
a
:
a
p
p
i
c
o
n
"
,
"
l
a
b
e
l
"
:
"
media:app_icon", "label": "
media:appicon","label":"string:app_name”
}
}