File tree Expand file tree Collapse file tree 1 file changed +10
-6
lines changed Expand file tree Collapse file tree 1 file changed +10
-6
lines changed Original file line number Diff line number Diff line change @@ -464,20 +464,24 @@ + (BOOL)application:(UIApplication *)application
464
464
BOOL isAudioCall;
465
465
BOOL isVideoCall;
466
466
467
- // HACK TO AVOID XCODE 10 COMPILE CRASH
468
- // REMOVE ON NEXT MAJOR RELEASE OF RNCALLKIT
467
+ // HACK TO AVOID XCODE 10 COMPILE CRASH
468
+ // REMOVE ON NEXT MAJOR RELEASE OF RNCALLKIT
469
469
#if __IPHONE_OS_VERSION_MAX_ALLOWED >= 130000
470
470
// XCode 11
471
471
// iOS 13 returns an INStartCallIntent userActivity type
472
472
if (@available (iOS 13 , *)) {
473
473
INStartCallIntent *intent = (INStartCallIntent*)interaction.intent ;
474
474
isAudioCall = intent.callCapability == INCallCapabilityAudioCall;
475
475
isVideoCall = intent.callCapability == INCallCapabilityVideoCall;
476
+ } else {
477
+ #endif
478
+ // XCode 10 and below
479
+ isAudioCall = [userActivity.activityType isEqualToString: INStartAudioCallIntentIdentifier];
480
+ isVideoCall = [userActivity.activityType isEqualToString: INStartVideoCallIntentIdentifier];
481
+ // HACK TO AVOID XCODE 10 COMPILE CRASH
482
+ // REMOVE ON NEXT MAJOR RELEASE OF RNCALLKIT
483
+ #if __IPHONE_OS_VERSION_MAX_ALLOWED >= 130000
476
484
}
477
- #else
478
- // XCode 10 and below
479
- isAudioCall = [userActivity.activityType isEqualToString: INStartAudioCallIntentIdentifier];
480
- isVideoCall = [userActivity.activityType isEqualToString: INStartVideoCallIntentIdentifier];
481
485
#endif
482
486
483
487
if (isAudioCall) {
You can’t perform that action at this time.
0 commit comments