Skip to content

Commit 0af9f9e

Browse files
committed
ios: clean/remove reportNewIncomingCall overloading api
1 parent ee625b5 commit 0af9f9e

File tree

2 files changed

+0
-41
lines changed

2 files changed

+0
-41
lines changed

ios/RNCallKeep/RNCallKeep.h

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -36,14 +36,6 @@ continueUserActivity:(NSUserActivity *)userActivity
3636
supportsDTMF:(BOOL)supportsDTMF
3737
supportsGrouping:(BOOL)supportsGrouping
3838
supportsUngrouping:(BOOL)supportsUngrouping
39-
fromPushKit:(BOOL)fromPushKit
40-
payload:(NSDictionary * _Nullable)payload;
41-
42-
+ (void)reportNewIncomingCall:(NSString *)uuidString
43-
handle:(NSString *)handle
44-
handleType:(NSString *)handleType
45-
hasVideo:(BOOL)hasVideo
46-
localizedCallerName:(NSString * _Nullable)localizedCallerName
4739
fromPushKit:(BOOL)fromPushKit
4840
payload:(NSDictionary * _Nullable)payload
4941
withCompletionHandler:(void (^_Nullable)(void))completion;

ios/RNCallKeep/RNCallKeep.m

Lines changed: 0 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -398,17 +398,6 @@ + (void)reportNewIncomingCall:(NSString *)uuidString
398398
supportsUngrouping:(BOOL)supportsUngrouping
399399
fromPushKit:(BOOL)fromPushKit
400400
payload:(NSDictionary * _Nullable)payload
401-
{
402-
[RNCallKeep reportNewIncomingCall:uuidString handle:handle handleType:handleType hasVideo:hasVideo localizedCallerName:localizedCallerName fromPushKit:fromPushKit payload:payload withCompletionHandler:nil];
403-
}
404-
405-
+ (void)reportNewIncomingCall:(NSString *)uuidString
406-
handle:(NSString *)handle
407-
handleType:(NSString *)handleType
408-
hasVideo:(BOOL)hasVideo
409-
localizedCallerName:(NSString * _Nullable)localizedCallerName
410-
fromPushKit:(BOOL)fromPushKit
411-
payload:(NSDictionary * _Nullable)payload
412401
withCompletionHandler:(void (^_Nullable)(void))completion
413402
{
414403
#ifdef DEBUG
@@ -453,28 +442,6 @@ + (void)reportNewIncomingCall:(NSString *)uuidString
453442
}];
454443
}
455444

456-
// --- overloading functions for backward compatibility and simple api
457-
+ (void)reportNewIncomingCall:(NSString *)uuidString
458-
handle:(NSString *)handle
459-
handleType:(NSString *)handleType
460-
hasVideo:(BOOL)hasVideo
461-
localizedCallerName:(NSString * _Nullable)localizedCallerName
462-
fromPushKit:(BOOL)fromPushKit
463-
{
464-
[RNCallKeep reportNewIncomingCall: uuidString
465-
handle: handle
466-
handleType: handleType
467-
hasVideo: hasVideo
468-
localizedCallerName: localizedCallerName
469-
supportsHolding: YES
470-
supportsDTMF: YES
471-
supportsGrouping: YES
472-
supportsUngrouping: YES
473-
fromPushKit: fromPushKit
474-
payload: nil
475-
withCompletionHandler: nil];
476-
}
477-
478445
- (BOOL)lessThanIos10_2
479446
{
480447
if (_version.majorVersion < 10) {

0 commit comments

Comments
 (0)