mirror of
https://gitcode.com/JianFeeeee/TrulyMEM-TrueHumanMEM.git
synced 2026-10-15 12:15:32 +00:00
refactor: 工程规范化,唯一入口为 products/phone
- entry 模块改为 har(静态共享包),移除 abilities 和入口能力 - entry/build-profile.json5 简化,删除 release 混淆配置 - 根 build-profile.json5 移除 entry 模块,phone 为唯一入口 - 保留 entry 的 requestPermissions 作为依赖参考
This commit is contained in:
@ -96,18 +96,6 @@
|
|||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
|
||||||
"name": "entry",
|
|
||||||
"srcPath": "./entry",
|
|
||||||
"targets": [
|
|
||||||
{
|
|
||||||
"name": "default",
|
|
||||||
"applyToProducts": [
|
|
||||||
"default"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
"name": "trulymem-core",
|
"name": "trulymem-core",
|
||||||
"srcPath": "./trulymem-core",
|
"srcPath": "./trulymem-core",
|
||||||
|
|||||||
@ -1,38 +1,8 @@
|
|||||||
{
|
{
|
||||||
"apiType": "stageMode",
|
"apiType": "stageMode",
|
||||||
"buildOption": {
|
|
||||||
"resOptions": {
|
|
||||||
"copyCodeResource": {
|
|
||||||
"enable": false
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"buildOptionSet": [
|
|
||||||
{
|
|
||||||
"name": "release",
|
|
||||||
"arkOptions": {
|
|
||||||
"obfuscation": {
|
|
||||||
"ruleOptions": {
|
|
||||||
"enable": true,
|
|
||||||
"files": [
|
|
||||||
"./obfuscation-rules.txt"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"resOptions": {
|
|
||||||
"copyCodeResource": {
|
|
||||||
"enable": false
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
],
|
|
||||||
"targets": [
|
"targets": [
|
||||||
{
|
{
|
||||||
"name": "default"
|
"name": "default"
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "ohosTest",
|
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
@ -1,31 +1,12 @@
|
|||||||
{
|
{
|
||||||
"module": {
|
"module": {
|
||||||
"name": "entry",
|
"name": "entry",
|
||||||
"type": "entry",
|
"type": "har",
|
||||||
"description": "$string:module_desc",
|
"description": "$string:module_desc",
|
||||||
"mainElement": "EntryAbility",
|
|
||||||
"deviceTypes": ["phone", "tablet", "2in1"],
|
"deviceTypes": ["phone", "tablet", "2in1"],
|
||||||
"deliveryWithInstall": true,
|
"deliveryWithInstall": true,
|
||||||
"installationFree": false,
|
"installationFree": false,
|
||||||
"pages": "$profile:main_pages",
|
"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": [
|
"requestPermissions": [
|
||||||
{
|
{
|
||||||
"name": "ohos.permission.INTERNET"
|
"name": "ohos.permission.INTERNET"
|
||||||
|
|||||||
Reference in New Issue
Block a user