1/* 2 * Copyright (c) 2023 Huawei Device Co., Ltd. 3 * Licensed under the Apache License, Version 2.0 (the "License"); 4 * you may not use this file except in compliance with the License. 5 * You may obtain a copy of the License at 6 * 7 * http://www.apache.org/licenses/LICENSE-2.0 8 * 9 * Unless required by applicable law or agreed to in writing, software 10 * distributed under the License is distributed on an "AS IS" BASIS, 11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 * See the License for the specific language governing permissions and 13 * limitations under the License. 14 */ 15 16import type {INameObfuscationOption} from './INameObfuscationOption'; 17 18export interface IOptions { 19 // Whether to generate compact code 20 readonly mCompact?: boolean; 21 22 // Whether to remove comments; 23 readonly mRemoveComments?: boolean; 24 25 // Whether to disable console output 26 readonly mDisableConsole?: boolean; 27 28 // whether to disable hilog output 29 readonly mDisableHilog?: boolean; 30 31 // Whether to do code simplification, includes variable declarations merging, expression merging... 32 readonly mSimplify?: boolean; 33 34 // Whether to do Name Obfuscation 35 readonly mNameObfuscation?: INameObfuscationOption; 36 37 mOutputDir?: string; 38 39 readonly mOhSdkPath?: string; 40 41 readonly mTopLevel?: boolean; 42 43 readonly mEnableSourceMap?: boolean; 44 45 readonly mEnableNameCache?: boolean; 46 47 readonly apiSavedDir?: string; 48 49 readonly applyReservedNamePath?: string; 50} 51