- Move bundle/group identifiers to passKit/Global - Fix Core Data - Change Defaults to SharedDefaults
32 lines
738 B
Swift
32 lines
738 B
Swift
//
|
|
// PasscodeLockConfiguration.swift
|
|
// pass
|
|
//
|
|
// Created by Mingshen Sun on 7/2/2017.
|
|
// Copyright © 2017 Bob Sun. All rights reserved.
|
|
//
|
|
|
|
import Foundation
|
|
import PasscodeLock
|
|
import passKit
|
|
|
|
struct PasscodeLockConfiguration: PasscodeLockConfigurationType {
|
|
|
|
static let shared = PasscodeLockConfiguration()
|
|
|
|
let repository: PasscodeRepositoryType
|
|
let passcodeLength = 4
|
|
var isTouchIDAllowed = SharedDefaults[.isTouchIDOn]
|
|
let shouldRequestTouchIDImmediately = true
|
|
let maximumInccorectPasscodeAttempts = 3
|
|
|
|
init(repository: PasscodeRepositoryType) {
|
|
|
|
self.repository = repository
|
|
}
|
|
|
|
init() {
|
|
|
|
self.repository = PasscodeLockRepository()
|
|
}
|
|
}
|