feat: Use ReVanced API v4

This commit is contained in:
oSumAtrIX
2024-11-09 01:39:31 +01:00
parent 44b8d4ceee
commit 7b7d91d661
6 changed files with 58 additions and 58 deletions

View File

@ -51,7 +51,7 @@ class RevancedAPI {
}
return getToolsLock.synchronized(() async {
try {
final response = await _dio.get('/$toolName/latest');
final response = await _dio.get('/$toolName');
return response.data;
} on Exception catch (e) {
if (kDebugMode) {
@ -89,7 +89,7 @@ class RevancedAPI {
toolName,
);
if (release != null) {
final String url = release['assets'][0]['download_url'];
final String url = release['download_url'];
return await _downloadManager.getSingleFile(url);
}
} on Exception catch (e) {