Fix production crash points, actor-isolation warnings, and rebrand URLs

Remove all fatalError/force unwrap/force cast crash points from production
paths (ShowBasedOnVoteLogics, Random, ReflectApp, NoteEditorView). Fix
actor-isolation warnings by wrapping off-main-thread AnalyticsManager calls
in Task { @MainActor in } (LocalNotification) and replacing DispatchQueue
with Task.detached + MainActor.run (LiveActivityPreviewView). Update legal
URLs from feels.88oakapps.com to reflect.88oakapps.com in SettingsView.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Trey t
2026-02-26 19:31:10 -06:00
parent 16c5c34942
commit 3a4e60587a
8 changed files with 43 additions and 39 deletions

View File

@@ -1030,7 +1030,7 @@ struct SettingsContentView: View {
private var eulaButton: some View {
Button(action: {
AnalyticsManager.shared.track(.eulaViewed)
if let url = URL(string: "https://feels.88oakapps.com/eula.html") {
if let url = URL(string: "https://reflect.88oakapps.com/eula.html") {
UIApplication.shared.open(url)
}
}, label: {
@@ -1049,7 +1049,7 @@ struct SettingsContentView: View {
private var privacyButton: some View {
Button(action: {
AnalyticsManager.shared.track(.privacyPolicyViewed)
if let url = URL(string: "https://feels.88oakapps.com/privacy.html") {
if let url = URL(string: "https://reflect.88oakapps.com/privacy.html") {
UIApplication.shared.open(url)
}
}, label: {
@@ -1757,7 +1757,7 @@ struct SettingsView: View {
private var eulaButton: some View {
Button(action: {
AnalyticsManager.shared.track(.eulaViewed)
openURL(URL(string: "https://feels.88oakapps.com/eula.html")!)
if let url = URL(string: "https://reflect.88oakapps.com/eula.html") { openURL(url) }
}, label: {
Text(String(localized: "settings_view_show_eula"))
.foregroundColor(textColor)
@@ -1772,7 +1772,7 @@ struct SettingsView: View {
private var privacyButton: some View {
Button(action: {
AnalyticsManager.shared.track(.privacyPolicyViewed)
openURL(URL(string: "https://feels.88oakapps.com/privacy.html")!)
if let url = URL(string: "https://reflect.88oakapps.com/privacy.html") { openURL(url) }
}, label: {
Text(String(localized: "settings_view_show_privacy"))
.foregroundColor(textColor)