|
@@ -262,13 +262,12 @@ BOOL FLEXConstructorsShouldRun() {
|
|
|
+ (UIInterfaceOrientationMask)infoPlistSupportedInterfaceOrientationsMask {
|
|
+ (UIInterfaceOrientationMask)infoPlistSupportedInterfaceOrientationsMask {
|
|
|
#else
|
|
#else
|
|
|
+ (NSUInteger)infoPlistSupportedInterfaceOrientationsMask {
|
|
+ (NSUInteger)infoPlistSupportedInterfaceOrientationsMask {
|
|
|
|
|
+return 0;
|
|
|
#endif
|
|
#endif
|
|
|
NSArray<NSString *> *supportedOrientations = NSBundle.mainBundle.infoDictionary[@"UISupportedInterfaceOrientations"];
|
|
NSArray<NSString *> *supportedOrientations = NSBundle.mainBundle.infoDictionary[@"UISupportedInterfaceOrientations"];
|
|
|
#if !TARGET_OS_TV
|
|
#if !TARGET_OS_TV
|
|
|
UIInterfaceOrientationMask supportedOrientationsMask = 0;
|
|
UIInterfaceOrientationMask supportedOrientationsMask = 0;
|
|
|
- #else
|
|
|
|
|
NSUInteger supportedOrientationsMask = 0;
|
|
NSUInteger supportedOrientationsMask = 0;
|
|
|
- #endif
|
|
|
|
|
if ([supportedOrientations containsObject:@"UIInterfaceOrientationPortrait"]) {
|
|
if ([supportedOrientations containsObject:@"UIInterfaceOrientationPortrait"]) {
|
|
|
supportedOrientationsMask |= UIInterfaceOrientationMaskPortrait;
|
|
supportedOrientationsMask |= UIInterfaceOrientationMaskPortrait;
|
|
|
}
|
|
}
|
|
@@ -282,6 +281,7 @@ BOOL FLEXConstructorsShouldRun() {
|
|
|
supportedOrientationsMask |= UIInterfaceOrientationMaskLandscapeLeft;
|
|
supportedOrientationsMask |= UIInterfaceOrientationMaskLandscapeLeft;
|
|
|
}
|
|
}
|
|
|
return supportedOrientationsMask;
|
|
return supportedOrientationsMask;
|
|
|
|
|
+#endif
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ (UIImage *)thumbnailedImageWithMaxPixelDimension:(NSInteger)dimension fromImageData:(NSData *)data {
|
|
+ (UIImage *)thumbnailedImageWithMaxPixelDimension:(NSInteger)dimension fromImageData:(NSData *)data {
|