代码混淆及debug

Signed-off-by: fanchenxuan <fanchenxuan@huawei.com>
This commit is contained in:
fanchenxuan 2024-08-19 11:36:33 +08:00
parent c4b9c58bfe
commit ee1a6b11f9
5 changed files with 24 additions and 6 deletions

View File

@ -4,8 +4,8 @@
"app": {
"bundleName": "com.ohos.permissionmanager",
"vendor": "example",
"versionCode": 1000066,
"versionName": "1.6.6",
"versionCode": 1000067,
"versionName": "1.6.7",
"icon": "$media:app_icon",
"label": "$string:app_name",
"minAPIVersion": 12,

View File

@ -16,8 +16,8 @@
"app": {
"bundleName": "com.ohos.permissionmanager",
"vendor": "example",
"versionCode": 1000066,
"versionName": "1.6.6",
"versionCode": 1000067,
"versionName": "1.6.7",
"icon": "$media:app_icon",
"label": "$string:app_name",
"minAPIVersion": 12,

View File

@ -23,7 +23,7 @@ ohos_app("permission_manager") {
hap_name = "permission_manager"
part_name = "prebuilt_hap"
subsystem_name = "applications"
js_build_mode = "debug"
js_build_mode = "release"
module_install_dir = "app/com.ohos.permissionmanager"
sdk_home = "//prebuilts/ohos-sdk/linux"
sdk_type_name = [ "sdk.dir" ]

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2022 Huawei Device Co., Ltd.
* Copyright (c) 2022-2024 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
@ -18,6 +18,21 @@
"entryModules": ['entry'],
"buildOption": {
},
"buildOptionSet": [
{
"name": "release",
"arkOptions": {
"obfuscation": {
"ruleOptions": {
"enable": true,
"files": [
"./obfuscation-rules.txt"
]
}
}
}
}
],
"targets": [
{
"name": "default",

View File

@ -0,0 +1,3 @@
-enable-toplevel-obfuscation
-enable-export-obfuscation
-enable-property-obfuscation