checkForUpdates static method

Future<void> checkForUpdates()

Check for updates and print message if available This is non-blocking and fails silently

Implementation

static Future<void> checkForUpdates() async {
  try {
    // Check if we should check (once per day)
    if (!_shouldCheck()) {
      return;
    }

    // Fetch latest version from GitHub
    final latestVersion = await _fetchLatestVersion();
    if (latestVersion == null) {
      return;
    }

    // Save the check result
    await _saveCheckResult(latestVersion);

    // Compare versions
    if (_isNewerVersion(latestVersion, ULinkVersion.version)) {
      _printUpdateMessage(latestVersion);
    }
  } catch (e) {
    // Fail silently - don't interrupt user's workflow
  }
}