Skip to content

Commit

Permalink
chore(apple): fix build issues found internally (#281)
Browse files Browse the repository at this point in the history
  • Loading branch information
Saadnajmi authored Mar 2, 2025
1 parent dd2baa8 commit 287a762
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions ios/RNCClipboard.mm
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ - (void) listener:(NSNotification *) notification
if (@available(iOS 14, *)) {
UIPasteboard *board = [UIPasteboard generalPasteboard];
[board detectPatternsForPatterns:[NSSet setWithObjects:UIPasteboardDetectionPatternProbableWebURL, UIPasteboardDetectionPatternNumber, UIPasteboardDetectionPatternProbableWebSearch, nil]
completionHandler:^(NSSet<UIPasteboardDetectionPattern> * _Nullable set, NSError * _Nullable error) {
completionHandler:^(NSSet<UIPasteboardDetectionPattern> * _Nullable set, __unused NSError * _Nullable error) {
BOOL numberPresent = NO;
for (NSString *type in set) {
if ([type isEqualToString:UIPasteboardDetectionPatternNumber]) {
Expand All @@ -199,7 +199,7 @@ - (void) listener:(NSNotification *) notification
if (@available(iOS 14, *)) {
UIPasteboard *board = [UIPasteboard generalPasteboard];
[board detectPatternsForPatterns:[NSSet setWithObjects:UIPasteboardDetectionPatternProbableWebURL, UIPasteboardDetectionPatternNumber, UIPasteboardDetectionPatternProbableWebSearch, nil]
completionHandler:^(NSSet<UIPasteboardDetectionPattern> * _Nullable set, NSError * _Nullable error) {
completionHandler:^(NSSet<UIPasteboardDetectionPattern> * _Nullable set, __unused NSError * _Nullable error) {
BOOL webURLPresent = NO;
for (NSString *type in set) {
if ([type isEqualToString:UIPasteboardDetectionPatternProbableWebURL]) {
Expand Down Expand Up @@ -238,7 +238,7 @@ - (void) listener:(NSNotification *) notification
// Keep: Required for RN built in Event Emitter Calls.
}

RCT_EXPORT_METHOD(removeListeners : (NSInteger)count) {
RCT_EXPORT_METHOD(removeListeners : (double)count) {
// Keep: Required for RN built in Event Emitter Calls.
}

Expand Down
2 changes: 1 addition & 1 deletion macos/RNCClipboard.m
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ - (dispatch_queue_t)methodQueue
// Keep: Required for RN built in Event Emitter Calls.
}

RCT_EXPORT_METHOD(removeListeners : (NSInteger)count) {
RCT_EXPORT_METHOD(removeListeners : (double)count) {
// Keep: Required for RN built in Event Emitter Calls.
}

Expand Down

0 comments on commit 287a762

Please sign in to comment.