Release 2.0.0

This commit is contained in:
Frank Rotermund
2022-11-27 13:18:53 +00:00
parent bf57719009
commit 0dc8ec0982
570 changed files with 20366 additions and 4410 deletions
@@ -184,7 +184,7 @@ final class EnterPinCodeViewController: UIViewController {
}
// show BuM Logo instead of Element logo
if BwiBuildSettings.bwiEnableBuMUI {
if BWIBuildSettings.shared.bwiEnableBuMUI {
logoImageView.image = Asset.Images.launchScreenLogo.image
}
}
@@ -95,12 +95,12 @@ final class PinCodePreferences: NSObject {
/// Setting to force protection by pin code
var forcePinProtection: Bool {
return BwiBuildSettings.forcedPinProtection
return BWIBuildSettings.shared.forcePinProtection
}
/// Not allowed pin codes. User won't be able to select one of the pin in the list.
var notAllowedPINs: [String] {
return BuildSettings.notAllowedPINs
return BWIBuildSettings.shared.notAllowedPINs
}
/// Maximum number of allowed pin failures when unlocking, before force logging out the user
@@ -136,7 +136,7 @@ final class PinCodePreferences: NSObject {
/// Max allowed time to continue using the app without prompting PIN
var graceTimeInSeconds: TimeInterval {
return BuildSettings.pinCodeGraceTimeInSeconds
return BWIBuildSettings.shared.pinCodeGraceTimeInSeconds
}
/// Number of digits for the PIN
@@ -105,6 +105,7 @@ final class SetupBiometricsViewModel: SetupBiometricsViewModelType {
// biometrics can't be used until further unlock with pin or a new log in
self.pinCodePreferences.canUseBiometricsToUnlock = false
self.coordinatorDelegate?.setupBiometricsViewModelDidCompleteWithReset(self, dueToTooManyErrors: true)
self.userCancelledUnlockWithBiometrics()
} else if nsError.code == LAError.Code.userCancel.rawValue || nsError.code == LAError.Code.userFallback.rawValue {
self.userCancelledUnlockWithBiometrics()
} else {