mirror of
https://github.com/revanced/revanced-manager.git
synced 2025-04-30 05:54:26 +02:00
20 lines
534 B
Dart
20 lines
534 B
Dart
import 'dart:io';
|
|
import 'package:revanced_manager/constants.dart';
|
|
import 'package:revanced_manager/services/github_api.dart';
|
|
|
|
class ManagerAPI {
|
|
final GithubAPI _githubAPI = GithubAPI();
|
|
|
|
Future<File?> downloadPatches() async {
|
|
return await _githubAPI.latestRelease(ghOrg, patchesRepo);
|
|
}
|
|
|
|
Future<File?> downloadIntegrations() async {
|
|
return await _githubAPI.latestRelease(ghOrg, integrationsRepo);
|
|
}
|
|
|
|
Future<File?> downloadManager() async {
|
|
return await _githubAPI.latestRelease(ghOrg, managerRepo);
|
|
}
|
|
}
|