• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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  "app": {
17    "products": [
18      {
19        "name": "default",
20        "signingConfig": "default",
21        "compileSdkVersion": 14,
22        //指定OpenHarmony应用/服务编译时的版本
23        "compatibleSdkVersion": 14,
24        //指定OpenHarmony应用/服务兼容的最低版本。
25        "targetSdkVersion": 14,
26        //指定OpenHarmony应用/服务目标版本。若没有设置,默认为compatibleSdkVersion
27        "runtimeOS": "OpenHarmony",
28        //指定为OpenHarmony
29        "buildOption": {
30          "externalNativeOptions": {
31            //指定ABI配置
32            "abiFilters": [
33              "arm64-v8a",
34              "x86_64",
35              "armeabi-v7a"
36            ]
37          },
38          "strictMode": {
39            "caseSensitiveCheck": true,
40            "useNormalizedOHMUrl": true
41          }
42        }
43      }
44    ],
45    "buildModeSet": [
46      {
47        "name": "debug"
48      },
49      {
50        "name": "release"
51      }
52    ],
53  },
54  "modules": [
55    {
56      "name": "entry",
57      "srcPath": "./entry",
58      "targets": [
59        {
60          "name": "default",
61          "applyToProducts": [
62            "default"
63          ]
64        }
65      ]
66    }
67  ]
68}