Files
pipelines/app/lib/features/updates/app_updates_stub.dart
T

19 lines
510 B
Dart

import 'app_updates.dart';
bool get supported => false;
Future<int?> installedVersionCode() async => null;
Future<AppUpdate> fetchLatest(Uri base) async =>
throw StateError('Updates are installed from a phone.');
Future<void> downloadAndInstall(
AppUpdate update, {
void Function(double progress)? onProgress,
}) async => throw StateError('Updates are installed from a phone.');
Future<AppUpdate> fetchLatestScoped(
Uri base,
Map<String, String> Function(Uri) headers,
) => fetchLatest(base);