1/* 2 * Copyright (c) 2025 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 16{ 17 "apiType": "stageMode", 18 // [Start hap_load_native_dependence_01] 19 "buildOption": { 20 "arkOptions": { 21 "runtimeOnly": { 22 "packages": [ 23 "libentry.so" 24 ] 25 } 26 }, 27 // [StartExclude hap_load_native_dependence_01] 28 "externalNativeOptions": { 29 "path": "./src/main/cpp/CMakeLists.txt", 30 "arguments": "", 31 "cppFlags": "", 32 "abiFilters": [ 33 "arm64-v8a", 34 "x86_64", 35 "armeabi-v7a" 36 ] 37 }, 38 // [EndExclude hap_load_native_dependence_01] 39 }, 40 // [End hap_load_native_dependence_01] 41 "buildOptionSet": [ 42 { 43 "name": "release", 44 "arkOptions": { 45 "obfuscation": { 46 "ruleOptions": { 47 "enable": false, 48 "files": [ 49 "./obfuscation-rules.txt" 50 ] 51 } 52 } 53 }, 54 "nativeLib": { 55 "debugSymbol": { 56 "strip": true, 57 "exclude": [] 58 } 59 } 60 }, 61 ], 62 "targets": [ 63 { 64 "name": "default" 65 }, 66 { 67 "name": "ohosTest", 68 } 69 ] 70}