diff --git a/AppScope/app.json b/AppScope/app.json index 530f2395e6396091bffd4708d13a7791880fb65f..48a61652bbf0076947ae66ae5bddd48c0e3d0854 100644 --- a/AppScope/app.json +++ b/AppScope/app.json @@ -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, diff --git a/AppScope/app.json5 b/AppScope/app.json5 index 86bd1cb6f76b08e874c7dcdb32b4f35d682dc739..e5a72492e70cb27c5e5219d2e6725a09f19d122d 100644 --- a/AppScope/app.json5 +++ b/AppScope/app.json5 @@ -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, diff --git a/BUILD.gn b/BUILD.gn index a83f2da11594fd316a236e4a8147410a29e695da..32c7a8db8512392741e85bacb9793ddf5f47c3ea 100644 --- a/BUILD.gn +++ b/BUILD.gn @@ -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" ] diff --git a/permissionmanager/build-profile.json5 b/permissionmanager/build-profile.json5 index 01b4640992a07d86125126a41ef1c79b96419a5b..ee13d961ea26965683bd2f3e09dc2965e7650b10 100644 --- a/permissionmanager/build-profile.json5 +++ b/permissionmanager/build-profile.json5 @@ -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", diff --git a/permissionmanager/obfuscation-rules.txt b/permissionmanager/obfuscation-rules.txt new file mode 100644 index 0000000000000000000000000000000000000000..1c8dc53c16009802c28b841d0ac52325b29a676b --- /dev/null +++ b/permissionmanager/obfuscation-rules.txt @@ -0,0 +1,3 @@ +-enable-toplevel-obfuscation +-enable-export-obfuscation +-enable-property-obfuscation \ No newline at end of file