Skip to content

Commit

Permalink
remove simulator login test button
Browse files Browse the repository at this point in the history
  • Loading branch information
GianniCarlo committed Dec 14, 2024
1 parent 43a3b7a commit 275a4b9
Showing 1 changed file with 0 additions and 18 deletions.
18 changes: 0 additions & 18 deletions BookPlayerWatch/Settings/Login/LoginView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -23,24 +23,6 @@ struct LoginView: View {
Text("benefits_watchapp_description".localized)
.font(Font(Fonts.body))
.multilineTextAlignment(.center)
#if targetEnvironment(simulator)
Button("Test Login") {
Task {
let token: String = Bundle.main.configurationValue(for: .mockedBearerToken)
print(token)
do {
isLoading = true
try await coreServices.accountService.loginTestAccount(token: token)
isLoading = false
account = coreServices.accountService.getAccount()
coreServices.checkAndReloadIfSyncIsEnabled()
} catch {
isLoading = false
self.error = error
}
}
}
#endif
SignInWithAppleButton(.signIn) { request in
request.requestedScopes = [.email]
} onCompletion: { result in
Expand Down

0 comments on commit 275a4b9

Please sign in to comment.