void SetPackageVersion(IPackageVersion packageVersion, ValidationSuiteReportData reportData = null)
        {
            PackageVersion = packageVersion;
            ReportData     = reportData ?? ValidationSuite.GetReport(PackageVersion.versionId());

            Report?.Init(PackageVersion, ReportData);
        }
        public void OnPublish(IPackageVersion packageVersion)
        {
            if (Application.internetReachability == NetworkReachability.NotReachable)
            {
                Debug.LogWarning("Validation suite requires network access and cannot be used offline.");
                return;
            }

            ValidationSuite.ValidatePackage(packageVersion.versionId(), ValidationType.Publishing);
            ValidationSuiteReportWindow.Open(packageVersion);
        }
        public static void Open(IPackageVersion packageVersion)
        {
            if (IsOpenedWith(packageVersion))
            {
                return;
            }
            if (!ValidationSuite.JsonReportExists(packageVersion.versionId()))
            {
                return;
            }

            var dialog = GetWindow <ValidationSuiteReportWindow>(false, "Validation", true);

            dialog.SetPackageVersion(packageVersion);
            dialog.minSize = new Vector2(750, 350);
            dialog.Show();
        }
 public static void UpdateIfOpened(IPackageVersion packageVersion)
 {
     if (IsOpen() && packageVersion != null && ValidationSuite.JsonReportExists(packageVersion.versionId()))
     {
         Open(packageVersion);
     }
 }