Skip to content

Commit

Permalink
Merge pull request #25 from mpdifran-Bridgit/Xcode9
Browse files Browse the repository at this point in the history
Fix source code warnings produced by Xcode 9
  • Loading branch information
Adonis Peralta authored Sep 19, 2017
2 parents 0d04abe + 252a9d0 commit d76f716
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 28 deletions.
22 changes: 11 additions & 11 deletions RMessage/RMessage.h
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ typedef NS_ENUM(NSInteger, RMessageDuration) { RMessageDurationAutomatic = 0, RM
+ (void)showNotificationWithTitle:(NSString *)message
type:(RMessageType)type
customTypeName:(NSString *)customTypeName
callback:(void (^)())callback;
callback:(void (^)(void))callback;

/**
Shows a notification message
Expand All @@ -76,7 +76,7 @@ typedef NS_ENUM(NSInteger, RMessageDuration) { RMessageDurationAutomatic = 0, RM
subtitle:(NSString *)subtitle
type:(RMessageType)type
customTypeName:(NSString *)customTypeName
callback:(void (^)())callback;
callback:(void (^)(void))callback;

/**
Shows a notification message
Expand All @@ -93,7 +93,7 @@ typedef NS_ENUM(NSInteger, RMessageDuration) { RMessageDurationAutomatic = 0, RM
type:(RMessageType)type
customTypeName:(NSString *)customTypeName
duration:(NSTimeInterval)duration
callback:(void (^)())callback;
callback:(void (^)(void))callback;

/**
Shows a notification message
Expand All @@ -112,7 +112,7 @@ typedef NS_ENUM(NSInteger, RMessageDuration) { RMessageDurationAutomatic = 0, RM
type:(RMessageType)type
customTypeName:(NSString *)customTypeName
duration:(NSTimeInterval)duration
callback:(void (^)())callback
callback:(void (^)(void))callback
canBeDismissedByUser:(BOOL)dismissingEnabled;

/**
Expand All @@ -137,9 +137,9 @@ typedef NS_ENUM(NSInteger, RMessageDuration) { RMessageDurationAutomatic = 0, RM
type:(RMessageType)type
customTypeName:(NSString *)customTypeName
duration:(NSTimeInterval)duration
callback:(void (^)())callback
callback:(void (^)(void))callback
buttonTitle:(NSString *)buttonTitle
buttonCallback:(void (^)())buttonCallback
buttonCallback:(void (^)(void))buttonCallback
atPosition:(RMessagePosition)messagePosition
canBeDismissedByUser:(BOOL)dismissingEnabled;

Expand All @@ -160,7 +160,7 @@ typedef NS_ENUM(NSInteger, RMessageDuration) { RMessageDurationAutomatic = 0, RM
subtitle:(NSString *)subtitle
type:(RMessageType)type
customTypeName:(NSString *)customTypeName
callback:(void (^)())callback;
callback:(void (^)(void))callback;

/**
Shows a notification message in a specific view controller
Expand All @@ -181,7 +181,7 @@ typedef NS_ENUM(NSInteger, RMessageDuration) { RMessageDurationAutomatic = 0, RM
type:(RMessageType)type
customTypeName:(NSString *)customTypeName
duration:(NSTimeInterval)duration
callback:(void (^)())callback;
callback:(void (^)(void))callback;

/**
Shows a notification message in a specific view controller
Expand All @@ -203,7 +203,7 @@ typedef NS_ENUM(NSInteger, RMessageDuration) { RMessageDurationAutomatic = 0, RM
type:(RMessageType)type
customTypeName:(NSString *)customTypeName
duration:(NSTimeInterval)duration
callback:(void (^)())callback
callback:(void (^)(void))callback
canBeDismissedByUser:(BOOL)dismissingEnabled;

/**
Expand All @@ -230,9 +230,9 @@ typedef NS_ENUM(NSInteger, RMessageDuration) { RMessageDurationAutomatic = 0, RM
type:(RMessageType)type
customTypeName:(NSString *)customTypeName
duration:(NSTimeInterval)duration
callback:(void (^)())callback
callback:(void (^)(void))callback
buttonTitle:(NSString *)buttonTitle
buttonCallback:(void (^)())buttonCallback
buttonCallback:(void (^)(void))buttonCallback
atPosition:(RMessagePosition)messagePosition
canBeDismissedByUser:(BOOL)dismissingEnabled;

Expand Down
22 changes: 11 additions & 11 deletions RMessage/RMessage.m
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ + (instancetype)sharedMessage
+ (void)showNotificationWithTitle:(NSString *)title
type:(RMessageType)type
customTypeName:(NSString *)customTypeName
callback:(void (^)())callback
callback:(void (^)(void))callback
{
[self showNotificationWithTitle:title subtitle:nil type:type customTypeName:customTypeName callback:callback];
}
Expand All @@ -49,7 +49,7 @@ + (void)showNotificationWithTitle:(NSString *)title
subtitle:(NSString *)subtitle
type:(RMessageType)type
customTypeName:(NSString *)customTypeName
callback:(void (^)())callback
callback:(void (^)(void))callback
{
[self showNotificationInViewController:_defaultViewController
title:title
Expand All @@ -64,7 +64,7 @@ + (void)showNotificationWithTitle:(NSString *)title
type:(RMessageType)type
customTypeName:(NSString *)customTypeName
duration:(NSTimeInterval)duration
callback:(void (^)())callback
callback:(void (^)(void))callback
{
[self showNotificationInViewController:_defaultViewController
title:title
Expand All @@ -80,7 +80,7 @@ + (void)showNotificationWithTitle:(NSString *)title
type:(RMessageType)type
customTypeName:(NSString *)customTypeName
duration:(NSTimeInterval)duration
callback:(void (^)())callback
callback:(void (^)(void))callback
canBeDismissedByUser:(BOOL)dismissingEnabled
{
[self showNotificationInViewController:_defaultViewController
Expand All @@ -99,9 +99,9 @@ + (void)showNotificationWithTitle:(NSString *)title
type:(RMessageType)type
customTypeName:(NSString *)customTypeName
duration:(NSTimeInterval)duration
callback:(void (^)())callback
callback:(void (^)(void))callback
buttonTitle:(NSString *)buttonTitle
buttonCallback:(void (^)())buttonCallback
buttonCallback:(void (^)(void))buttonCallback
atPosition:(RMessagePosition)messagePosition
canBeDismissedByUser:(BOOL)dismissingEnabled
{
Expand All @@ -125,7 +125,7 @@ + (void)showNotificationInViewController:(UIViewController *)viewController
type:(RMessageType)type
customTypeName:(NSString *)customTypeName
duration:(NSTimeInterval)duration
callback:(void (^)())callback
callback:(void (^)(void))callback
{
[self showNotificationInViewController:viewController
title:title
Expand All @@ -147,7 +147,7 @@ + (void)showNotificationInViewController:(UIViewController *)viewController
type:(RMessageType)type
customTypeName:(NSString *)customTypeName
duration:(NSTimeInterval)duration
callback:(void (^)())callback
callback:(void (^)(void))callback
canBeDismissedByUser:(BOOL)dismissingEnabled
{
[self showNotificationInViewController:viewController
Expand All @@ -169,7 +169,7 @@ + (void)showNotificationInViewController:(UIViewController *)viewController
subtitle:(NSString *)subtitle
type:(RMessageType)type
customTypeName:(NSString *)customTypeName
callback:(void (^)())callback
callback:(void (^)(void))callback
{
[self showNotificationInViewController:viewController
title:title
Expand All @@ -192,9 +192,9 @@ + (void)showNotificationInViewController:(UIViewController *)viewController
type:(RMessageType)type
customTypeName:(NSString *)customTypeName
duration:(NSTimeInterval)duration
callback:(void (^)())callback
callback:(void (^)(void))callback
buttonTitle:(NSString *)buttonTitle
buttonCallback:(void (^)())buttonCallback
buttonCallback:(void (^)(void))buttonCallback
atPosition:(RMessagePosition)messagePosition
canBeDismissedByUser:(BOOL)dismissingEnabled
{
Expand Down
4 changes: 2 additions & 2 deletions RMessage/RMessageView.h
Original file line number Diff line number Diff line change
Expand Up @@ -98,9 +98,9 @@
customTypeName:(NSString *)customTypeName
duration:(CGFloat)duration
inViewController:(UIViewController *)viewController
callback:(void (^)())callback
callback:(void (^)(void))callback
buttonTitle:(NSString *)buttonTitle
buttonCallback:(void (^)())buttonCallback
buttonCallback:(void (^)(void))buttonCallback
atPosition:(RMessagePosition)position
canBeDismissedByUser:(BOOL)dismissingEnabled;

Expand Down
8 changes: 4 additions & 4 deletions RMessage/RMessageView.m
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,9 @@ @interface RMessageView () <UIGestureRecognizerDelegate>
/** The vertical space between the message view top to its view controller top */
@property (nonatomic, strong) NSLayoutConstraint *topToVCLayoutConstraint;

@property (nonatomic, copy) void (^callback)();
@property (nonatomic, copy) void (^callback)(void);

@property (nonatomic, copy) void (^buttonCallback)();
@property (nonatomic, copy) void (^buttonCallback)(void);

/** The starting constant value that should be set for the topToVCTopLayoutConstraint when animating */
@property (nonatomic, assign) CGFloat topToVCStartConstant;
Expand Down Expand Up @@ -208,9 +208,9 @@ - (instancetype)initWithDelegate:(id<RMessageViewProtocol>)delegate
customTypeName:(NSString *)customTypeName
duration:(CGFloat)duration
inViewController:(UIViewController *)viewController
callback:(void (^)())callback
callback:(void (^)(void))callback
buttonTitle:(NSString *)buttonTitle
buttonCallback:(void (^)())buttonCallback
buttonCallback:(void (^)(void))buttonCallback
atPosition:(RMessagePosition)position
canBeDismissedByUser:(BOOL)dismissingEnabled
{
Expand Down

0 comments on commit d76f716

Please sign in to comment.