fix: comments were kinda ass
This commit is contained in:
@@ -1,2 +1,2 @@
|
||||
const kUpdateServerUrl = 'https://updater.brammie15.dev';
|
||||
const kExportServerUrl = 'https://your-server.com/api/backup';
|
||||
const kExportServerUrl = 'https://kooltab.brammie15.dev/api/backup';
|
||||
@@ -54,14 +54,12 @@ class AppUpdateUtil {
|
||||
|
||||
AppUpdateUtil({required this.serverUrl});
|
||||
|
||||
/// Gets the installed app version
|
||||
Future<String> currentVersion() async {
|
||||
final info = await PackageInfo.fromPlatform();
|
||||
debugPrint("Current app version: ${info.version}");
|
||||
return info.version;
|
||||
}
|
||||
|
||||
/// Checks the update server
|
||||
Future<UpdateInfo?> checkForUpdate() async {
|
||||
final version = await currentVersion();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user