mirror of
https://github.com/kuhyx/diet-guard.git
synced 2026-11-26 09:07:26 +01:00
Compare commits
4 Commits
c02d9b2ea4
...
9663738843
| Author | SHA1 | Date | |
|---|---|---|---|
| 9663738843 | |||
| 0fbedaeecf | |||
| 1c2fb2e451 | |||
| 098ed29ec7 |
@ -166,11 +166,11 @@ packages:
|
||||
dependency: "direct main"
|
||||
description:
|
||||
path: crdt_sync_flutter
|
||||
ref: "crdt_sync_flutter-v0.8.2"
|
||||
resolved-ref: "1962d303336dfe260850466b8ee841033b9ad1ce"
|
||||
ref: "crdt_sync_flutter-v0.8.3"
|
||||
resolved-ref: "6e3f86ef0d73ba45db975bf03915fecce8a60f98"
|
||||
url: "https://github.com/kuhyx/utils"
|
||||
source: git
|
||||
version: "0.8.2"
|
||||
version: "0.8.3"
|
||||
cross_file:
|
||||
dependency: transitive
|
||||
description:
|
||||
@ -524,11 +524,11 @@ packages:
|
||||
dependency: "direct main"
|
||||
description:
|
||||
path: github_device_auth
|
||||
ref: "github_device_auth-v0.5.0"
|
||||
resolved-ref: "0ef5461805e8f574de5174c940775e5245d675b3"
|
||||
ref: "github_device_auth-v0.5.1"
|
||||
resolved-ref: da1d7c0692e2e402ae4944f2425b36a55ad43e9c
|
||||
url: "https://github.com/kuhyx/utils"
|
||||
source: git
|
||||
version: "0.5.0"
|
||||
version: "0.5.1"
|
||||
google_account_token:
|
||||
dependency: "direct main"
|
||||
description:
|
||||
@ -742,10 +742,10 @@ packages:
|
||||
dependency: "direct main"
|
||||
description:
|
||||
name: material_ui
|
||||
sha256: "474c135fd46b56ff1d35ca982155e8863d28fbc6464d1192acf4ee53a738680e"
|
||||
sha256: a6b19012df437a356cbc01f8ea22a105e07194c47c9a6009da0032a0ce35c4ab
|
||||
url: "https://pub.dev"
|
||||
source: hosted
|
||||
version: "1.11.0"
|
||||
version: "1.11.1"
|
||||
meta:
|
||||
dependency: transitive
|
||||
description:
|
||||
@ -1051,11 +1051,11 @@ packages:
|
||||
dependency: "direct main"
|
||||
description:
|
||||
path: sync_settings_ui
|
||||
ref: "sync_settings_ui-v0.8.2"
|
||||
resolved-ref: "3225af8365481677d61a8cabec0c0ad4d0407567"
|
||||
ref: "sync_settings_ui-v0.8.3"
|
||||
resolved-ref: dde5566b2c6eb38a8e1e58a4252925f3baca8ad1
|
||||
url: "https://github.com/kuhyx/utils"
|
||||
source: git
|
||||
version: "0.8.2"
|
||||
version: "0.8.3"
|
||||
synchronized:
|
||||
dependency: transitive
|
||||
description:
|
||||
|
||||
@ -2,7 +2,7 @@ name: diet_guard_app
|
||||
description: "Companion phone app for diet_guard: log meals on the go."
|
||||
publish_to: 'none'
|
||||
|
||||
version: 1.0.173+1
|
||||
version: 1.0.177+1
|
||||
|
||||
environment:
|
||||
sdk: ^3.12.2
|
||||
@ -18,7 +18,7 @@ dependencies:
|
||||
crdt_sync_flutter:
|
||||
git:
|
||||
url: https://github.com/kuhyx/utils
|
||||
ref: crdt_sync_flutter-v0.8.2
|
||||
ref: crdt_sync_flutter-v0.8.3
|
||||
path: crdt_sync_flutter
|
||||
crypto: 3.0.8
|
||||
cryptography: 2.9.0
|
||||
@ -40,7 +40,7 @@ dependencies:
|
||||
github_device_auth:
|
||||
git:
|
||||
url: https://github.com/kuhyx/utils
|
||||
ref: github_device_auth-v0.5.0
|
||||
ref: github_device_auth-v0.5.1
|
||||
path: github_device_auth
|
||||
# One-tap Google ID token via the framework AccountManager chooser (FOSS).
|
||||
google_account_token:
|
||||
@ -53,7 +53,7 @@ dependencies:
|
||||
idb_shim: 2.11.3
|
||||
# Camera/gallery photo as transient input to Claude (never stored or synced).
|
||||
image_picker: 1.2.4
|
||||
material_ui: 1.11.0
|
||||
material_ui: 1.11.1
|
||||
path: 1.9.1
|
||||
path_provider: 2.1.6
|
||||
permission_handler: 13.0.2
|
||||
@ -66,7 +66,7 @@ dependencies:
|
||||
sync_settings_ui:
|
||||
git:
|
||||
url: https://github.com/kuhyx/utils
|
||||
ref: sync_settings_ui-v0.8.2
|
||||
ref: sync_settings_ui-v0.8.3
|
||||
path: sync_settings_ui
|
||||
url_launcher: 6.3.3
|
||||
uuid: 4.6.0
|
||||
|
||||
@ -115,13 +115,10 @@ void main() {
|
||||
});
|
||||
|
||||
test('uses the real clock when now is omitted', () async {
|
||||
// Just exercises the `now ?? DateTime.now()` branch without asserting
|
||||
// on specific slots (which depend on the actual time the test runs).
|
||||
await checkAndNotify();
|
||||
expect(
|
||||
notificationLog.where((c) => c.method == 'show' || c.method == 'cancel'),
|
||||
isNotEmpty,
|
||||
);
|
||||
// Just exercises the `now ?? DateTime.now()` branch. Whether anything is
|
||||
// shown or cancelled depends on the wall clock (nothing is due after the
|
||||
// last slot's cutoff), so only completion is asserted.
|
||||
await expectLater(checkAndNotify(), completes);
|
||||
});
|
||||
|
||||
test('still syncs when nothing is due', () async {
|
||||
|
||||
@ -9,8 +9,3 @@ exceptions:
|
||||
reason: local toolchain /opt/flutter is 3.47.9; fleet-wide Flutter 3.50 bump is separate work
|
||||
blocked_by: local-toolchain
|
||||
expires: "2026-11-26"
|
||||
- ecosystem: pub
|
||||
package: material_ui
|
||||
pinned: "1.11.0"
|
||||
reason: sync_settings_ui 0.8.2 (git dependency from kuhyx/utils) pins material_ui 1.11.0 exactly, so 1.11.1 cannot resolve until utils releases a sync_settings_ui that takes it
|
||||
blocked_by: transitive:sync_settings_ui@0.8.2
|
||||
|
||||
@ -156,6 +156,13 @@ class TestAutologBeforeLock:
|
||||
assert autolog_due_delivery([].append) == 0
|
||||
fetch.assert_not_called()
|
||||
|
||||
def test_nothing_new_to_log_stays_silent(self) -> None:
|
||||
"""Dishes already logged: zero written, no report line."""
|
||||
self._go((DISHES, None))
|
||||
lines = self._go((DISHES, None))
|
||||
assert self.written == 0
|
||||
assert lines == []
|
||||
|
||||
def test_logging_error_is_swallowed(self) -> None:
|
||||
"""Even a disk error falls back to the lock instead of crashing the gate."""
|
||||
lines: list[str] = []
|
||||
|
||||
Loading…
Reference in New Issue
Block a user