コード例 #1
0
 /// <summary>
 /// Update available versions for git packages.
 /// </summary>
 public static void UpdateAvailableVersionsForGitPackages()
 {
     // Start update task.
     foreach (var package in PackageExtensions.GetGitPackages())
     {
         var pInfo   = package.GetInstalledVersion().GetPackageInfo();
         var repoUrl = PackageUtils.GetRepoUrl(pInfo.packageId);
         Debug.Log(kHeader, $"[UpdateAvailableVersionsForGitPackages] {pInfo.packageId} => {pInfo.name}, {repoUrl}");
         AvailableVersionExtensions.UpdateAvailableVersions(pInfo.name, repoUrl);
     }
 }
コード例 #2
0
ファイル: InternalBridge.cs プロジェクト: Sabaniki/sdp-k03
        /// <summary>
        /// Update all infomations of git packages.
        /// </summary>
        public static void UpdateGitPackageVersions()
        {
            bool changed = false;

            // Start update task.
            foreach (var package in PackageExtensions.GetGitPackages())
            {
                var pInfo    = package.GetInstalledVersion().GetPackageInfo();
                var repoUrl  = PackageUtils.GetRepoUrl(pInfo.packageId);
                var versions = AvailableVersions.GetVersions(package.GetName(), repoUrl);
                Debug.Log(kHeader, $"[UpdateGitPackageVersions] {pInfo.packageId} => {package.GetName()}, {repoUrl}, {versions.Count()}");
                changed = UpdatePackageVersions(package, versions) | changed;
            }

            if (changed)
            {
                UpdatePackageCollection();
            }
        }
コード例 #3
0
 public static void UpdatePackageCollection()
 {
     Debug.Log(kHeader, "[UpdatePackageCollection]");
     PackageExtensions.UpdatePackageCollection();
 }