feat: show patch bundle version in patch selector screen.

This commit is contained in:
Aunali321 2022-10-17 01:40:16 +05:30
parent 5b38c9442a
commit 074d8005bc
3 changed files with 36 additions and 0 deletions

View file

@ -228,6 +228,13 @@ class ManagerAPI {
);
}
Future<String?> getLatestPatchesVersion() async {
return await _revancedAPI.getLatestReleaseVersion(
'.json',
defaultPatchesRepo,
);
}
Future<String> getCurrentManagerVersion() async {
PackageInfo packageInfo = await PackageInfo.fromPlatform();
return packageInfo.version;