• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1#!/usr/bin/env python3
2# -*- coding: utf-8 -*-
3#
4# Copyright (c) 2024 Huawei Device Co., Ltd.
5# Licensed under the Apache License, Version 2.0 (the "License");
6# you may not use this file except in compliance with the License.
7# You may obtain a copy of the License at
8#
9# http://www.apache.org/licenses/LICENSE-2.0
10#
11# Unless required by applicable law or agreed to in writing, software
12# distributed under the License is distributed on an "AS IS" BASIS,
13# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14# See the License for the specific language governing permissions and
15# limitations under the License.
16
17API_VERSION_MAP = {
18    "API9": "9.0.0.0",
19    "API10": "9.0.0.0",
20    "API11": "11.0.2.0",
21    "API12beta1": "12.0.2.0",
22    "API12beta2": "12.0.2.0",
23    "API12beta3": "12.0.6.0",
24    "API13": "12.0.6.0",
25    "API14": "12.0.6.0",
26    "API15": "12.0.6.0",
27    "API16": "12.0.6.0",
28    "API17": "12.0.6.0",
29    "API18": "13.0.1.0",
30    "API19": "13.0.1.0",
31    "API20": "13.0.1.0",
32}
33
34ARK_JS_VM_LIST = {"API9", "API10", "API11", "API12beta1", "API12beta3", "API18"}
35
36ES2ABC_API_SUPPORT = {
37    "default": ["API9", "API10", "API11", "API12beta1", "API12beta2", "API12beta3",
38                "API13", "API14", "API15", "API16", "API17", "API18"],
39    "5.0": ["API9", "API10", "API11", "API12beta1", "API12beta2", "API12beta3",
40            "API13", "API14", "API15", "API16", "API17"],
41    "5.1": ["API9", "API10", "API11", "API12beta1", "API12beta2", "API12beta3",
42            "API13",  "API14", "API15", "API16", "API17", "API18"],
43}
44
45MIN_SUPPORT_BC_VERSION = "API12beta1"
46
47MIX_COMPILE_ENTRY_POINT = "import"
48