Skip to content

Commit

Permalink
🚸 (LekaUpdater): Estimate version based on version
Browse files Browse the repository at this point in the history
Only for versions 1.0.0, 1.1.0 and 1.2.0
  • Loading branch information
YannLocatelli committed Sep 18, 2023
1 parent 19ea4f7 commit cf797ab
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,14 @@ struct RobotDiscoveryView: View {

private var osVersionText: String {
guard let osVersion = discovery.osVersion else {
if discovery.name == "Leka" {
return "LekaOS-v1.0.0"
} else if discovery.name.contains("LK-") && discovery.name.contains("xx") {
return "LekaOS-v1.1.0"
} else if discovery.name.contains("LK-") {
return "LekaOS-v1.2.0"
}

return "n/a"
}
return "LekaOS-v\(osVersion)"
Expand Down

0 comments on commit cf797ab

Please sign in to comment.