@YahnisElsts YahnisElsts released this Dec 22, 2017 · 27 commits to master since this release

Assets 2
  • Added a way to show a plugin icon on the "Dashboard -> Updates" page.
    Usage: Add the following entry to your JSON file:
    "icons" : {
    	"1x" : "http://example.com/assets/icon-128x128.png",
    	"2x" : "http://example.com/assets/icon-256x256.png",
    	"svg": "http://example.com/assets/icon.svg"
    } 
    See supported icon sizes and image formats.
  • Added support for GitHub release assets.
    Usage: Set up the update checker instance as usual, then call the new enableReleaseAssets() method of the GitHub API class.
    $gitHubUpdateChecker->getVcsApi()->enableReleaseAssets();
    You can make PUC look for a specific asset by passing a regular expression to enableReleaseAssets(). For example, $api->enableReleaseAssets('/custom-asset/') will make PUC use the first asset where the file name contains the string "custom-asset".
  • Improved error reporting when using the "check for updates" link. Previously, the check could fail with a generic message like "no updates available". Now the update checker will display the underlying API error (if available).