Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions PRIVACY.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# RHOIDS Privacy Policy

Last updated: August 26, 2026
Last updated: November 2, 2026

RHOIDS is designed to work without an account, advertising, analytics, or cross-app tracking.

Expand Down Expand Up @@ -36,4 +36,4 @@ This policy may be updated when app behavior or platform requirements change. Th

## Contact

Privacy questions can be sent to [wesleyk@duck.com](mailto:wesleyk@duck.com).
Privacy questions can be sent to [weskcode@duck.com](mailto:weskcode@duck.com).
34 changes: 19 additions & 15 deletions RHOIDS.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,7 @@
B42FC6F1A51D945032110348 /* TimerOutcomeTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 7EAED3C257E6B636D76F4FD7 /* TimerOutcomeTests.swift */; };
B4804CCEEE75AFA6742655BA /* LiveActivityServiceTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5D3A22B0DF50EA61FAAA07BA /* LiveActivityServiceTests.swift */; };
B55678998AA1226C3ADC7519 /* ScreenTimeServiceTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 292895CA715257238FC02040 /* ScreenTimeServiceTests.swift */; };
B670D4525FD24069B36F0B8A /* TimerCountdownTextTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 1EA5C8CDA20CE29C27EEDD82 /* TimerCountdownTextTests.swift */; };
B6D48B80CF9F22888D81E97E /* TimerServiceTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = FA81BAA8D996BF952FE4F89C /* TimerServiceTests.swift */; };
B6DB0A4BBFF1B0AFCFC3F8DD /* WatchAppIcon.icon in Resources */ = {isa = PBXBuildFile; fileRef = 840BA11C65FAD13F6B48DA91 /* WatchAppIcon.icon */; };
B9A4EB9A458B648D90280326 /* WidgetSetupChecklist.swift in Sources */ = {isa = PBXBuildFile; fileRef = 7BFF6C2A79DCA27192A942C0 /* WidgetSetupChecklist.swift */; };
Expand Down Expand Up @@ -323,33 +324,31 @@
0AC87C1644702D79ED22A174 /* CopyFiles */ = {
isa = PBXCopyFilesBuildPhase;
buildActionMask = 2147483647;
dstPath = RepoFiles;
dstPath = RepoFiles/Sources;
dstSubfolderSpec = 7;
files = (
70A12CFA767FE5D68E011501 /* RHOIDS.storekit in CopyFiles */,
F3A1ABDA5B618F26D449FA4A /* project.yml in CopyFiles */,
46D85033591F9A14635D8A26 /* Localizable.xcstrings in CopyFiles */,
);
runOnlyForDeploymentPostprocessing = 0;
};
5063E541EE2740EEDC69E9E5 /* CopyFiles */ = {
isa = PBXCopyFilesBuildPhase;
buildActionMask = 2147483647;
dstPath = RepoFiles/Sources/RHOIDS;
dstPath = RepoFiles/RHOIDS.xcodeproj;
dstSubfolderSpec = 7;
files = (
0C6D4EB180E6245F1DE2109E /* Info.plist in CopyFiles */,
4372D96D259B63EFDAA04DC5 /* RHOIDS.entitlements in CopyFiles */,
948934A6233438F06BCA77CF /* project.pbxproj in CopyFiles */,
);
runOnlyForDeploymentPostprocessing = 0;
};
82F60B18E8CBB62377FFBE00 /* CopyFiles */ = {
isa = PBXCopyFilesBuildPhase;
buildActionMask = 2147483647;
dstPath = RepoFiles/Sources/RHOIDSWidget;
dstPath = RepoFiles;
dstSubfolderSpec = 7;
files = (
2183A18A15C5FA2D86D97148 /* Info.plist in CopyFiles */,
6211CF0251FDB4B23EC73F8A /* RHOIDSWidget.entitlements in CopyFiles */,
70A12CFA767FE5D68E011501 /* RHOIDS.storekit in CopyFiles */,
F3A1ABDA5B618F26D449FA4A /* project.yml in CopyFiles */,
);
runOnlyForDeploymentPostprocessing = 0;
};
Expand All @@ -370,30 +369,32 @@
9EB7C689D8B8FF553B949737 /* CopyFiles */ = {
isa = PBXCopyFilesBuildPhase;
buildActionMask = 2147483647;
dstPath = RepoFiles/RHOIDS.xcodeproj;
dstPath = RepoFiles/Sources/RHOIDSWidget/LiveActivity;
dstSubfolderSpec = 7;
files = (
948934A6233438F06BCA77CF /* project.pbxproj in CopyFiles */,
0B621261EC359726E2A8206C /* RHOIDSLiveActivityWidget.swift in CopyFiles */,
);
runOnlyForDeploymentPostprocessing = 0;
};
A7C9A9796908F641C96E4AE0 /* CopyFiles */ = {
isa = PBXCopyFilesBuildPhase;
buildActionMask = 2147483647;
dstPath = RepoFiles/Sources;
dstPath = RepoFiles/Sources/RHOIDS;
dstSubfolderSpec = 7;
files = (
46D85033591F9A14635D8A26 /* Localizable.xcstrings in CopyFiles */,
0C6D4EB180E6245F1DE2109E /* Info.plist in CopyFiles */,
4372D96D259B63EFDAA04DC5 /* RHOIDS.entitlements in CopyFiles */,
);
runOnlyForDeploymentPostprocessing = 0;
};
B6DB2D127531AE30E4FB664D /* CopyFiles */ = {
isa = PBXCopyFilesBuildPhase;
buildActionMask = 2147483647;
dstPath = RepoFiles/Sources/RHOIDSWidget/LiveActivity;
dstPath = RepoFiles/Sources/RHOIDSWidget;
dstSubfolderSpec = 7;
files = (
0B621261EC359726E2A8206C /* RHOIDSLiveActivityWidget.swift in CopyFiles */,
2183A18A15C5FA2D86D97148 /* Info.plist in CopyFiles */,
6211CF0251FDB4B23EC73F8A /* RHOIDSWidget.entitlements in CopyFiles */,
);
runOnlyForDeploymentPostprocessing = 0;
};
Expand Down Expand Up @@ -443,6 +444,7 @@
1D1CC8FA4FB6CA0B515FAB72 /* singing_bowl.caf */ = {isa = PBXFileReference; path = singing_bowl.caf; sourceTree = "<group>"; };
1D7945DF1F298AA0E760EAD4 /* NotificationCategoryAlignmentTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = NotificationCategoryAlignmentTests.swift; sourceTree = "<group>"; };
1DFAE2D85F9C3E1FF623D056 /* TimerViewModelShieldingTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = TimerViewModelShieldingTests.swift; sourceTree = "<group>"; };
1EA5C8CDA20CE29C27EEDD82 /* TimerCountdownTextTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = TimerCountdownTextTests.swift; sourceTree = "<group>"; };
2141890E742EADC4AC6E44D4 /* RHOIDSWidgetBundle.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = RHOIDSWidgetBundle.swift; sourceTree = "<group>"; };
229107AFF08F7780B2BC2F11 /* TimerService.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = TimerService.swift; sourceTree = "<group>"; };
22E8B9087BBD5C393FE5995A /* AppOpenTrackerTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppOpenTrackerTests.swift; sourceTree = "<group>"; };
Expand Down Expand Up @@ -927,6 +929,7 @@
87C0A8705B41A171D5EE00AA /* HomeViewModelTests.swift */,
745DCFA21FC6D02943604B75 /* OnboardingPageTests.swift */,
7A8D4847E317F0A70695617D /* OnboardingPermissionTests.swift */,
1EA5C8CDA20CE29C27EEDD82 /* TimerCountdownTextTests.swift */,
3F9204D351B554F726914FED /* TimerViewModelCompletionTests.swift */,
6382D4FAC8B002EA8DE2E276 /* TimerViewModelProgressTests.swift */,
190E945FA7A3252F82E231E8 /* TimerViewModelSessionLoggingTests.swift */,
Expand Down Expand Up @@ -1762,6 +1765,7 @@
5153539D59DAC0A0924838ED /* SoundPreferencesRoundTripTests.swift in Sources */,
BAA2360109C485175B2BF8CF /* SoundPreferencesTests.swift in Sources */,
BA1ED6606213B2E27D710B8D /* SyncedPreferencesResilienceTests.swift in Sources */,
B670D4525FD24069B36F0B8A /* TimerCountdownTextTests.swift in Sources */,
2B0C542595A1E13201A9FEBB /* TimerEventTests.swift in Sources */,
B42FC6F1A51D945032110348 /* TimerOutcomeTests.swift in Sources */,
AFC8DEF1A76B099E0D633CCF /* TimerQuipTests.swift in Sources */,
Expand Down
2 changes: 1 addition & 1 deletion SECURITY.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

