analysisVersions function

void analysisVersions (
  1. Map<String, String> local,
  2. Map<String, String> latest
)

Implementation

void analysisVersions(Map<String, String> local, Map<String, String> latest) {
  final List<VersionCompare> res = [];

  for (final key in local.keys) {
    final localVersion = getVersionPart(local[key]);
    final latestVersion = getVersionPart(latest[key]);

    if (latestVersion != null) {
      final newest = checkHasUpdates(localVersion, latestVersion);

      res.add(VersionCompare(key, localVersion, latestVersion, hasUpdate: newest));
    }
  }

  printUpdates(res);
}