Skip to content
This repository was archived by the owner on Jun 19, 2025. It is now read-only.

Commit be0456e

Browse files
committed
added Nullablity annotations and updated podspec
1 parent b96c55b commit be0456e

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

Pod/Classes/WPMediaPickerAlertHelper.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
@interface WPMediaPickerAlertHelper : NSObject
44

5-
+ (UIAlertController *)buildAlertControllerWithError:(NSError *)error okActionHandler:(void (^ __nullable)(UIAlertAction *action))handler;
5+
+ (nonnull UIAlertController *)buildAlertControllerWithError:(NSError * _Nullable)error
6+
okActionHandler:(void (^ __nullable)(UIAlertAction * _Nullable action))handler;
67

78
@end

Pod/Classes/WPMediaPickerAlertHelper.m

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@
33

44
@implementation WPMediaPickerAlertHelper
55

6-
+ (UIAlertController *)buildAlertControllerWithError:(NSError *)error okActionHandler:(void (^ __nullable)(UIAlertAction *action))handler {
6+
+ (nonnull UIAlertController *)buildAlertControllerWithError:(NSError * _Nullable)error
7+
okActionHandler:(void (^ __nullable)(UIAlertAction * _Nullable action))handler {
78
NSString *title = NSLocalizedString(@"Media Library", @"Title for alert when a generic error happened when loading media");
89
NSString *message = NSLocalizedString(@"There was a problem when trying to access your media. Please try again later.", @"Explaining to the user there was an generic error accesing media.");
910
NSString *cancelText = NSLocalizedString(@"OK", "");

WPMediaPicker.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
Pod::Spec.new do |s|
44
s.name = 'WPMediaPicker'
5-
s.version = '1.8.3-beta.2'
5+
s.version = '1.8.3-beta.3'
66

77
s.summary = 'WPMediaPicker is an iOS controller that allows capture and picking of media assets.'
88
s.description = <<-DESC

0 commit comments

Comments
 (0)