Package jadx.gui.update.data

Examples of jadx.gui.update.data.Release


  public static void check(final IUpdateCallback callback) {
    Runnable run = new Runnable() {
      @Override
      public void run() {
        try {
          Release release = checkForNewRelease();
          if (release != null) {
            callback.onUpdate(release);
          }
        } catch (Exception e) {
          LOG.debug("Jadx update error", e);
View Full Code Here


    List<Release> list = get(GITHUB_RELEASES_URL, RELEASES_LIST_TYPE);
    if (list == null) {
      return null;
    }
    for (Iterator<Release> it = list.iterator(); it.hasNext(); ) {
      Release release = it.next();
      if (release.getName().equalsIgnoreCase(version)
          || release.isPrerelease()) {
        it.remove();
      }
    }
    if (list.isEmpty()) {
      return null;
    }
    Collections.sort(list, RELEASE_COMPARATOR);
    Release latest = list.get(list.size() - 1);
    if (VersionComparator.checkAndCompare(version, latest.getName()) == 0) {
      return null;
    }
    LOG.debug("Found new version: {}", latest);
    return latest;
  }
View Full Code Here

TOP

Related Classes of jadx.gui.update.data.Release

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.