Skip to content

Commit 4144c96

Browse files
committed
fix(ios): gaurd code for MediaModule on xcode 11 to avoid compile issues
1 parent b9e5f26 commit 4144c96

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

iphone/Classes/MediaModule.m

+6
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,9 @@
3636
#ifdef USE_TI_MEDIAVIDEOPLAYER
3737
#import"TiMediaVideoPlayerProxy.h"
3838
#endif
39+
#if IS_SDK_IOS_14
3940
#import<UniformTypeIdentifiers/UTCoreTypes.h>
41+
#endif
4042

4143
// by default, we want to make the camera fullscreen and
4244
// these transform values will scale it when we have our own overlay
@@ -2014,7 +2016,11 @@ - (void)popoverPresentationControllerDidDismissPopover:(UIPopoverPresentationCon
20142016
- (void)presentationControllerDidDismiss:(UIPresentationController *)presentationController
20152017
{
20162018
#if defined(USE_TI_MEDIASHOWCAMERA) || defined(USE_TI_MEDIAOPENPHOTOGALLERY) || defined(USE_TI_MEDIASTARTVIDEOEDITING)
2019+
#if IS_SDK_IOS_14
20172020
[selfcloseModalPicker:picker ?: _phPicker];
2021+
#else
2022+
[selfcloseModalPicker:picker];
2023+
#endif
20182024
[selfsendPickerCancel];
20192025
#endif
20202026
}

0 commit comments

Comments
 (0)
close