代码拉取完成,页面将自动刷新
{
"app": {
"signingConfigs": [],
// 配置 products
// 一个 app 可以定制出多个 product,每个 product 都是一个定制的 app
// 注:必须要存在名为 default 的 product
"products": [
{
"name": "default", // 此 product 的名称
"signingConfig": "default",
"compatibleSdkVersion": "5.0.1(13)",
"runtimeOS": "HarmonyOS",
"buildOption": {
"strictMode": {
"caseSensitiveCheck": true,
"useNormalizedOHMUrl": true
}
},
"bundleName": "com.webabcd.harmonydemo", // 此定制 app 的 bundleName(会覆盖 AppScope/app.json5 中的相关配置)
"icon": "$media:app_icon", // 此定制 app 的图标(会覆盖 AppScope/app.json5 中的相关配置),但是会优先使用 entry 的 target 的入口 ability 的 icon
"label": "$string:app_name" // 此定制 app 的标题(会覆盖 AppScope/app.json5 中的相关配置),但是会优先使用 entry 的 target 的入口 ability 的 label
},
{
"name": "product1",
"signingConfig": "default",
"compatibleSdkVersion": "5.0.1(13)",
"runtimeOS": "HarmonyOS",
"buildOption": {
"strictMode": {
"caseSensitiveCheck": true,
"useNormalizedOHMUrl": true
}
},
"bundleName": "com.webabcd.harmonydemo1",
"icon": "$media:app_icon",
"label": "$string:app_name"
},
{
"name": "product2",
"signingConfig": "default",
"compatibleSdkVersion": "5.0.1(13)",
"runtimeOS": "HarmonyOS",
"buildOption": {
"strictMode": {
"caseSensitiveCheck": true,
"useNormalizedOHMUrl": true
}
},
"bundleName": "com.webabcd.harmonydemo2",
"icon": "$media:app_icon",
"label": "$string:app_name"
}
],
"buildModeSet": [
{
"name": "debug",
},
{
"name": "release"
}
]
},
// 配置 modules
// 当使用了 targets, products 时,则需要在此处配置 target 需要打包到哪个 product 中
"modules": [
{
"name": "entry",
"srcPath": "./entry",
"targets": [
{
// 将 entry 模块的名为 default 的 target 打包到名为 default 的 product 中
"name": "default",
"applyToProducts": [
"default"
]
},
{
"name": "target1",
"applyToProducts": [
"product1"
]
},
{
"name": "target2",
"applyToProducts": [
"product2"
]
}
]
},
{
"name": "hsp1",
"srcPath": "./hsp1",
"targets": [
{
// 将 hsp1 模块的名为 default 的 target 打包到名为 default 的 product 中
"name": "default",
"applyToProducts": [
"default"
]
},
{
"name": "target1",
"applyToProducts": [
"product1"
]
},
{
"name": "target2",
"applyToProducts": [
"product2"
]
}
]
},
{
"name": "feature1",
"srcPath": "./feature1",
"targets": [
{
"name": "default",
"applyToProducts": [
"default"
]
}
]
},
{
"name": "har1",
"srcPath": "./har1",
},
{
"name": "har2",
"srcPath": "./har2",
},
{
"name": "ndk1",
"srcPath": "./ndk1",
"targets": [
{
"name": "default",
"applyToProducts": [
"default"
]
}
]
}
]
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。