1# Copyright (c) 2025 Huawei Device Co., Ltd. 2# Licensed under the Apache License, Version 2.0 (the "License"); 3# you may not use this file except in compliance with the License. 4# You may obtain a copy of the License at 5# 6# http://www.apache.org/licenses/LICENSE-2.0 7# 8# Unless required by applicable law or agreed to in writing, software 9# distributed under the License is distributed on an "AS IS" BASIS, 10# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 11# See the License for the specific language governing permissions and 12# limitations under the License. 13 14# Define project specific obfuscation rules here. 15# You can include the obfuscation configuration files in the current module's build-profile.json5. 16# 17# For more details, see 18# https://developer.huawei.com/consumer/cn/doc/harmonyos-guides-V5/source-obfuscation-V5 19 20# Obfuscation options: 21# -disable-obfuscation: disable all obfuscations 22# -enable-property-obfuscation: obfuscate the property names 23# -enable-toplevel-obfuscation: obfuscate the names in the global scope 24# -compact: remove unnecessary blank spaces and all line feeds 25# -remove-log: remove all console.* statements 26# -print-namecache: print the name cache that contains the mapping from the old names to new names 27# -apply-namecache: reuse the given cache file 28 29# Keep options: 30# -keep-property-name: specifies property names that you want to keep 31# -keep-global-name: specifies names that you want to keep in the global scope 32 33-enable-property-obfuscation 34-enable-toplevel-obfuscation 35-enable-filename-obfuscation 36-enable-export-obfuscation