Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace deprecated keyword 'class' to 'AnyObject' #458

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion ios/RIBs/Classes/Builder.swift
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
import Foundation

/// The base builder protocol that all builders should conform to.
public protocol Buildable: class {}
public protocol Buildable: AnyObject {}

/// Utility that instantiates a RIB and sets up its internal wirings.
open class Builder<DependencyType>: Buildable {
Expand Down
2 changes: 1 addition & 1 deletion ios/RIBs/Classes/DI/Dependency.swift
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import Foundation
///
/// Subclasses should define a set of properties that are required by the module from the DI graph. A dependency is
/// typically provided and satisfied by its immediate parent module.
public protocol Dependency: class {}
public protocol Dependency: AnyObject {}

/// The special empty dependency.
public protocol EmptyDependency: Dependency {}
2 changes: 1 addition & 1 deletion ios/RIBs/Classes/Interactor.swift
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import RxSwift
import UIKit

/// Protocol defining the activeness of an interactor's scope.
public protocol InteractorScope: class {
public protocol InteractorScope: AnyObject {

// The following properties must be declared in the base protocol, since `Router` internally invokes these methods.
// In order to unit test router with a mock interactor, the mocked interactor first needs to conform to the custom
Expand Down
2 changes: 1 addition & 1 deletion ios/RIBs/Classes/Presenter.swift
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
import Foundation

/// The base protocol for all `Presenter`s.
public protocol Presentable: class {}
public protocol Presentable: AnyObject {}

/// The base class of all `Presenter`s. A `Presenter` translates business models into values the corresponding
/// `ViewController` can consume and display. It also maps UI events to business logic method, invoked to
Expand Down
2 changes: 1 addition & 1 deletion ios/RIBs/Classes/Router.swift
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public enum RouterLifecycle {
}

/// The scope of a `Router`, defining various lifecycles of a `Router`.
public protocol RouterScope: class {
public protocol RouterScope: AnyObject {

/// An observable that emits values when the router scope reaches its corresponding life-cycle stages. This
/// observable completes when the router scope is deallocated.
Expand Down
2 changes: 1 addition & 1 deletion ios/RIBs/Classes/ViewControllable.swift
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
import UIKit

/// Basic interface between a `Router` and the UIKit `UIViewController`.
public protocol ViewControllable: class {
public protocol ViewControllable: AnyObject {

var uiviewController: UIViewController { get }
}
Expand Down
2 changes: 1 addition & 1 deletion ios/RIBs/Classes/Worker/Worker.swift
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import RxSwift
///
/// `Worker`s are always bound to an `Interactor`. A `Worker` can only start if its bound `Interactor` is active.
/// It is stopped when its bound interactor is deactivated.
public protocol Working: class {
public protocol Working: AnyObject {

/// Starts the `Worker`.
///
Expand Down