mirror of
https://github.com/kuhyx/diet-guard.git
synced 2026-11-26 18:07:21 +01:00
Bring the Flutter app's dependencies up to latest stable
Some checks are pending
dependency freshness / dependencies on newest stable (push) Waiting to run
file-length / file length <= 250 lines (push) Waiting to run
md-naming / markdown naming convention (push) Waiting to run
pre-commit / pre-commit (push) Waiting to run
Tests / test (push) Waiting to run
release-apk / release (APK) (push) Waiting to run
Some checks are pending
dependency freshness / dependencies on newest stable (push) Waiting to run
file-length / file length <= 250 lines (push) Waiting to run
md-naming / markdown naming convention (push) Waiting to run
pre-commit / pre-commit (push) Waiting to run
Tests / test (push) Waiting to run
release-apk / release (APK) (push) Waiting to run
Split out from the free-day change only by sequence -- diet-guard's pre-push CI mirror runs the freshness gate over --all-files, so these were already blocking a push before that work started. permission_handler 13.0.1 -> 13.0.2 and workmanager 0.10.9 -> 0.10.10 are patch bumps. very_good_analysis ^10.3.0 -> ^11.0.0 is the major one, and it newly flags 8 async_return_with_no_await sites across the desktop wrapper and the sync/Firebase services. Each is now `return await`, not a suppression. The rule is right in every one of these cases: without the await the future escapes the enclosing async function, so a rejection surfaces at the caller with a stack trace that no longer points at the code that made the call. background_check_service.dart:33 is the clearest example -- its own comment says the push "is retried with backoff rather than silently dropped", which is only true if the failure happens inside the function. Nothing in CI or pre-commit runs `flutter analyze`, so this would not have failed anything. Leaving a newly-red analyzer for the next person to find is how a repo stops being analyzable at all. flutter analyze clean, 706 Flutter tests pass. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
parent
b77145010c
commit
77468b1efd
@ -104,16 +104,16 @@ class WrapperServer {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (path.startsWith(WrapperPaths.documents)) {
|
if (path.startsWith(WrapperPaths.documents)) {
|
||||||
return _storedFile(
|
return await _storedFile(
|
||||||
request,
|
request,
|
||||||
'documents',
|
'documents',
|
||||||
path.substring(WrapperPaths.documents.length),
|
path.substring(WrapperPaths.documents.length),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
if (path == kSyncAccountPath) {
|
if (path == kSyncAccountPath) {
|
||||||
return _syncAccount(request);
|
return await _syncAccount(request);
|
||||||
}
|
}
|
||||||
return _static(request, path);
|
return await _static(request, path);
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Serves the shared sync account so a desktop install can self-provision.
|
/// Serves the shared sync account so a desktop install can self-provision.
|
||||||
|
|||||||
@ -30,7 +30,7 @@ void backgroundCheckCallbackDispatcher() {
|
|||||||
if (taskName == syncPushTaskName) {
|
if (taskName == syncPushTaskName) {
|
||||||
// Return the push's own success flag so a still-offline / failed push
|
// Return the push's own success flag so a still-offline / failed push
|
||||||
// is retried with backoff rather than silently dropped.
|
// is retried with backoff rather than silently dropped.
|
||||||
return backgroundSyncPush();
|
return await backgroundSyncPush();
|
||||||
}
|
}
|
||||||
if (taskName == backgroundCheckTaskName) {
|
if (taskName == backgroundCheckTaskName) {
|
||||||
await checkAndNotify();
|
await checkAndNotify();
|
||||||
|
|||||||
@ -53,7 +53,7 @@ class IndexedDbDocumentStore implements DocumentStore {
|
|||||||
if (value is String) return value;
|
if (value is String) return value;
|
||||||
// Empty IndexedDB: either a first run or a cleared profile. Recover from
|
// Empty IndexedDB: either a first run or a cleared profile. Recover from
|
||||||
// the wrapper's disk copy rather than silently starting from nothing.
|
// the wrapper's disk copy rather than silently starting from nothing.
|
||||||
return _readMirror(name);
|
return await _readMirror(name);
|
||||||
}
|
}
|
||||||
|
|
||||||
@override
|
@override
|
||||||
|
|||||||
@ -26,7 +26,7 @@ Future<FirebaseRestClient?> openFirebase() async {
|
|||||||
// turned one missing write into "syncs over GitHub and 401s forever":
|
// turned one missing write into "syncs over GitHub and 401s forever":
|
||||||
// the credential that actually authenticates was sitting in the keystore
|
// the credential that actually authenticates was sitting in the keystore
|
||||||
// the whole time, unused. Ask the store directly before giving up.
|
// the whole time, unused. Ask the store directly before giving up.
|
||||||
return _clientFromStoredSession();
|
return await _clientFromStoredSession();
|
||||||
}
|
}
|
||||||
try {
|
try {
|
||||||
return await firebaseClientFor(
|
return await firebaseClientFor(
|
||||||
|
|||||||
@ -75,7 +75,7 @@ Future<String?> googleIdToken({
|
|||||||
Future<String?> Function()? signInFn,
|
Future<String?> Function()? signInFn,
|
||||||
String serverClientId = kServerClientId,
|
String serverClientId = kServerClientId,
|
||||||
}) async {
|
}) async {
|
||||||
if (signInFn != null) return signInFn();
|
if (signInFn != null) return await signInFn();
|
||||||
if (serverClientId.isEmpty) {
|
if (serverClientId.isEmpty) {
|
||||||
// A build without --dart-define=GOOGLE_SERVER_CLIENT_ID would otherwise
|
// A build without --dart-define=GOOGLE_SERVER_CLIENT_ID would otherwise
|
||||||
// fail inside the plugin with a far less obvious message.
|
// fail inside the plugin with a far less obvious message.
|
||||||
|
|||||||
@ -23,5 +23,5 @@ class _PrefsPersistence implements LogPersistence {
|
|||||||
|
|
||||||
@override
|
@override
|
||||||
Future<void> write(String text) async =>
|
Future<void> write(String text) async =>
|
||||||
_prefs.setString(kSyncStateKey, text);
|
await _prefs.setString(kSyncStateKey, text);
|
||||||
}
|
}
|
||||||
|
|||||||
@ -510,18 +510,18 @@ packages:
|
|||||||
dependency: "direct main"
|
dependency: "direct main"
|
||||||
description:
|
description:
|
||||||
name: permission_handler
|
name: permission_handler
|
||||||
sha256: e7317eb2eb611d1bf0386b6b974be9c50449f975f19a90a7b8ea013550302b30
|
sha256: e6bcecadfe40df6b888141f23cbaf6ba6c3da49fb33f6ff887d060dd48544fbd
|
||||||
url: "https://pub.dev"
|
url: "https://pub.dev"
|
||||||
source: hosted
|
source: hosted
|
||||||
version: "13.0.1"
|
version: "13.0.2"
|
||||||
permission_handler_android:
|
permission_handler_android:
|
||||||
dependency: transitive
|
dependency: transitive
|
||||||
description:
|
description:
|
||||||
name: permission_handler_android
|
name: permission_handler_android
|
||||||
sha256: d7676c6fcf2f0b92537ec41476a6ead45a00b0d8bbb852395a6f9f33f49d6242
|
sha256: b1ce660f4d0dcaffdf2605a19544c129fb5adda4e6fd039992ae356c4e437039
|
||||||
url: "https://pub.dev"
|
url: "https://pub.dev"
|
||||||
source: hosted
|
source: hosted
|
||||||
version: "14.0.0"
|
version: "14.1.0"
|
||||||
permission_handler_apple:
|
permission_handler_apple:
|
||||||
dependency: transitive
|
dependency: transitive
|
||||||
description:
|
description:
|
||||||
@ -836,10 +836,10 @@ packages:
|
|||||||
dependency: "direct dev"
|
dependency: "direct dev"
|
||||||
description:
|
description:
|
||||||
name: very_good_analysis
|
name: very_good_analysis
|
||||||
sha256: "481af67ab5877af20325251dc215a4ebac7666a1c8cf09198ffd457bc612b33d"
|
sha256: "0bd5eb8d6be76aa0d71e70cbdae6cac8f784f761170568e3c2214a6948c7f6d3"
|
||||||
url: "https://pub.dev"
|
url: "https://pub.dev"
|
||||||
source: hosted
|
source: hosted
|
||||||
version: "10.3.0"
|
version: "11.0.0"
|
||||||
vm_service:
|
vm_service:
|
||||||
dependency: transitive
|
dependency: transitive
|
||||||
description:
|
description:
|
||||||
@ -868,26 +868,26 @@ packages:
|
|||||||
dependency: "direct main"
|
dependency: "direct main"
|
||||||
description:
|
description:
|
||||||
name: workmanager
|
name: workmanager
|
||||||
sha256: c2c7a3eb984cfcf5623308042fc8270e7e02f5021b34f491ffc0a1ec8e281d5c
|
sha256: "96b09a4a852ec487d29371f27031dab80ce2e260911e2dbe0f904951e22a3956"
|
||||||
url: "https://pub.dev"
|
url: "https://pub.dev"
|
||||||
source: hosted
|
source: hosted
|
||||||
version: "0.10.9"
|
version: "0.10.10"
|
||||||
workmanager_android:
|
workmanager_android:
|
||||||
dependency: transitive
|
dependency: transitive
|
||||||
description:
|
description:
|
||||||
name: workmanager_android
|
name: workmanager_android
|
||||||
sha256: "187d1d34864f57f9e388b33b88c001c494093c53679831a3dec2e8176e8829d1"
|
sha256: ffe8aa061885370c9363f7ae2d2196d31855217c58e7b15899d915d36c768c4a
|
||||||
url: "https://pub.dev"
|
url: "https://pub.dev"
|
||||||
source: hosted
|
source: hosted
|
||||||
version: "0.10.8"
|
version: "0.10.9"
|
||||||
workmanager_apple:
|
workmanager_apple:
|
||||||
dependency: transitive
|
dependency: transitive
|
||||||
description:
|
description:
|
||||||
name: workmanager_apple
|
name: workmanager_apple
|
||||||
sha256: "15558fb54415a010910c3529eaf8f61f94d23903dac620331895c472602d6f6e"
|
sha256: "9e0ca0b857df986b37ca964ffa3b21990e1bc0f7935356a9706b47e5b71a7524"
|
||||||
url: "https://pub.dev"
|
url: "https://pub.dev"
|
||||||
source: hosted
|
source: hosted
|
||||||
version: "0.9.10"
|
version: "0.9.11"
|
||||||
workmanager_linux:
|
workmanager_linux:
|
||||||
dependency: transitive
|
dependency: transitive
|
||||||
description:
|
description:
|
||||||
@ -900,10 +900,10 @@ packages:
|
|||||||
dependency: transitive
|
dependency: transitive
|
||||||
description:
|
description:
|
||||||
name: workmanager_platform_interface
|
name: workmanager_platform_interface
|
||||||
sha256: "378b392db15ee88cd878ab983d3a0b4b1e460cfbb0f096ff74fda2614b1ba172"
|
sha256: a1022dca1284d64ba8bbe046edc9089cc5158b3d0e2cf9f68c7cde2fbf89746c
|
||||||
url: "https://pub.dev"
|
url: "https://pub.dev"
|
||||||
source: hosted
|
source: hosted
|
||||||
version: "0.10.4"
|
version: "0.10.5"
|
||||||
workmanager_web:
|
workmanager_web:
|
||||||
dependency: transitive
|
dependency: transitive
|
||||||
description:
|
description:
|
||||||
@ -937,5 +937,5 @@ packages:
|
|||||||
source: hosted
|
source: hosted
|
||||||
version: "3.1.3"
|
version: "3.1.3"
|
||||||
sdks:
|
sdks:
|
||||||
dart: ">=3.12.2 <4.0.0"
|
dart: ">=3.13.0 <4.0.0"
|
||||||
flutter: ">=3.44.0"
|
flutter: ">=3.44.0"
|
||||||
|
|||||||
@ -2,7 +2,7 @@ name: diet_guard_app
|
|||||||
description: "Companion phone app for diet_guard: log meals on the go."
|
description: "Companion phone app for diet_guard: log meals on the go."
|
||||||
publish_to: 'none'
|
publish_to: 'none'
|
||||||
|
|
||||||
version: 1.0.77+1
|
version: 1.0.78+1
|
||||||
|
|
||||||
environment:
|
environment:
|
||||||
sdk: ^3.12.2
|
sdk: ^3.12.2
|
||||||
@ -31,7 +31,7 @@ dependencies:
|
|||||||
idb_shim: 2.9.8
|
idb_shim: 2.9.8
|
||||||
path: 1.9.1
|
path: 1.9.1
|
||||||
path_provider: 2.1.6
|
path_provider: 2.1.6
|
||||||
permission_handler: 13.0.1
|
permission_handler: 13.0.2
|
||||||
shared_preferences: 2.5.5
|
shared_preferences: 2.5.5
|
||||||
|
|
||||||
# Shared "Sync settings" screen (Firebase + optional local backup), reused
|
# Shared "Sync settings" screen (Firebase + optional local backup), reused
|
||||||
@ -46,7 +46,7 @@ dependencies:
|
|||||||
url_launcher: 6.3.2
|
url_launcher: 6.3.2
|
||||||
uuid: 4.6.0
|
uuid: 4.6.0
|
||||||
web: 1.1.1
|
web: 1.1.1
|
||||||
workmanager: 0.10.9
|
workmanager: 0.10.10
|
||||||
|
|
||||||
dev_dependencies:
|
dev_dependencies:
|
||||||
# Generates the Android launcher icons from assets/icon/ (see
|
# Generates the Android launcher icons from assets/icon/ (see
|
||||||
@ -58,7 +58,7 @@ dev_dependencies:
|
|||||||
# freshness check cannot compare against anything.
|
# freshness check cannot compare against anything.
|
||||||
plugin_platform_interface: 2.1.8
|
plugin_platform_interface: 2.1.8
|
||||||
url_launcher_platform_interface: 2.3.2
|
url_launcher_platform_interface: 2.3.2
|
||||||
very_good_analysis: ^10.3.0
|
very_good_analysis: ^11.0.0
|
||||||
|
|
||||||
flutter:
|
flutter:
|
||||||
uses-material-design: true
|
uses-material-design: true
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user