## Reporting a Vulnerability

Please report suspected security or privacy issues privately to [wesleyk@duck.com](mailto:wesleyk@duck.com). Include the affected version, reproduction steps, impact, and any supporting logs or screenshots that do not expose unrelated personal data.
Please report suspected security or privacy issues privately to [weskcode@duck.com](mailto:weskcode@duck.com). Include the affected version, reproduction steps, impact, and any supporting logs or screenshots that do not expose unrelated personal data.

Do not open a public issue for an unpatched vulnerability. Please allow reasonable time to investigate and prepare a fix before public disclosure.

Expand Down
78 changes: 77 additions & 1 deletion Sources/Localizable.xcstrings
Original file line number Diff line number Diff line change
@@ -1,6 +1,83 @@
{
"sourceLanguage" : "en",
"strings" : {
"+1 min" : {
"comment" : "Notification button that adds one minute to a finished timer",
"localizations" : {
"ar" : {
"stringUnit" : {
"state" : "translated",
"value" : "+1 دقيقة"
}
},
"de" : {
"stringUnit" : {
"state" : "translated",
"value" : "+1 Min."
}
},
"es" : {
"stringUnit" : {
"state" : "translated",
"value" : "+1 min"
}
},
"fr" : {
"stringUnit" : {
"state" : "translated",
"value" : "+1 min"
}
},
"hi" : {
"stringUnit" : {
"state" : "translated",
"value" : "+1 मिनट"
}
},
"it" : {
"stringUnit" : {
"state" : "translated",
"value" : "+1 min"
}
},
"ja" : {
"stringUnit" : {
"state" : "translated",
"value" : "+1分"
}
},
"ko" : {
"stringUnit" : {
"state" : "translated",
"value" : "+1분"
}
},
"pt-BR" : {
"stringUnit" : {
"state" : "translated",
"value" : "+1 min"
}
},
"ru" : {
"stringUnit" : {
"state" : "translated",
"value" : "+1 мин"
}
},
"tr" : {
"stringUnit" : {
"state" : "translated",
"value" : "+1 dk"
}
},
"zh-Hans" : {
"stringUnit" : {
"state" : "translated",
"value" : "+1 分钟"
}
}
}
},
"%@" : {},
"%@ · %@" : {
"localizations" : {
Expand Down Expand Up @@ -5722,7 +5799,6 @@
}
},
"Dismiss" : {
"extractionState" : "stale",
"localizations" : {
"ar" : {
"stringUnit" : {
Expand Down
4 changes: 2 additions & 2 deletions Sources/RHOIDS/App/AppDelegate.swift
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,12 @@ class AppDelegate: NSObject, UIApplicationDelegate {
// Optional: action buttons on the alarm.
let snooze = UNNotificationAction(
identifier: "TIMER_SNOOZE",
title: "+1 min",
title: String(localized: "+1 min", comment: "Notification button that adds one minute to a finished timer"),
options: []
)
let dismiss = UNNotificationAction(
identifier: "TIMER_DISMISS",
title: "Dismiss",
title: String(localized: "Dismiss"),
options: [.destructive]
)
let alarmCategory = UNNotificationCategory(
Expand Down
13 changes: 8 additions & 5 deletions Sources/RHOIDS/DesignSystem/AppToast.swift
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,10 @@ private struct ToastModifier: ViewModifier {
ToastView(toast: toast)
.padding(.horizontal, AppSpacing.xxl)
.padding(edge == .top ? .top : .bottom, AppSpacing.sm)
.transition(
reduceMotion
? .opacity
: .move(edge: edge == .top ? .top : .bottom).combined(with: .opacity)
)
.transition(.asymmetric(
insertion: transition,
removal: transition.animation(AppMotion.dismissal(reduceMotion: reduceMotion))
))
// Never intercept touches on the underlying UI.
.allowsHitTesting(false)
.task(id: toast.id) {
Expand All @@ -50,6 +49,10 @@ private struct ToastModifier: ViewModifier {
}
.animation(AppMotion.reveal(reduceMotion: reduceMotion), value: toast)
}

private var transition: AnyTransition {
reduceMotion ? .opacity : .move(edge: edge == .top ? .top : .bottom).combined(with: .opacity)
}
}

private struct ToastView: View {
Expand Down
7 changes: 6 additions & 1 deletion Sources/RHOIDS/DesignSystem/PressableButtonStyle.swift
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,12 @@ struct PressableButtonStyle: ButtonStyle {
var body: some View {
configuration.label
.scaleEffect(reduceMotion || !configuration.isPressed ? 1 : pressedScale)
.animation(AppMotion.feedback(reduceMotion: reduceMotion), value: configuration.isPressed)
.animation(
configuration.isPressed
? AppMotion.pressDown(reduceMotion: reduceMotion)
: AppMotion.feedback(reduceMotion: reduceMotion),
value: configuration.isPressed
)
.contentShape(Rectangle())
}
}
Expand Down
2 changes: 1 addition & 1 deletion Sources/RHOIDS/Features/Home/PresetRow.swift
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ struct PresetRow: View {

Circle()
.fill(Color.accentColor)
.scaleEffect(isSelected ? 1 : 0.2)
.scaleEffect(isSelected || reduceMotion ? 1 : 0.5)
.opacity(isSelected ? 1 : 0)

Image(systemName: "checkmark")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ struct OnboardingWidgetPageView: View {
}
.scrollIndicators(.hidden)
.scrollBounceBehavior(.basedOnSize)
.onAppear { animateSteps() }
.task { await animateSteps() }
.onDisappear { visibleCount = 0 }
}

Expand Down Expand Up @@ -65,15 +65,17 @@ struct OnboardingWidgetPageView: View {
}
}

private func animateSteps() {
let stepDelay: Duration = reduceMotion ? .zero : .milliseconds(400)
/// Reveals the steps one after another. Runs in `.task`, so leaving the
/// page cancels any steps still waiting.
private func animateSteps() async {
let stepDelay: Duration = reduceMotion ? .zero : .milliseconds(150)
let animation = AppMotion.contextChange(reduceMotion: reduceMotion)

for index in 0 ..< page.features.count {
Task {
try? await Task.sleep(for: stepDelay * index)
withAnimation(animation) { visibleCount = index + 1 }
if index > 0 {
do { try await Task.sleep(for: stepDelay) } catch { return }
}
withAnimation(animation) { visibleCount = index + 1 }
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion Sources/RHOIDS/Features/Onboarding/SplashView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ struct SplashView: View {
Task {
try? await Task.sleep(for: .milliseconds(600))
if showGetStarted {
withAnimation(.easeIn(duration: 0.4)) { buttonOpacity = 1 }
withAnimation(AppMotion.reveal(reduceMotion: reduceMotion)) { buttonOpacity = 1 }
} else {
fadeOut()
}
Expand Down
2 changes: 1 addition & 1 deletion Sources/RHOIDS/Features/Timer/CardTimerView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ struct CardTimerView: View {

if showsCountdown {
TimerCountdownText(endDate: endDate, size: countdownSize, frozenRemaining: frozenRemaining)
.transition(.scale(scale: 0.98))
.transition(reduceMotion ? .opacity : .opacity.combined(with: .scale(scale: 0.98)))
}
}
.padding(.horizontal, showsCountdown ? 28 : 0)
Expand Down
1 change: 0 additions & 1 deletion Sources/RHOIDS/Features/Timer/FlipTimerView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,6 @@ private struct FlipDigitTile: View {
anchor: .center,
perspective: 0.7
)
.scaleEffect(isFlipping && !reduceMotion ? 0.995 : 1)
.animation(AppMotion.digitFlip(reduceMotion: reduceMotion), value: isFlipping)
.onChange(of: digit) { _, newDigit in
updateDigit(newDigit)
Expand Down
Loading
Loading