diff --git a/hapsigntool/hap_sign_tool_lib/src/main/java/com/ohos/hapsigntool/profile/model/Provision.java b/hapsigntool/hap_sign_tool_lib/src/main/java/com/ohos/hapsigntool/profile/model/Provision.java index 0e2f3c29c40eeae7b662241029ffc6eacd61548c..63adf9349d3e27865f9c65b32e704cd08d0ca9b9 100644 --- a/hapsigntool/hap_sign_tool_lib/src/main/java/com/ohos/hapsigntool/profile/model/Provision.java +++ b/hapsigntool/hap_sign_tool_lib/src/main/java/com/ohos/hapsigntool/profile/model/Provision.java @@ -75,6 +75,11 @@ public class Provision { */ public static final String OS_INTEGRATION = "os_integration"; + /** + * Field CROWDTESTING. + */ + public static final String CROWDTESTING = "crowdtesting"; + /** * Number 100. */ @@ -184,7 +189,8 @@ public class Provision { public static boolean isAppDistTypeValid(String appDistType) { return APP_GALLERY.equals(appDistType) || ENTERPRISE.equals(appDistType) - || OS_INTEGRATION.equals(appDistType); + || OS_INTEGRATION.equals(appDistType) + || CROWDTESTING.equals(appDistType); } /** @@ -208,7 +214,7 @@ public class Provision { && (provision.appDistributionType == null || !isAppDistTypeValid(provision.appDistributionType)), ERROR.SIGN_ERROR, "Require app distribution type must be one of app_gallery, " - + "enterprise or os_integration, current is " + provision.appDistributionType); + + "enterprise or os_integration or crowdtesting, current is " + provision.appDistributionType); ValidateUtils.throwIfMatches(provision.bundleInfo == null, ERROR.SIGN_ERROR, "Require bundleInfo in provision!"); provision.bundleInfo.enforceValid(provision.type);