Skip to content

Commit 4654eb1

Browse files
committed
ios: clean/remove reportNewIncomingCall overloading api
1 parent 130fac1 commit 4654eb1

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
@@ -428,17 +428,6 @@ + (void)reportNewIncomingCall:(NSString *)uuidString
428428
supportsUngrouping:(BOOL)supportsUngrouping
429429
fromPushKit:(BOOL)fromPushKit
430430
payload:(NSDictionary * _Nullable)payload
431-
{
432-
[RNCallKeep reportNewIncomingCall:uuidString handle:handle handleType:handleType hasVideo:hasVideo localizedCallerName:localizedCallerName fromPushKit:fromPushKit payload:payload withCompletionHandler:nil];
433-
}
434-
435-
+ (void)reportNewIncomingCall:(NSString *)uuidString
436-
handle:(NSString *)handle
437-
handleType:(NSString *)handleType
438-
hasVideo:(BOOL)hasVideo
439-
localizedCallerName:(NSString * _Nullable)localizedCallerName
440-
fromPushKit:(BOOL)fromPushKit
441-
payload:(NSDictionary * _Nullable)payload
442431
withCompletionHandler:(void (^_Nullable)(void))completion
443432
{
444433
#ifdef DEBUG
@@ -483,28 +472,6 @@ + (void)reportNewIncomingCall:(NSString *)uuidString
483472
}];
484473
}
485474

486-
// --- overloading functions for backward compatibility and simple api
487-
+ (void)reportNewIncomingCall:(NSString *)uuidString
488-
handle:(NSString *)handle
489-
handleType:(NSString *)handleType
490-
hasVideo:(BOOL)hasVideo
491-
localizedCallerName:(NSString * _Nullable)localizedCallerName
492-
fromPushKit:(BOOL)fromPushKit
493-
{
494-
[RNCallKeep reportNewIncomingCall: uuidString
495-
handle: handle
496-
handleType: handleType
497-
hasVideo: hasVideo
498-
localizedCallerName: localizedCallerName
499-
supportsHolding: YES
500-
supportsDTMF: YES
501-
supportsGrouping: YES
502-
supportsUngrouping: YES
503-
fromPushKit: fromPushKit
504-
payload: nil
505-
withCompletionHandler: nil];
506-
}
507-
508475
- (BOOL)lessThanIos10_2
509476
{
510477
if (_version.majorVersion < 10) {

0 commit comments

Comments
 (0)