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
16package ohos;
17
18/**
19 * Constants
20 *
21 * @since 2024-06-18
22 */
23public class Constants {
24    /**
25     * Indicates the string const: slash /
26     */
27    public static final String SLASH = "/";
28
29    /**
30     * Indicates the string const: comma ,
31     */
32    public static final String COMMA = ",";
33
34    /**
35     * Indicates the dir name: resources/rawfile
36     */
37    public static final String RAW_FILE_PATH = "resources/rawfile";
38
39    /**
40     * Indicates the dir name: resources/resfile
41     */
42    public static final String RES_FILE_PATH = "resources/resfile";
43
44    /**
45     * Indicates the file name suffix: .json
46     */
47    public static final String JSON_SUFFIX = ".json";
48
49    /**
50     * Indicates the file name suffix: .hap
51     */
52    public static final String HAP_SUFFIX = ".hap";
53
54    /**
55     * Indicates the file name suffix: .hsp
56     */
57    public static final String HSP_SUFFIX = ".hsp";
58
59    /**
60     * Indicates the file name suffix: .app
61     */
62    public static final String APP_SUFFIX = ".app";
63
64    /**
65     * Indicates the file name suffix: .png
66     */
67    public static final String PNG_SUFFIX = ".png";
68
69    /**
70     * Indicates the bundleType: app
71     */
72    public static final String APP = "app";
73
74    /**
75     * Indicates the json key: bundleType
76     */
77    public static final String BUNDLE_TYPE = "bundleType";
78
79    /**
80     * Indicates the bundleType: shared
81     */
82    public static final String BUNDLE_TYPE_SHARED = "shared";
83
84    /**
85     * Indicates the bundleType: appService
86     */
87    public static final String BUNDLE_TYPE_APP_SERVICE = "appService";
88
89    /**
90     * Indicates the json key: summary
91     */
92    public static final String SUMMARY = "summary";
93
94    /**
95     * Indicates the json key: packages
96     */
97    public static final String PACKAGES = "packages";
98
99    /**
100     * Indicates the json key: module
101     */
102    public static final String MODULE = "module";
103
104    /**
105     * Indicates the json key: buildHash
106     */
107    public static final String BUILD_HASH = "buildHash";
108
109    /**
110     * Indicates the json key: name
111     */
112    public static final String MODULE_NAME = "name";
113
114    /**
115     * Indicates the json key: type
116     */
117    public static final String MODULE_TYPE = "type";
118
119    /**
120     * Indicates the module type: shared
121     */
122    public static final String TYPE_SHARED = "shared";
123
124    /**
125     * Indicates the module type: entry
126     */
127    public static final String TYPE_ENTRY = "entry";
128
129    /**
130     * Indicates the module type: feature
131     */
132    public static final String TYPE_FEATURE = "feature";
133
134    /**
135     * Indicates the json key: generateBuildHash
136     */
137    public static final String GENERATE_BUILD_HASH = "generateBuildHash";
138
139    /**
140     * Indicates the json key: compressNativeLibs
141     */
142    public static final String COMPRESS_NATIVE_LIBS = "compressNativeLibs";
143
144    /**
145     * Indicates the file name: pack.info
146     */
147    public static final String FILE_PACK_INFO = "pack.info";
148
149    /**
150     * Indicates the file name: encrypt.json
151     */
152    public static final String FILE_ENCRYPT_JSON = "encrypt.json";
153
154    /**
155     * Indicates the file name: module.json
156     */
157    public static final String FILE_MODULE_JSON = "module.json";
158
159    /**
160     * Indicates the file name: config.json
161     */
162    public static final String FILE_CONFIG_JSON = "config.json";
163
164    /**
165     * Indicates the file name: pack.res
166     */
167    public static final String FILE_PACK_RES = "pack.res";
168
169    /**
170     * Indicates the dir null
171     */
172    public static final String NULL_DIR = "";
173
174    /**
175     * Indicates the dir name: libs
176     */
177    public static final String LIBS_DIR = "libs";
178
179    /**
180     * Indicates the SHA_256
181     */
182    public static final String SHA_256 = "SHA-256";
183
184    /**
185     * Indicates the tmp dir
186     */
187    public static final String TMP = "tmp";
188
189    /**
190     * Indicates the bool string true
191     */
192    public static final String TRUE = "true";
193
194    /**
195     * Indicates the bool string false
196     */
197    public static final String FALSE = "false";
198
199    /**
200     * Indicates the buffer size
201     */
202    public static final int BUFFER_SIZE = 40 * 1024;
203}
204