Introduce CallService

This commit is contained in:
ismailgulek
2020-12-01 13:41:31 +03:00
parent 7fc602f266
commit c2e616b870
13 changed files with 680 additions and 227 deletions
+2 -11
View File
@@ -23,7 +23,7 @@ final class DataProtectionHelper {
/// - Returns: true if the state detected
static func isDeviceInRebootedAndLockedState(appGroupIdentifier: String? = nil) -> Bool {
let dummyString = String.unique
let dummyString = String.vc_unique
guard let dummyData = dummyString.data(using: .utf8) else {
return true
}
@@ -38,7 +38,7 @@ final class DataProtectionHelper {
}
// add a unique filename
url = url.appendingPathComponent(String.unique)
url = url.appendingPathComponent(String.vc_unique)
try dummyData.write(to: url, options: .completeFileProtectionUntilFirstUserAuthentication)
let readData = try Data(contentsOf: url)
@@ -54,12 +54,3 @@ final class DataProtectionHelper {
}
}
extension String {
/// Returns a globally unique string
static var unique: String {
return ProcessInfo.processInfo.globallyUniqueString
}
}