feat: Show changelogs from the latest to the last used patches version (#2219)

This commit is contained in:
aAbed
2024-10-21 16:02:23 +05:45
committed by GitHub
parent bd96701103
commit daba737ecb
7 changed files with 54 additions and 23 deletions

View File

@ -478,14 +478,8 @@ class HomeViewModel extends BaseViewModel {
);
}
Future<String?> getManagerChangelogs() {
return _githubAPI.getManagerChangelogs();
}
Future<String?> getLatestPatchesChangelog() async {
final release =
await _githubAPI.getLatestRelease(_managerAPI.getPatchesRepo());
return release?['body'];
Future<String?> getChangelogs(bool isPatches) {
return _githubAPI.getChangelogs(isPatches);
}
Future<String?> getLatestPatchesReleaseTime() {