华为devEco软件开发的几个工程配置文件

工程配置文件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”
}
}

  • 22
    点赞
  • 20
    收藏
    觉得还不错? 一键收藏
  • 1
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值