Menu

#13 Update app version on info in appUpdates.txt

Applicaton
pending-later
9
2011-10-14
2011-09-28
ProiectT
No

- application version should be updated based on the information in appUpdates.txt - file version should be converted in application version.

Discussion

  • ProiectT

    ProiectT - 2011-09-28
    • assigned_to: nobody --> andreitim
    • priority: 5 --> 9
    • milestone: --> Applicaton
    • labels: --> Development
    • status: open --> open-accepted
     
  • ProiectT

    ProiectT - 2011-09-29

    In FileDownloader add

    public String getVersion()
    {
    if (_newEntries != null && _newEntries.size() > 0)
    {
    String appVersion = "";

    int ver = _newEntries.getFirst()._fileVer;
    String strVersion = "" + ver;

    if (strVersion.length() > 0)
    {
    appVersion = strVersion.substring(0, 1);
    strVersion = strVersion.substring(1);

    if (strVersion.length() > 0)
    {
    appVersion += "." + strVersion.substring(0, 1);
    strVersion = strVersion.substring(1);

    if (strVersion.length() > 0)
    {
    appVersion += "." + strVersion;
    }
    }

    System.out.println(appVersion);

    return appVersion;
    }
    }

    return null;
    }

     
  • ProiectT

    ProiectT - 2011-09-29

    Fixed in version 5.0.3

     
  • ProiectT

    ProiectT - 2011-09-29
    • status: open-accepted --> closed-fixed
     
  • ProiectT

    ProiectT - 2011-09-30

    The app version must be updated on app startup.

    -Remove the code to update it when the application get's updated - it does not function anyway.

    Refactoring
    - FileDownloader object must have only one instance and must belong to PTAppLogic.
    - The code to connect to remote must be moved out of the constructor in a new function.
    - The logic for generating the version must be found in FileDownloader and not in PTAppLogic.

     
  • ProiectT

    ProiectT - 2011-09-30
    • status: closed-fixed --> pending-fixed
     
  • Andrei Tim

    Andrei Tim - 2011-10-14
    • status: pending-fixed --> pending-later
     

Log in to post a comment.