diff --git a/Meshtastic/Views/Bluetooth/InvalidVersion.swift b/Meshtastic/Views/Bluetooth/InvalidVersion.swift index 190456c8..7f9e4541 100644 --- a/Meshtastic/Views/Bluetooth/InvalidVersion.swift +++ b/Meshtastic/Views/Bluetooth/InvalidVersion.swift @@ -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() + } } } }