From 1a459672d9293d86e0da0661a71b116b606a6561 Mon Sep 17 00:00:00 2001 From: Christoph Hagen Date: Thu, 9 Jun 2022 13:56:10 +0200 Subject: [PATCH] Update dependencies --- .../xcshareddata/swiftpm/Package.resolved | 12 ++++++------ FlurSchnaps/ContentView.swift | 14 +++++++++++++- FlurSchnaps/DeviceList.swift | 2 +- 3 files changed, 20 insertions(+), 8 deletions(-) diff --git a/FlurSchnaps.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved b/FlurSchnaps.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved index 69318f3..4ef0330 100644 --- a/FlurSchnaps.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved +++ b/FlurSchnaps.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved @@ -19,12 +19,12 @@ } }, { - "identity" : "push-api", + "identity" : "push-definitions", "kind" : "remoteSourceControl", - "location" : "https://christophhagen.de/git/ch/Push-API.git", + "location" : "https://christophhagen.de/git/ch/Push-Definitions.git", "state" : { - "revision" : "50e74bf15637cbcab3f76ff1255db355cc87bc4e", - "version" : "0.5.0" + "revision" : "3a4e93889b0cb5f500eeccd7ba2a099d0f3862f0", + "version" : "1.0.1" } }, { @@ -32,8 +32,8 @@ "kind" : "remoteSourceControl", "location" : "https://christophhagen.de/git/ch/Push-iOS", "state" : { - "revision" : "910f7e5f91408ddf54ea15fb3ccef182b5daedff", - "version" : "0.2.0" + "revision" : "1131cb17c6114a0b41263be1b5788188548adc41", + "version" : "0.3.0" } }, { diff --git a/FlurSchnaps/ContentView.swift b/FlurSchnaps/ContentView.swift index fbc9e18..f537e77 100644 --- a/FlurSchnaps/ContentView.swift +++ b/FlurSchnaps/ContentView.swift @@ -1,7 +1,7 @@ import SwiftUI import APNSwift import Push -import PushAPI +import PushMessageDefinitions import SFSafeSymbols struct ContentView: View { @@ -177,6 +177,18 @@ struct ContentView: View { } }.onAppear { startPeriodicUpdates() + if server == "" { + server = "https://christophhagen.de/push" + } + if application == "" { + application = "FlurSchnaps" + } + if pushMessageTitle == "" { + pushMessageTitle = "Flur-Schnaps" + } + if pushMessageText == "" { + pushMessageText = "Du hast 30 Sekunden, um im Flur zu erscheinen" + } }.onDisappear { stopPeriodicUpdates() } diff --git a/FlurSchnaps/DeviceList.swift b/FlurSchnaps/DeviceList.swift index 0d9974f..c702a5c 100644 --- a/FlurSchnaps/DeviceList.swift +++ b/FlurSchnaps/DeviceList.swift @@ -1,5 +1,5 @@ import SwiftUI -import PushAPI +import PushMessageDefinitions import Push extension String {