1 /* 2 * Copyright (c) 2022 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 package ohos; 17 18 import java.util.ArrayList; 19 import java.util.List; 20 21 /** 22 * collection of members in app fields, 23 * those members will be verified when pack app. 24 */ 25 class VerifyCollection { 26 /** 27 * Indicates the bundleName of app. 28 */ 29 public String bundleName = ""; 30 31 /** 32 * Indicates the vendor of app. 33 */ 34 public String vendor = ""; 35 /** 36 * Indicates the versionCode of version. 37 */ 38 public int versionCode = -1; 39 /** 40 * Indicates the versionName of version. 41 */ 42 public String versionName = ""; 43 /** 44 * Indicates the minCompatibleVersionCode of app. 45 */ 46 public int minCompatibleVersionCode = -1; 47 /** 48 * Indicates the minApiVersion of app. 49 */ 50 public int compatibleApiVersion = -1; 51 /** 52 * Indicates the targetApiVersion of app. 53 */ 54 public int targetApiVersion = -1; 55 /** 56 * Indicates the apiReleaseType of app. 57 */ 58 public String releaseType = ""; 59 60 /** 61 * Indicates the moduleNames of app. 62 */ 63 List<String> moduleNames = new ArrayList<>(); 64 /** 65 * Indicates the packageNames of app. 66 */ 67 List<String> packageNames = new ArrayList<>(); 68 69 /** 70 * Indicates the type of bundle 71 */ 72 private String bundleType = "app"; 73 setBundleType(String bundleType)74 public void setBundleType(String bundleType) { 75 this.bundleType = bundleType; 76 } 77 getBundleType()78 public String getBundleType() { 79 return bundleType; 80 } 81 } 82