Skip to content

Commit

Permalink
fix: Post-rebase fixes.
Browse files Browse the repository at this point in the history
  • Loading branch information
Kelketek committed Dec 15, 2023
1 parent c1fd54a commit 14ad52e
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@ public class SignInViewModel: ObservableObject {
}
var oauthswift: OAuth2Swift?

let config: Config
let router: AuthorizationRouter
let config: ConfigProtocol
private let interactor: AuthInteractorProtocol
Expand All @@ -70,7 +69,6 @@ public class SignInViewModel: ObservableObject {
router: AuthorizationRouter,
config: ConfigProtocol,
analytics: AuthorizationAnalytics,
config: Config,
validator: Validator
) {
self.interactor = interactor
Expand Down
6 changes: 6 additions & 0 deletions Core/Core/Configuration/Config/Config.swift
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ public protocol ConfigProtocol {
var baseURL: URL { get }
var oAuthClientId: String { get }
var tokenType: TokenType { get }
var webLogin: Bool { get }
var feedbackEmail: String { get }
var appStoreLink: String { get }
var platformName: String { get }
Expand All @@ -33,6 +34,7 @@ private enum ConfigKeys: String {
case baseURL = "API_HOST_URL"
case oAuthClientID = "OAUTH_CLIENT_ID"
case tokenType = "TOKEN_TYPE"
case webLogin = "false"
case feedbackEmailAddress = "FEEDBACK_EMAIL_ADDRESS"
case environmentDisplayName = "ENVIRONMENT_DISPLAY_NAME"
case platformName = "PLATFORM_NAME"
Expand Down Expand Up @@ -122,6 +124,10 @@ extension Config: ConfigProtocol {
return tokenType
}

public var webLogin: Bool {
return Bool(ConfigKeys.webLogin.rawValue) ?? false
}

public var feedbackEmail: String {
return string(for: ConfigKeys.feedbackEmailAddress.rawValue) ?? ""
}
Expand Down
1 change: 1 addition & 0 deletions Core/Core/SwiftGen/Assets.swift
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ public enum CoreAssets {
public static let rotateDevice = ImageAsset(name: "rotateDevice")
public static let sub = ImageAsset(name: "sub")
public static let alarm = ImageAsset(name: "alarm")
public static let appLogo = ImageAsset(name: "appLogo")
public static let arrowLeft = ImageAsset(name: "arrowLeft")
public static let arrowRight16 = ImageAsset(name: "arrowRight16")
public static let certificate = ImageAsset(name: "certificate")
Expand Down

0 comments on commit 14ad52e

Please sign in to comment.