Skip to content

Commit

Permalink
fix(ios): gaurd code for MediaModule on xcode 11 to avoid compile issues
Browse files Browse the repository at this point in the history
  • Loading branch information
sgtcoolguy committed Sep 14, 2020
1 parent fe81a9b commit a9dae74
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions iphone/Classes/MediaModule.m
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,9 @@
#ifdef USE_TI_MEDIAVIDEOPLAYER
#import "TiMediaVideoPlayerProxy.h"
#endif
#if IS_SDK_IOS_14
#import <UniformTypeIdentifiers/UTCoreTypes.h>
#endif

// by default, we want to make the camera fullscreen and
// these transform values will scale it when we have our own overlay
Expand Down Expand Up @@ -2014,7 +2016,11 @@ - (void)popoverPresentationControllerDidDismissPopover:(UIPopoverPresentationCon
- (void)presentationControllerDidDismiss:(UIPresentationController *)presentationController
{
#if defined(USE_TI_MEDIASHOWCAMERA) || defined(USE_TI_MEDIAOPENPHOTOGALLERY) || defined(USE_TI_MEDIASTARTVIDEOEDITING)
#if IS_SDK_IOS_14
[self closeModalPicker:picker ?: _phPicker];
#else
[self closeModalPicker:picker];
#endif
[self sendPickerCancel];
#endif
}
Expand Down

0 comments on commit a9dae74

Please sign in to comment.