This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
{ | |
"dependencies" : [ | |
{ | |
"scope" : "graph", | |
"name" : "urlSession", | |
"object_type" : "Reference", | |
"type" : { | |
"object_type" : "Type", | |
"name" : "URLSession" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import UIKit | |
final class MovieViewController: UIViewController { | |
private let dependencies: MovieViewControllerDependencyResolver | |
// weaver: movie <= Movie | |
// weaver: imageManager = ImageManager |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@import UIKit; | |
@protocol WSReviewViewControllerDependencyResolver; | |
NS_ASSUME_NONNULL_BEGIN | |
@interface WSReviewViewController: UIViewController | |
- (instancetype)initWithDependencies:(id<WSReviewViewControllerDependencyResolver>)dependencies NS_SWIFT_NAME(init(injecting:)); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@objc final class ReviewTableViewCellViewModel: NSObject { | |
let content: String | |
let author: String | |
@objc(initWithReview:) init(_ review: Review) { | |
content = review.properties.content | |
author = review.properties.author | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
final class MovieManager { | |
private let dependencies: MovieManagerDependencyResolver | |
// weaver: urlSession <- URLSession | |
init(injecting dependencies: MovieManagerDependencyResolver) { | |
self.dependencies = dependencies | |
} | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#import "WSReviewViewController.h" | |
#import "Sample-Swift.h" | |
NS_ASSUME_NONNULL_BEGIN | |
@interface WSReviewViewController () <UITableViewDelegate, UITableViewDataSource> | |
@property (nonatomic, strong) id<WSReviewViewControllerDependencyResolver> dependencies; | |
@property (nonatomic, strong) UITableView *tableView; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
extension WSReviewViewController: WSReviewViewControllerObjCDependencyInjectable { | |
// weaver: movieID <= UInt | |
// weaver: reviewManager = ReviewManager | |
// weaver: self.isIsolated = true | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#import "WSReviewViewController.h" | |
#import "Sample-Swift.h" | |
NS_ASSUME_NONNULL_BEGIN | |
@interface WSReviewViewController () <UITableViewDelegate, UITableViewDataSource> | |
@property (nonatomic, strong) UITableView *tableView; | |
@property (nonatomic, strong) NSArray<Review *> *reviews; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@objc final class ReviewManager: NSObject { | |
private let dependencies: ReviewManagerDependencyResolver | |
// weaver: urlSession <- URLSession | |
// weaver: self.isIsolated = true | |
required init(injecting dependencies: ReviewManagerDependencyResolver) { | |
self.dependencies = dependencies |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@objc final class ReviewPage: NSObject { | |
let properties: Page<Review.Properties> | |
init(_ properties: Page<Review.Properties>) { | |
self.properties = properties | |
} | |
@objc var page: UInt { | |
return properties.page |
NewerOlder