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 napi_load_module_napi_build] 19 "buildOption": { 20 "arkOptions" : { 21 "runtimeOnly" : { 22 "sources": [ 23 "./src/main/ets/Test.ets" 24 ], 25 "packages": [ 26 "library", 27 "sharedlibrary", 28 "@ohos/hypium", 29 "@ohos/axios", 30 "libentry7.so" 31 ] 32 } 33 }, 34 // [End napi_load_module_napi_build] 35 "externalNativeOptions": { 36 "path": "./src/main/cpp/CMakeLists.txt", 37 "arguments": "", 38 "cppFlags": "", 39 "abiFilters": [ 40 "arm64-v8a", 41 "x86_64", 42 "armeabi-v7a" 43 ] 44 } 45 }, 46 "buildOptionSet": [ 47 { 48 "name": "release", 49 "arkOptions": { 50 "obfuscation": { 51 "ruleOptions": { 52 "enable": false, 53 "files": [ 54 "./obfuscation-rules.txt" 55 ] 56 } 57 } 58 }, 59 "nativeLib": { 60 "debugSymbol": { 61 "strip": true, 62 "exclude": [] 63 } 64 } 65 }, 66 ], 67 "targets": [ 68 { 69 "name": "default" 70 }, 71 { 72 "name": "ohosTest", 73 } 74 ] 75}