obfuscation

Signed-off-by: xuqian <xuqian65@huawei.com>
This commit is contained in:
xuqian 2024-08-19 18:58:35 +08:00
parent 2676dc83a6
commit 98c803fda2
3 changed files with 21 additions and 1 deletions

View File

@ -20,7 +20,7 @@ ohos_app("dlp_manager") {
":dlp_manager_resources",
]
publicity_file = "publicity.xml"
js_build_mode = "debug"
js_build_mode = "release"
certificate_profile = "signature/dlpmanager.p7b"
hap_name = "dlp_manager"
part_name = "prebuilt_hap"

View File

@ -16,6 +16,21 @@
"apiType": 'stageMode',
"buildOption": {
},
"buildOptionSet": [
{
"name": "release",
"arkOptions": {
"obfuscation": {
"ruleOptions": {
"enable": true,
"files": [
"./obfuscation-rules.txt"
]
}
}
}
}
],
"targets": [
{
"name": "default",

View File

@ -0,0 +1,5 @@
-enable-property-obfuscation
-enable-toplevel-obfuscation
-compact
-remove-log
-enable-export-obfuscation