Skip to content

Commit

Permalink
service protocols: class
Browse files Browse the repository at this point in the history
  • Loading branch information
RealBonus committed Mar 9, 2018
1 parent 70d9fa1 commit dfc6e93
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion Adamant/ServiceProtocols/AccountService.swift
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ enum AccountServiceError {


// MARK: - Protocol
protocol AccountService {
protocol AccountService: class {
// MARK: State

var state: AccountServiceState { get }
Expand Down
2 changes: 1 addition & 1 deletion Adamant/ServiceProtocols/AdamantCore.swift
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

import Foundation

protocol AdamantCore {
protocol AdamantCore: class {
// MARK: - Keys
func createHashFor(passphrase: String) -> String?
func createKeypairFor(passphrase: String) -> Keypair?
Expand Down
2 changes: 1 addition & 1 deletion Adamant/ServiceProtocols/ApiService.swift
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ enum ApiServiceError: Error {
}
}

protocol ApiService {
protocol ApiService: class {

/// Default is async queue with .utilities priority.
var defaultResponseDispatchQueue: DispatchQueue { get set }
Expand Down
2 changes: 1 addition & 1 deletion Adamant/ServiceProtocols/CellFactory.swift
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ struct SharedCell: Equatable, Hashable {
}


protocol CellFactory {
protocol CellFactory: class {
func nib(for sharedCell: SharedCell) -> UINib?
func cellInstance(for sharedCell: SharedCell) -> UITableViewCell?
}
2 changes: 1 addition & 1 deletion Adamant/ServiceProtocols/DialogService.swift
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ enum ShareContentType {
}
}

protocol DialogService {
protocol DialogService: class {

/// Present view controller modally
func present(_ viewController: UIViewController, animated: Bool, completion: (() -> Void)?)
Expand Down
2 changes: 1 addition & 1 deletion Adamant/ServiceProtocols/LocalAuthentication.swift
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ enum AuthenticationResult {
case failed
}

protocol LocalAuthentication {
protocol LocalAuthentication: class {
var biometryType: BiometryType { get }

func authorizeUser(reason: String, completion: @escaping (AuthenticationResult) -> Void)
Expand Down
2 changes: 1 addition & 1 deletion Adamant/ServiceProtocols/Router.swift
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ struct AdamantScene: Equatable, Hashable {


// MARK: - Adamant Router
protocol Router {
protocol Router: class {
func get(story: AdamantStory) -> UIStoryboard
func get(scene: AdamantScene) -> UIViewController
}
2 changes: 1 addition & 1 deletion Adamant/ServiceProtocols/SecuredStore.swift
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ struct StoreKey {
private init() {}
}

protocol SecuredStore {
protocol SecuredStore: class {
func get(_ key: String) -> String?
func set(_ value: String, for key: String)
func remove(_ key: String)
Expand Down

0 comments on commit dfc6e93

Please sign in to comment.