1/** 2 * Copyright (c) 2024 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 "buildOption": { 19 "externalNativeOptions": { 20 "path": "./src/main/cpp/CMakeLists.txt", 21 "arguments": "", 22 "cppFlags": "", 23 "abiFilters": [ 24 "arm64-v8a", 25 "armeabi-v7a", 26 "x86_64" 27 ] 28 }, 29 "arkOptions": { 30 "runtimeOnly": { 31 "packages": [ 32 "har", 33 "hsp", 34 "libentry.so", 35 "@test/loadHar", 36 "@test/loadHsp", 37 "long", 38 "@ohos/hypium" 39 ], 40 "sources": [ 41 "./src/ohosTest/ets/test/testAdd.ets", 42 "./src/ohosTest/ets/testSubtract.ets", 43 "./src/ohosTest/ets/test/fileTest", 44 "./src/ohosTest/ets/test/fileTest/中文.ets", 45 "./src/main/ets/testDivide.ets" 46 ] 47 } 48 } 49 }, 50 "buildOptionSet": [ 51 { 52 "name": "release", 53 "arkOptions": { 54 "obfuscation": { 55 "ruleOptions": { 56 "enable": false, 57 "files": [ 58 "./obfuscation-rules.txt" 59 ] 60 } 61 } 62 }, 63 "nativeLib": { 64 "debugSymbol": { 65 "strip": true, 66 "exclude": [] 67 } 68 } 69 }, 70 ], 71 "targets": [ 72 { 73 "name": "default" 74 }, 75 { 76 "name": "ohosTest", 77 } 78 ] 79}