From ee1a6b11f9d4af8b40821a8e8d7763ce2dc9e811 Mon Sep 17 00:00:00 2001 From: fanchenxuan Date: Mon, 19 Aug 2024 11:36:33 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BB=A3=E7=A0=81=E6=B7=B7=E6=B7=86=E5=8F=8Ade?= =?UTF-8?q?bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: fanchenxuan --- AppScope/app.json | 4 ++-- AppScope/app.json5 | 4 ++-- BUILD.gn | 2 +- permissionmanager/build-profile.json5 | 17 ++++++++++++++++- permissionmanager/obfuscation-rules.txt | 3 +++ 5 files changed, 24 insertions(+), 6 deletions(-) create mode 100644 permissionmanager/obfuscation-rules.txt diff --git a/AppScope/app.json b/AppScope/app.json index 530f239..48a6165 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 86bd1cb..e5a7249 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 a83f2da..32c7a8d 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 01b4640..ee13d96 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 0000000..1c8dc53 --- /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 -- Gitee