Update InvalidVersion.swift

This commit is contained in:
Garth Vander Houwen 2022-09-27 06:40:10 -07:00 committed by GitHub
parent 76a3635c1b
commit 6e5c4787b2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -8,29 +8,62 @@ import SwiftUI
struct InvalidVersion: View {
@State var errorText = ""
@State var minimumVersion = ""
@State var version = ""
var body: some View {
VStack {
Text("🚨 Unsupported Firmware Version")
Text("Update your firmware")
.font(.largeTitle)
.foregroundColor(.red)
.foregroundColor(.orange)
Text(errorText)
.font(.title2)
.padding()
Divider()
Text("Version 1.3 includes breaking changes to devices and the client apps. The version 1.3 app does not support 1.2 nodes, there is one build for 1.2 under Versions & Build Groups in TestFlight that will be available until the end of November 2022.")
.font(.callout)
.padding()
VStack {
Text("The Meshtastic Apple apps support firmware version \(minimumVersion) and above. You are running version \(version)")
.font(.title2)
.padding(.bottom)
Link("Firmware update docs", destination: URL(string: "https://meshtastic.org/docs/getting-started/flashing-firmware/")!)
.font(.title)
.padding()
Link("Additional help", destination: URL(string: "https://meshtastic.org/docs/faq")!)
.font(.title)
.padding()
}
.padding()
Link("Upgrade your Firmware", destination: URL(string: "https://meshtastic.org/docs/getting-started/flashing-firmware/")!)
Text("Only manual firmware upgrade methods are working for version 1.3.")
.padding()
if version == "1.2.65" {
Divider()
.padding(.top)
VStack{
Text("🦕 Your device is Version 1.2 🦖 ☄️")
.font(.title3)
.foregroundColor(.orange)
.padding(.bottom)
Text("Version 1.3 includes breaking changes to devices and the client apps. The version 1.3 app does not support 1.2 or 1.0 nodes.")
.font(.caption)
.padding([.leading, .trailing])
Text("There is a build for 1.2 EOL under Other Versions in TestFlight that will be available until the end of November 2022.")
.font(.caption)
.padding()
Link("Version 1.2 End of life (EOL) Info", destination: URL(string: "https://meshtastic.org/docs/1.2-End-of-life/")!)
.font(.callout)
}.padding()
}
}
}
}