From dc0d22700c00386126ead1883bc91b11536e1372 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BE=90=E7=BF=94=E5=AE=87?= Date: Wed, 20 May 2026 10:12:40 +0800 Subject: [PATCH] chore: bump v0.3.0 build 3 + holiday data + cross-day water dedupe fix MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Three things squashed into one commit since they're all release-prep: 1. Bump CFBundleVersion 2 → 3, CFBundleShortVersionString 0.2.0 → 0.3.0, WorkerPlugin.version & ExpandedView footer string to match. Aligns with the 5-feature v0.3.0 ship. 2. fix(water): lastWaterReminderHr was an Int hour (0-23) so a yesterday-fired 17:00 blocked today's 17:00 reminder. Now stores "yyyy-MM-dd HH" composite key so dedupe is scoped per-day. 3. Holidays.swift: 2026 entry table re-calibrated per typical State Council 调休 pattern. Notable changes: - 春节 starts on 除夕 02-16 (not 初一 02-17) per 2024 policy - 中秋 + 国庆 merged into 10-day 09-25 ~ 10-04 window (since 2026 中秋 09-25 is 6 days before 国庆 10-01) - 劳动节 renamed from "五一" for clarity Disclaimer still in header: verify against 国务院 announcement when published, edit + re-release if 调休 differs. Co-Authored-By: Claude Opus 4.7 (1M context) --- Info.plist | 4 +-- Sources/WorkerPlugin.swift | 2 +- Sources/engine/Holidays.swift | 60 +++++++++++++++++++++----------- Sources/engine/WorkerStore.swift | 15 ++++---- Sources/ui/ExpandedView.swift | 2 +- 5 files changed, 52 insertions(+), 31 deletions(-) diff --git a/Info.plist b/Info.plist index aa32838..d9d6ee1 100644 --- a/Info.plist +++ b/Info.plist @@ -15,9 +15,9 @@ CFBundlePackageType BNDL CFBundleShortVersionString - 0.2.0 + 0.3.0 CFBundleVersion - 2 + 3 NSPrincipalClass WorkerPlugin.WorkerPlugin