Skip to content

Commit

Permalink
fix(ios): update project to compile with xcode 14;
Browse files Browse the repository at this point in the history
  • Loading branch information
mat1th committed Aug 31, 2022
1 parent 34f1ff8 commit 3591409
Show file tree
Hide file tree
Showing 13 changed files with 16 additions and 6 deletions.
1 change: 1 addition & 0 deletions Sources/UnlockerCore/Entities/CGEventProtocol.swift
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import CoreGraphics
import Foundation

protocol CGEventProtocol {
Expand Down
1 change: 1 addition & 0 deletions Sources/UnlockerCore/Entities/KeyCode.swift
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import CoreGraphics
import Foundation

enum KeyCode: CGKeyCode {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import CoreGraphics
import Foundation

extension CGEvent: CGEventProtocol {}
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,10 @@ public protocol AccessablityPermissionIsAllowedUseCaseProtocol {
}

public struct AccessablityPermissionIsAllowedUseCase: AccessablityPermissionIsAllowedUseCaseProtocol {

private let postKeyEvent: PostKeyEventUseCaseProtocol

public init() {
self.init()
self.init(postKeyEvent: PostKeyEventUseCase())
}

private init(postKeyEvent: PostKeyEventUseCaseProtocol = PostKeyEventUseCase()) {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import CoreGraphics
import Foundation

public protocol LockScreenIsActiveUseCaseProtocol {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ public struct LockScreenUseCase {
private let executeFramwork: ExecuteFramworkUseCaseProtocol

public init() {
self.init()
self.init(executeFramwork: ExecuteFramworkUseCase())
}

init(executeFramwork: ExecuteFramworkUseCaseProtocol = ExecuteFramworkUseCase()) {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import CoreGraphics
import Foundation

public protocol UnlockScreenUseCaseProtocol {
Expand All @@ -15,7 +16,10 @@ public struct UnlockScreenUseCase: UnlockScreenUseCaseProtocol {
private let cgEventProvider: (CGEventSource?, CGKeyCode, Bool) -> CGEventProtocol?

public init() {
self.init()
self.init(
postKeyEvent: PostKeyEventUseCase(),
cgEventProvider: { CGEvent(keyboardEventSource: $0, virtualKey: $1, keyDown: $2) }
)
}

init(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ public struct StopScreenSaverUseCase: StopScreenSaverUseCaseProtocol {
private let postKeyEvent: PostKeyEventUseCaseProtocol

public init() {
self.init()
self.init(postKeyEvent: PostKeyEventUseCase())
}

init(postKeyEvent: PostKeyEventUseCaseProtocol = PostKeyEventUseCase()) {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import CoreGraphics
import Foundation

public protocol PostKeyEventUseCaseProtocol {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ public protocol WakeScreenUseCaseProtocol {
}

public struct WakeScreenUseCase: WakeScreenUseCaseProtocol {

public init() {
}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import CoreGraphics
import Foundation
@testable import UnlockerCore

Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import CoreGraphics
import Foundation
@testable import UnlockerCore

Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import CoreGraphics
@testable import UnlockerCore
import XCTest

Expand Down

0 comments on commit 3591409

Please sign in to comment.