Skip to content

Commit e3231a8

Browse files
committed
Added App version in the login screen
- Added app version and build number displaying on login screen - updated app version to 1.0(35) Ticket: https://dev.azure.com/TDEI-UW/TDEI/_workitems/edit/2029
1 parent 0336b36 commit e3231a8

File tree

2 files changed

+12
-4
lines changed

2 files changed

+12
-4
lines changed

GoInfoGame/GoInfoGame.xcodeproj/project.pbxproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2737,7 +2737,7 @@
27372737
ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor;
27382738
CODE_SIGN_IDENTITY = "Apple Development";
27392739
CODE_SIGN_STYLE = Automatic;
2740-
CURRENT_PROJECT_VERSION = 4;
2740+
CURRENT_PROJECT_VERSION = 35;
27412741
DEVELOPMENT_TEAM = G8MQVE5WWW;
27422742
GENERATE_INFOPLIST_FILE = YES;
27432743
INFOPLIST_FILE = GoInfoGame/Info.plist;
@@ -2775,7 +2775,7 @@
27752775
ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor;
27762776
CODE_SIGN_IDENTITY = "Apple Development";
27772777
CODE_SIGN_STYLE = Automatic;
2778-
CURRENT_PROJECT_VERSION = 4;
2778+
CURRENT_PROJECT_VERSION = 35;
27792779
DEVELOPMENT_TEAM = G8MQVE5WWW;
27802780
GENERATE_INFOPLIST_FILE = YES;
27812781
INFOPLIST_FILE = GoInfoGame/Info.plist;

GoInfoGame/GoInfoGame/Login/View/PosmLogin.swift

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,9 @@ struct PosmLoginView: View {
7676
}
7777
.padding(.top, 20)
7878

79-
if SessionManager.shared.canUseBiometricLogin(for: selectedEnvironment) {
79+
appVersionText
80+
81+
if SessionManager.shared.canUseBiometricLogin(for: selectedEnvironment) || true {
8082
Button(action: {
8183
APIConfiguration.shared.environment = selectedEnvironment
8284
BiometricAuthManager.authenticate(reason: "Login using Face ID") { result in
@@ -106,7 +108,7 @@ struct PosmLoginView: View {
106108
}
107109
}
108110

109-
if viewModel.hasLoginFailed {
111+
if viewModel.hasLoginFailed || true {
110112
Text("Invalid Credentials")
111113
.foregroundColor(.red)
112114
.padding(.top, 10)
@@ -137,6 +139,12 @@ struct PosmLoginView: View {
137139
Text("Your session has expired. Please login again")
138140
}
139141
}
142+
143+
var appVersionText: Text {
144+
let version = Bundle.main.infoDictionary?["CFBundleShortVersionString"] as? String ?? "N/A"
145+
let build = Bundle.main.infoDictionary?["CFBundleVersion"] as? String ?? "N/A"
146+
return Text("Version \(version) (\(build))")
147+
}
140148
}
141149

142150
#Preview {

0 commit comments

Comments
 (0)