Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 287a762

Browse files
authoredMar 2, 2025··
chore(apple): fix build issues found internally (#281)
1 parent dd2baa8 commit 287a762

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed
 

‎ios/RNCClipboard.mm

+3-3
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ - (void) listener:(NSNotification *) notification
179179
if (@available(iOS 14, *)) {
180180
UIPasteboard *board = [UIPasteboard generalPasteboard];
181181
[board detectPatternsForPatterns:[NSSet setWithObjects:UIPasteboardDetectionPatternProbableWebURL, UIPasteboardDetectionPatternNumber, UIPasteboardDetectionPatternProbableWebSearch, nil]
182-
completionHandler:^(NSSet<UIPasteboardDetectionPattern> * _Nullable set, NSError * _Nullable error) {
182+
completionHandler:^(NSSet<UIPasteboardDetectionPattern> * _Nullable set, __unused NSError * _Nullable error) {
183183
BOOL numberPresent = NO;
184184
for (NSString *type in set) {
185185
if ([type isEqualToString:UIPasteboardDetectionPatternNumber]) {
@@ -199,7 +199,7 @@ - (void) listener:(NSNotification *) notification
199199
if (@available(iOS 14, *)) {
200200
UIPasteboard *board = [UIPasteboard generalPasteboard];
201201
[board detectPatternsForPatterns:[NSSet setWithObjects:UIPasteboardDetectionPatternProbableWebURL, UIPasteboardDetectionPatternNumber, UIPasteboardDetectionPatternProbableWebSearch, nil]
202-
completionHandler:^(NSSet<UIPasteboardDetectionPattern> * _Nullable set, NSError * _Nullable error) {
202+
completionHandler:^(NSSet<UIPasteboardDetectionPattern> * _Nullable set, __unused NSError * _Nullable error) {
203203
BOOL webURLPresent = NO;
204204
for (NSString *type in set) {
205205
if ([type isEqualToString:UIPasteboardDetectionPatternProbableWebURL]) {
@@ -238,7 +238,7 @@ - (void) listener:(NSNotification *) notification
238238
// Keep: Required for RN built in Event Emitter Calls.
239239
}
240240

241-
RCT_EXPORT_METHOD(removeListeners : (NSInteger)count) {
241+
RCT_EXPORT_METHOD(removeListeners : (double)count) {
242242
// Keep: Required for RN built in Event Emitter Calls.
243243
}
244244

‎macos/RNCClipboard.m

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ - (dispatch_queue_t)methodQueue
3535
// Keep: Required for RN built in Event Emitter Calls.
3636
}
3737

38-
RCT_EXPORT_METHOD(removeListeners : (NSInteger)count) {
38+
RCT_EXPORT_METHOD(removeListeners : (double)count) {
3939
// Keep: Required for RN built in Event Emitter Calls.
4040
}
4141

0 commit comments

Comments
 (0)
Please sign in to comment.