Skip to content

Commit 14ad52e

Browse files
committed
fix: Post-rebase fixes.
1 parent c1fd54a commit 14ad52e

3 files changed

Lines changed: 7 additions & 2 deletions

File tree

Authorization/Authorization/Presentation/Login/SignInViewModel.swift

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,6 @@ public class SignInViewModel: ObservableObject {
5656
}
5757
var oauthswift: OAuth2Swift?
5858

59-
let config: Config
6059
let router: AuthorizationRouter
6160
let config: ConfigProtocol
6261
private let interactor: AuthInteractorProtocol
@@ -70,7 +69,6 @@ public class SignInViewModel: ObservableObject {
7069
router: AuthorizationRouter,
7170
config: ConfigProtocol,
7271
analytics: AuthorizationAnalytics,
73-
config: Config,
7472
validator: Validator
7573
) {
7674
self.interactor = interactor

Core/Core/Configuration/Config/Config.swift

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ public protocol ConfigProtocol {
1111
var baseURL: URL { get }
1212
var oAuthClientId: String { get }
1313
var tokenType: TokenType { get }
14+
var webLogin: Bool { get }
1415
var feedbackEmail: String { get }
1516
var appStoreLink: String { get }
1617
var platformName: String { get }
@@ -33,6 +34,7 @@ private enum ConfigKeys: String {
3334
case baseURL = "API_HOST_URL"
3435
case oAuthClientID = "OAUTH_CLIENT_ID"
3536
case tokenType = "TOKEN_TYPE"
37+
case webLogin = "false"
3638
case feedbackEmailAddress = "FEEDBACK_EMAIL_ADDRESS"
3739
case environmentDisplayName = "ENVIRONMENT_DISPLAY_NAME"
3840
case platformName = "PLATFORM_NAME"
@@ -122,6 +124,10 @@ extension Config: ConfigProtocol {
122124
return tokenType
123125
}
124126

127+
public var webLogin: Bool {
128+
return Bool(ConfigKeys.webLogin.rawValue) ?? false
129+
}
130+
125131
public var feedbackEmail: String {
126132
return string(for: ConfigKeys.feedbackEmailAddress.rawValue) ?? ""
127133
}

Core/Core/SwiftGen/Assets.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@ public enum CoreAssets {
8181
public static let rotateDevice = ImageAsset(name: "rotateDevice")
8282
public static let sub = ImageAsset(name: "sub")
8383
public static let alarm = ImageAsset(name: "alarm")
84+
public static let appLogo = ImageAsset(name: "appLogo")
8485
public static let arrowLeft = ImageAsset(name: "arrowLeft")
8586
public static let arrowRight16 = ImageAsset(name: "arrowRight16")
8687
public static let certificate = ImageAsset(name: "certificate")

0 commit comments

Comments
 (0)