mirror of
https://gitee.com/openharmony/applications_dlp_manager
synced 2024-11-23 01:49:46 +00:00
obfuscation
Signed-off-by: xuqian <xuqian65@huawei.com>
This commit is contained in:
parent
2676dc83a6
commit
98c803fda2
2
BUILD.gn
2
BUILD.gn
@ -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"
|
||||
|
@ -16,6 +16,21 @@
|
||||
"apiType": 'stageMode',
|
||||
"buildOption": {
|
||||
},
|
||||
"buildOptionSet": [
|
||||
{
|
||||
"name": "release",
|
||||
"arkOptions": {
|
||||
"obfuscation": {
|
||||
"ruleOptions": {
|
||||
"enable": true,
|
||||
"files": [
|
||||
"./obfuscation-rules.txt"
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
],
|
||||
"targets": [
|
||||
{
|
||||
"name": "default",
|
||||
|
5
entry/obfuscation-rules.txt
Normal file
5
entry/obfuscation-rules.txt
Normal file
@ -0,0 +1,5 @@
|
||||
-enable-property-obfuscation
|
||||
-enable-toplevel-obfuscation
|
||||
-compact
|
||||
-remove-log
|
||||
-enable-export-obfuscation
|
Loading…
Reference in New Issue
Block a user