mirror of
https://github.com/ReVanced/revanced-manager.git
synced 2026-01-30 14:21:07 +00:00
feat: working resource patching
This commit is contained in:
@@ -6,30 +6,28 @@ import 'package:revanced_manager/services/github_api.dart';
|
||||
class ManagerAPI {
|
||||
final GithubAPI _githubAPI = GithubAPI();
|
||||
|
||||
Future<File?> downloadPatches() async {
|
||||
return await _githubAPI.latestReleaseFile(ghOrg, patchesRepo);
|
||||
Future<File?> downloadPatches(String extension) async {
|
||||
return await _githubAPI.latestReleaseFile(extension, ghOrg, patchesRepo);
|
||||
}
|
||||
|
||||
Future<File?> downloadIntegrations() async {
|
||||
return await _githubAPI.latestReleaseFile(ghOrg, integrationsRepo);
|
||||
}
|
||||
|
||||
Future<File?> downloadManager() async {
|
||||
Future<File?> downloadIntegrations(String extension) async {
|
||||
return await _githubAPI.latestReleaseFile(
|
||||
'Aunali321',
|
||||
'revanced-manager-flutter',
|
||||
extension,
|
||||
ghOrg,
|
||||
integrationsRepo,
|
||||
);
|
||||
}
|
||||
|
||||
Future<File?> downloadManager(String extension) async {
|
||||
return await _githubAPI.latestReleaseFile(extension, ghOrg, managerRepo);
|
||||
}
|
||||
|
||||
Future<String?> getLatestPatchesVersion() async {
|
||||
return await _githubAPI.latestReleaseVersion(ghOrg, patchesRepo);
|
||||
}
|
||||
|
||||
Future<String?> getLatestManagerVersion() async {
|
||||
return await _githubAPI.latestReleaseVersion(
|
||||
'Aunali321',
|
||||
'revanced-manager-flutter',
|
||||
);
|
||||
return await _githubAPI.latestReleaseVersion(ghOrg, managerRepo);
|
||||
}
|
||||
|
||||
Future<String> getCurrentManagerVersion() async {
|
||||
|
||||
Reference in New Issue
Block a user