Remove Sparkle update framework

This commit is contained in:
Arkadiusz Fal
2022-06-08 01:14:47 +02:00
parent ee0b7b679c
commit cae23f9881
7 changed files with 1 additions and 154 deletions

View File

@@ -5,7 +5,7 @@ import SwiftUI
struct SettingsView: View {
#if os(macOS)
private enum Tabs: Hashable {
case instances, browsing, player, history, sponsorBlock, updates, help
case instances, browsing, player, history, sponsorBlock, help
}
@State private var selection = Tabs.instances
@@ -68,14 +68,6 @@ struct SettingsView: View {
}
.tag(Tabs.sponsorBlock)
Form {
UpdatesSettings()
}
.tabItem {
Label("Updates", systemImage: "gearshape.2")
}
.tag(Tabs.updates)
Form {
Help()
}
@@ -184,8 +176,6 @@ struct SettingsView: View {
return 480
case .sponsorBlock:
return 660
case .updates:
return 200
case .help:
return 570
}

View File

@@ -13,7 +13,6 @@ struct YatteeApp: App {
#if os(macOS)
@NSApplicationDelegateAdaptor(AppDelegate.self) var appDelegate
@StateObject private var updater = UpdaterModel()
#elseif os(iOS)
@UIApplicationDelegateAdaptor(AppDelegate.self) var appDelegate
#endif
@@ -80,13 +79,6 @@ struct YatteeApp: App {
CommandGroup(replacing: .newItem, addition: {})
#if os(macOS)
CommandGroup(after: .appInfo) {
CheckForUpdatesView()
.environmentObject(updater)
}
#endif
MenuCommands(model: Binding<MenuModel>(get: { menu }, set: { _ in }))
}
#endif
@@ -134,7 +126,6 @@ struct YatteeApp: App {
.environmentObject(instances)
.environmentObject(player)
.environmentObject(playerControls)
.environmentObject(updater)
}
#endif
}