mirror of
https://github.com/revanced/revanced-manager
synced 2024-05-14 13:56:57 +02:00
18 lines
452 B
Dart
18 lines
452 B
Dart
import 'package:github/github.dart';
|
|
|
|
class GithubAPI {
|
|
var github = GitHub();
|
|
|
|
Future latestRelease(String org, repoName) async {
|
|
var latestRelease = await github.repositories
|
|
.getLatestRelease(RepositorySlug(org, repoName));
|
|
var dlurl = latestRelease.assets?.first.browserDownloadUrl;
|
|
print(dlurl);
|
|
return latestRelease;
|
|
}
|
|
}
|
|
|
|
void main(List<String> args) {
|
|
GithubAPI().latestRelease('revanced', 'revanced-patches');
|
|
}
|