Skip to content

Commit

Permalink
Update AppDetailsView
Browse files Browse the repository at this point in the history
  • Loading branch information
liamcharger committed Jan 9, 2025
1 parent 53c0aa3 commit d536617
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 4 deletions.
4 changes: 2 additions & 2 deletions InfiniLink/Core/DeviceView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -120,8 +120,8 @@ struct DeviceView: View {
} else if let update = downloadManager.appUpdate {
Section {
Button {
guard let testFlight = URL(string: "https://testflight.apple.com/join/B3PY5HUV") else { return }
guard let appStore = URL(string: "https://apps.apple.com/us/app/infinilink/id1582318814") else { return }
guard let testFlight = URL(string: testFlightLink) else { return }
guard let appStore = URL(string: appStoreLink) else { return }

openURL(update.isBeta ? testFlight : appStore)
} label: {
Expand Down
6 changes: 4 additions & 2 deletions InfiniLink/Core/Settings/General/About/AppDetailsView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,13 @@ Music control from InfiniTime is available when using the Apple Music app, but s
For more information on InfiniLink or InfiniTime, visit their GitHub repositories.
""")
}
Section {
Text("""
This new version of InfiniLink has not been localized yet, so if you can help translate, visit the InfiniLink GitHub repo to a pull request!
""")
}
Section {
Section("Links") {
Button("Pull Request #2217 on GitHub") {
guard let url = URL(string: "https://github.com/InfiniTimeOrg/InfiniTime/pull/2217") else { return }

Expand All @@ -37,7 +39,7 @@ This new version of InfiniLink has not been localized yet, so if you can help tr
}
Section {
Button("InfiniLink on TestFlight") {
guard let url = URL(string: "link here...") else { return }
guard let url = URL(string: testFlightLink) else { return }

openURL(url)
}
Expand Down
6 changes: 6 additions & 0 deletions InfiniLink/Localizable.xcstrings
Original file line number Diff line number Diff line change
Expand Up @@ -465,6 +465,9 @@
},
"Light" : {

},
"Links" : {

},
"Loading weather..." : {

Expand Down Expand Up @@ -639,6 +642,9 @@
},
"This is a local firmware file and cannot be verified. Proceed at your own risk." : {

},
"This new version of InfiniLink has not been localized yet, so if you can help translate, visit the InfiniLink GitHub repo to a pull request!" : {

},
"Time Format" : {

Expand Down
3 changes: 3 additions & 0 deletions InfiniLink/String+Extension.swift
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@

import Foundation

let testFlightLink = "https://testflight.apple.com/join/B3PY5HUV"
let appStoreLink = "https://apps.apple.com/us/app/infinilink/id1582318814"

extension String {
func versionComponents() -> [Int] {
let cleanString = self
Expand Down

0 comments on commit d536617

Please sign in to comment.