)]}'
{
  "commit": "e616c6cef2e11bee0ca2d5653ab542f617b007e9",
  "tree": "8777e0bce370ee99bb6798e30c09f75fd3d8e2aa",
  "parents": [
    "0fb209726f7c87da7079981fd8597315725f0240"
  ],
  "author": {
    "name": "Danny Tuppeny",
    "email": "danny@tuppeny.com",
    "time": "Wed Jun 27 12:50:40 2018 +0100"
  },
  "committer": {
    "name": "GitHub",
    "email": "noreply@github.com",
    "time": "Wed Jun 27 12:50:40 2018 +0100"
  },
  "message": "Improve update checking (#18193)\n\n* Improve update checking\r\n\r\nThis change emables pinging the server to check for updates regardless of whether the local version is \"out of date\". The server code already has a 7-day cache so the result is that we can now ping the server once every 7 days instead of waiting for the local install to be 4 weeks out of date before pinging.\r\n\r\nThe original 4 week period is still used for when we\u0027ll start warning the user they\u0027re out of date if we could not confirm with the server whether there\u0027s a new version.\r\n\r\n* Improve message when we know there\u0027s a new version available\r\n\r\n* Fix bnullable bool checks\r\n\r\n* Switch nullable bool to enum\r\n\r\n* Fix casing of enum values\r\n\r\n* Remove stale comment\r\n\r\nThe names are now descriptive so doesn\u0027t need additional explanation.\r\n\r\n* Improve name of function\r\n\r\n* Remove note:\r\n\r\n* Rename kPauseToLetUserReadTheMessage -\u003e timeToPauseToLetUserReadTheMessage\r\n\r\n* Change kVersionAgeConsideredUpToDate to 5 weeks from 4\r\n\r\n* Inline the isNewerFrameworkVersionAvailable check\r\n\r\n* Fix indenting (?)\r\n\r\n* Fix more indenting\r\n\r\n* Rename function to be clearer it\u0027s getting the commit date\r\n\r\n* Formating tweaks\r\n\r\n* Update stamp when connection failed, and reduce time before we\u0027ll try again\r\n\r\nPreviously we would hit the server on every command if we thought we might be out of date and we never successfully connected (eg. if you\u0027re offline). This makes the stamp update even when there\u0027s a conneciton failure so that this won\u0027t happen, but reduces the time till we check again from 7 days to 3 days to compensate a little in case it was a one-off.\r\n\r\nhttps://github.com/flutter/flutter/pull/18193#issuecomment-399222269\r\n\r\n* Fix comment\r\n\r\n* Don\u0027t perform update checks if not on an official channel\r\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "7d1ef094eec81977024e9c626db18499cbbef295",
      "old_mode": 33188,
      "old_path": "packages/flutter_tools/lib/src/version.dart",
      "new_id": "c08c44435e75bbdbbccd5e797e2f90c2fda3c530",
      "new_mode": 33188,
      "new_path": "packages/flutter_tools/lib/src/version.dart"
    },
    {
      "type": "modify",
      "old_id": "9770ef97842f9b9d0998465bbd7a6c2157ec71ec",
      "old_mode": 33188,
      "old_path": "packages/flutter_tools/test/version_test.dart",
      "new_id": "61ec9f6c05609bb212f6920a9582d4c321025f91",
      "new_mode": 33188,
      "new_path": "packages/flutter_tools/test/version_test.dart"
    }
  ]
}
