Update dependencies

This commit is contained in:
Christoph Hagen 2022-06-09 13:56:10 +02:00
parent 4bdf9c235d
commit 1a459672d9
3 changed files with 20 additions and 8 deletions

View File

@ -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"
}
},
{

View File

@ -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()
}

View File

@ -1,5 +1,5 @@
import SwiftUI
import PushAPI
import PushMessageDefinitions
import Push
extension String {