From 5e4fb8222aec2885a531230dab1e0a8138d55104 Mon Sep 17 00:00:00 2001 From: root Date: Fri, 1 May 2026 09:22:54 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20=E5=B7=A5=E7=A8=8B=E8=A7=84?= =?UTF-8?q?=E8=8C=83=E5=8C=96=EF=BC=8C=E5=94=AF=E4=B8=80=E5=85=A5=E5=8F=A3?= =?UTF-8?q?=E4=B8=BA=20products/phone?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - entry 模块改为 har(静态共享包),移除 abilities 和入口能力 - entry/build-profile.json5 简化,删除 release 混淆配置 - 根 build-profile.json5 移除 entry 模块,phone 为唯一入口 - 保留 entry 的 requestPermissions 作为依赖参考 --- build-profile.json5 | 12 ------------ entry/build-profile.json5 | 30 ------------------------------ entry/src/main/module.json5 | 21 +-------------------- 3 files changed, 1 insertion(+), 62 deletions(-) diff --git a/build-profile.json5 b/build-profile.json5 index a7b41fd..1c0b088 100644 --- a/build-profile.json5 +++ b/build-profile.json5 @@ -96,18 +96,6 @@ } ] }, - { - "name": "entry", - "srcPath": "./entry", - "targets": [ - { - "name": "default", - "applyToProducts": [ - "default" - ] - } - ] - }, { "name": "trulymem-core", "srcPath": "./trulymem-core", diff --git a/entry/build-profile.json5 b/entry/build-profile.json5 index 0c081ca..14d5b83 100644 --- a/entry/build-profile.json5 +++ b/entry/build-profile.json5 @@ -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", } ] } \ No newline at end of file diff --git a/entry/src/main/module.json5 b/entry/src/main/module.json5 index e0a326d..8e109a5 100644 --- a/entry/src/main/module.json5 +++ b/entry/src/main/module.json5 @@ -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"