Check your GitHub repo for new releases from within your software.
Using GitHub to host your software? Want to check for new releases? Use GitHubRelease to check if a new release has been published. Prereleases and drafts can be opted in via configuration.
GitHub.Release is a framework that can be integrated into your project. It supports installation via cocoapods.
Use Xcode 9 or later.
Make sure you have added the GitHub.Release framework to your project. Using cocoapods does this automatically for you.
Import the framework header
#import <GitHubRelease/GitHubRelease.h>
Now somewhere appropriate in your source code add these lines to check for new releases.
GitHubReleaseChecker* releaseChecker = [[GitHubReleaseChecker alloc] initWithUser:@"MarLoe"
andProject:@"GitHub.Release"];
releaseChecker.delegate = self;
[releaseChecker checkRelease:self.version];
Remember to change "MarLoe" and "GitHub.Release" to your own user and project.
Sample projects for iOS, tvOS and macOS is included. They all show how to MLGitHubAsset to actually download the asset in the background and utinlize it.
The macOS example project even shows how to show progress and bounce the "Downloads stack" during and after download:
GitHub.Release is released under the MIT License.
GitHub is a registered trademark of GitHub Inc.