refactor: 工程规范化,唯一入口为 products/phone

- entry 模块改为 har(静态共享包),移除 abilities 和入口能力
- entry/build-profile.json5 简化,删除 release 混淆配置
- 根 build-profile.json5 移除 entry 模块,phone 为唯一入口
- 保留 entry 的 requestPermissions 作为依赖参考
This commit is contained in:
root
2026-05-01 09:22:54 +08:00
parent 5ae2143822
commit 5e4fb8222a
3 changed files with 1 additions and 62 deletions

View File

@ -96,18 +96,6 @@
}
]
},
{
"name": "entry",
"srcPath": "./entry",
"targets": [
{
"name": "default",
"applyToProducts": [
"default"
]
}
]
},
{
"name": "trulymem-core",
"srcPath": "./trulymem-core",

View File

@ -1,38 +1,8 @@
{
"apiType": "stageMode",
"buildOption": {
"resOptions": {
"copyCodeResource": {
"enable": false
}
}
},
"buildOptionSet": [
{
"name": "release",
"arkOptions": {
"obfuscation": {
"ruleOptions": {
"enable": true,
"files": [
"./obfuscation-rules.txt"
]
}
}
},
"resOptions": {
"copyCodeResource": {
"enable": false
}
}
},
],
"targets": [
{
"name": "default"
},
{
"name": "ohosTest",
}
]
}

View File

@ -1,31 +1,12 @@
{
"module": {
"name": "entry",
"type": "entry",
"type": "har",
"description": "$string:module_desc",
"mainElement": "EntryAbility",
"deviceTypes": ["phone", "tablet", "2in1"],
"deliveryWithInstall": true,
"installationFree": false,
"pages": "$profile:main_pages",
"abilities": [
{
"name": "EntryAbility",
"srcEntry": "./ets/entryability/EntryAbility.ets",
"description": "$string:EntryAbility_desc",
"icon": "$media:layered_image",
"label": "$string:EntryAbility_label",
"startWindowIcon": "$media:startIcon",
"startWindowBackground": "$color:start_window_background",
"exported": true,
"skills": [
{
"entities": ["entity.system.home"],
"actions": ["action.system.home"]
}
]
}
],
"requestPermissions": [
{
"name": "ohos.permission.INTERNET"