Parcourir la source

Services: Rename Obj-C protocol to VLCServices

Soomin Lee il y a 5 ans
Parent
commit
82d9311183

+ 1 - 1
Sources/Coordinators/AppCoordinator.swift

@@ -10,7 +10,7 @@
  * Refer to the COPYING file of the official project for license.
  *****************************************************************************/
 
-@objc(VLCService)
+@objc(VLCServices)
 class Services: NSObject {
     @objc let medialibraryService = MediaLibraryService()
     @objc let rendererDiscovererManager = VLCRendererDiscovererManager(presentingViewController: nil)

+ 2 - 2
Sources/VLCMovieViewController.h

@@ -16,7 +16,7 @@
 #import "VLCPlaybackController.h"
 
 @class OBSlider;
-@class VLCService;
+@class VLCServices;
 @class VLCStatusLabel;
 @class VLCVerticalSwipeGestureRecognizer;
 @class VLCMovieViewControlPanelView;
@@ -64,7 +64,7 @@ typedef NS_ENUM(NSInteger, VLCMovieJumpState) {
 
 @property (nonatomic, weak) id<VLCMovieViewControllerDelegate> delegate;
 
-- (instancetype)initWithServices:(VLCService *)services;
+- (instancetype)initWithServices:(VLCServices *)services;
 
 - (IBAction)positionSliderAction:(id)sender;
 - (IBAction)positionSliderTouchDown:(id)sender;

+ 3 - 3
Sources/VLCMovieViewController.m

@@ -120,7 +120,7 @@ typedef NS_ENUM(NSInteger, VLCPanType) {
     UIButton *_rendererButton;
 }
 @property (nonatomic, strong) VLCMovieViewControlPanelView *controllerPanel;
-@property (nonatomic, strong) VLCService *services;
+@property (nonatomic, strong) VLCServices *services;
 @property (nonatomic, strong) VLCTimeNavigationTitleView *timeNavigationTitleView;
 @property (nonatomic, strong) IBOutlet PlayingExternallyView *playingExternalView;
 @property (nonatomic, strong) IBOutlet PlaybackSpeedView *playbackSpeedView;
@@ -137,11 +137,11 @@ typedef NS_ENUM(NSInteger, VLCPanType) {
     [defaults registerDefaults:appDefaults];
 }
 
-- (instancetype)initWithServices:(VLCService *)services
+- (instancetype)initWithServices:(VLCServices *)services
 {
     self = [super initWithNibName:nil bundle:nil];
     if (self) {
-        NSAssert([services isKindOfClass:[VLCService class]], @"VLCPlayerDisplayController: Injected services class issue");
+        NSAssert([services isKindOfClass:[VLCServices class]], @"VLCPlayerDisplayController: Injected services class issue");
         _services = services;
     }
     return self;

+ 1 - 1
Sources/VLCPlayerDisplayController.h

@@ -11,7 +11,7 @@
  *****************************************************************************/
 
 @class VLCPlaybackController;
-@class VLCService;
+@class VLCServices;
 
 typedef NS_ENUM(NSUInteger, VLCPlayerDisplayControllerDisplayMode) {
     VLCPlayerDisplayControllerDisplayModeFullscreen,

+ 2 - 2
Sources/VLCPlayerDisplayController.m

@@ -41,7 +41,7 @@ static NSString *const VLCPlayerDisplayControllerDisplayModeKey = @"VLCPlayerDis
 @property (nonatomic, strong) UIViewController<VLCPlaybackControllerDelegate> *movieViewController;
 @property (nonatomic, strong) UIView<VLCPlaybackControllerDelegate, VLCMiniPlayer> *miniPlaybackView;
 @property (nonatomic, strong) NSLayoutConstraint *bottomConstraint;
-@property (nonatomic, strong) VLCService *services;
+@property (nonatomic, strong) VLCServices *services;
 @end
 
 @implementation VLCPlayerDisplayController
@@ -50,7 +50,7 @@ static NSString *const VLCPlayerDisplayControllerDisplayModeKey = @"VLCPlayerDis
 {
     self = [super initWithNibName:nil bundle:nil];
     if (self) {
-        NSAssert([services isKindOfClass:[VLCService class]], @"VLCPlayerDisplayController: Injected services class issue");
+        NSAssert([services isKindOfClass:[VLCServices class]], @"VLCPlayerDisplayController: Injected services class issue");
 
         _services = services;