From 31e5cba83cdac3afe866ac0f197807bf5742a4b0 Mon Sep 17 00:00:00 2001 From: wangtiantian Date: Sat, 28 May 2022 10:45:43 +0800 Subject: [PATCH] IssueNo: #I59P36:add CROWDTESTING Description:add CROWDTESTING Sig:SIG_ApplicaitonFramework Feature or Bugfix:Feature Binary Source:No Signed-off-by: wangtiantian --- .../com/ohos/hapsigntool/profile/model/Provision.java | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) 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 0e2f3c29..63adf934 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); -- Gitee