2022-08-01 21:05:11 +02:00
|
|
|
import 'dart:io';
|
2022-08-06 23:35:35 +02:00
|
|
|
import 'package:revanced_manager/constants.dart';
|
2022-08-09 01:01:06 +02:00
|
|
|
import 'package:revanced_manager/services/github_api.dart';
|
2022-07-31 21:46:27 +02:00
|
|
|
|
2022-08-02 10:06:35 +02:00
|
|
|
class ManagerAPI {
|
2022-08-18 16:33:33 +02:00
|
|
|
final GithubAPI _githubAPI = GithubAPI();
|
2022-08-02 10:06:35 +02:00
|
|
|
|
2022-08-18 16:33:33 +02:00
|
|
|
Future<File?> downloadPatches() async {
|
|
|
|
return await _githubAPI.latestRelease(ghOrg, patchesRepo);
|
2022-08-02 10:06:35 +02:00
|
|
|
}
|
|
|
|
|
2022-08-18 16:33:33 +02:00
|
|
|
Future<File?> downloadIntegrations() async {
|
|
|
|
return await _githubAPI.latestRelease(ghOrg, integrationsRepo);
|
2022-08-02 10:06:35 +02:00
|
|
|
}
|
|
|
|
|
2022-08-18 16:33:33 +02:00
|
|
|
Future<File?> downloadManager() async {
|
|
|
|
return await _githubAPI.latestRelease(ghOrg, managerRepo);
|
2022-08-02 09:55:01 +02:00
|
|
|
}
|
2022-08-01 21:05:11 +02:00
|
|
|
}
|