Commit acd2a290d9

acd2a290d9487d3a3045682aae9327e8193bdad2

parent: 8d5cd9e707

Unsigned

cmc <hello@cleberg.net> · 2026-03-25 02:02 UTC

chore: rename unused context params to _ in NeedsAttentionTimelineProvider

Layout: unified · split

Hutch.xcodeproj/project.pbxproj +18 −18
@@ -30,6 +30,20 @@
3030 };
3131/* End PBXContainerItemProxy section */
3232
33/* Begin PBXCopyFilesBuildPhase section */
34 8BE081FA2F80000100000001 /* Embed App Extensions */ = {
35 isa = PBXCopyFilesBuildPhase;
36 buildActionMask = 2147483647;
37 dstPath = "";
38 dstSubfolderSpec = 13;
39 files = (
40 8BE082012F80000100000001 /* HutchWidgetExtension.appex in Embed App Extensions */,
41 );
42 name = "Embed App Extensions";
43 runOnlyForDeploymentPostprocessing = 0;
44 };
45/* End PBXCopyFilesBuildPhase section */
46
3347/* Begin PBXFileReference section */
3448 8B2F89632F69DEB900FC0253 /* LICENSE */ = {isa = PBXFileReference; lastKnownFileType = text; path = LICENSE; sourceTree = "<group>"; };
3549 8B2F89642F69DEB900FC0253 /* README.md */ = {isa = PBXFileReference; lastKnownFileType = net.daringfireball.markdown; path = README.md; sourceTree = "<group>"; };
@@ -87,20 +101,6 @@
87101 };
88102/* End PBXFileSystemSynchronizedRootGroup section */
89103
90/* Begin PBXCopyFilesBuildPhase section */
91 8BE081FA2F80000100000001 /* Embed App Extensions */ = {
92 isa = PBXCopyFilesBuildPhase;
93 buildActionMask = 2147483647;
94 dstPath = "";
95 dstSubfolderSpec = 13;
96 files = (
97 8BE082012F80000100000001 /* HutchWidgetExtension.appex in Embed App Extensions */,
98 );
99 name = "Embed App Extensions";
100 runOnlyForDeploymentPostprocessing = 0;
101 };
102/* End PBXCopyFilesBuildPhase section */
103
104104/* Begin PBXFrameworksBuildPhase section */
105105 8B4B28CE2F6704280045FA19 /* Frameworks */ = {
106106 isa = PBXFrameworksBuildPhase;
@@ -459,7 +459,7 @@
459459 ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor;
460460 CODE_SIGN_ENTITLEMENTS = Hutch/Hutch.entitlements;
461461 CODE_SIGN_STYLE = Automatic;
462 CURRENT_PROJECT_VERSION = 10;
462 CURRENT_PROJECT_VERSION = 11;
463463 DEVELOPMENT_TEAM = ZCNAX3VL9D;
464464 ENABLE_PREVIEWS = YES;
465465 GENERATE_INFOPLIST_FILE = YES;
@@ -476,7 +476,7 @@
476476 "$(inherited)",
477477 "@executable_path/Frameworks",
478478 );
479 MARKETING_VERSION = 2.4.0;
479 MARKETING_VERSION = 2.4.1;
480480 PRODUCT_BUNDLE_IDENTIFIER = net.cleberg.Hutch;
481481 PRODUCT_NAME = "$(TARGET_NAME)";
482482 STRING_CATALOG_GENERATE_SYMBOLS = YES;
@@ -496,7 +496,7 @@
496496 ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor;
497497 CODE_SIGN_ENTITLEMENTS = Hutch/Hutch.entitlements;
498498 CODE_SIGN_STYLE = Automatic;
499 CURRENT_PROJECT_VERSION = 10;
499 CURRENT_PROJECT_VERSION = 11;
500500 DEVELOPMENT_TEAM = ZCNAX3VL9D;
501501 ENABLE_PREVIEWS = YES;
502502 GENERATE_INFOPLIST_FILE = YES;
@@ -513,7 +513,7 @@
513513 "$(inherited)",
514514 "@executable_path/Frameworks",
515515 );
516 MARKETING_VERSION = 2.4.0;
516 MARKETING_VERSION = 2.4.1;
517517 PRODUCT_BUNDLE_IDENTIFIER = net.cleberg.Hutch;
518518 PRODUCT_NAME = "$(TARGET_NAME)";
519519 STRING_CATALOG_GENERATE_SYMBOLS = YES;
HutchWidgetExtension/NeedsAttentionWidget.swift +3 −3
@@ -7,7 +7,7 @@ struct NeedsAttentionEntry: TimelineEntry {
77}
88
99struct NeedsAttentionTimelineProvider: TimelineProvider {
10 func placeholder(in context: Context) -> NeedsAttentionEntry {
10 func placeholder(in _: Context) -> NeedsAttentionEntry {
1111 NeedsAttentionEntry(
1212 date: .now,
1313 snapshot: NeedsAttentionSnapshot(
@@ -19,7 +19,7 @@ struct NeedsAttentionTimelineProvider: TimelineProvider {
1919 )
2020 }
2121
22 func getSnapshot(in context: Context, completion: @escaping (NeedsAttentionEntry) -> Void) {
22 func getSnapshot(in _: Context, completion: @escaping (NeedsAttentionEntry) -> Void) {
2323 completion(
2424 NeedsAttentionEntry(
2525 date: .now,
@@ -28,7 +28,7 @@ struct NeedsAttentionTimelineProvider: TimelineProvider {
2828 )
2929 }
3030
31 func getTimeline(in context: Context, completion: @escaping (Timeline<NeedsAttentionEntry>) -> Void) {
31 func getTimeline(in _: Context, completion: @escaping (Timeline<NeedsAttentionEntry>) -> Void) {
3232 let refreshDate = Calendar.current.date(byAdding: .minute, value: 20, to: .now) ?? .now.addingTimeInterval(1200)
3333 let entry = NeedsAttentionEntry(date: .now, snapshot: NeedsAttentionSnapshotStore.load())
3434 completion(Timeline(entries: [entry], policy: .after(refreshDate)))