mirror of
https://github.com/ReVanced/revanced-manager.git
synced 2025-05-12 21:45:38 +02:00
feat: almost finished homescreen (hardcoded).
This commit is contained in:
parent
6cbc122714
commit
c3982326e4
14 changed files with 376 additions and 39 deletions
17
lib/backend/api/github_api.dart
Normal file
17
lib/backend/api/github_api.dart
Normal file
|
@ -0,0 +1,17 @@
|
|||
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');
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue