Exemple #1
0
        void SetPackageVersion(IPackageVersion packageVersion, ValidationSuiteReportData reportData = null)
        {
            m_PackageVersion = packageVersion;
            m_ReportData     = reportData ?? ValidationSuite.GetReport(m_PackageVersion.VersionId());

            m_Report?.Init(m_PackageVersion, m_ReportData);
        }
Exemple #2
0
        internal void RefreshValidationStatus(IPackageVersion packageVersion)
        {
            if (packageVersion == null)
            {
                return;
            }

            m_ViewValidateReport.visible = ValidationSuite.JsonReportExists(packageVersion.VersionId());
        }
        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);
        }
Exemple #4
0
        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();
        }
Exemple #5
0
 public static void UpdateIfOpened(IPackageVersion packageVersion)
 {
     if (IsOpen() && packageVersion != null && ValidationSuite.JsonReportExists(packageVersion.VersionId()))
     {
         Open(packageVersion);
     }
 }