This commit is contained in:
Isaac 2025-06-18 17:24:21 +02:00
parent 8d40ccce0f
commit 1b2cdb9a9b
357 changed files with 1103 additions and 856 deletions

View File

@ -29,8 +29,7 @@ objc_library(
"PublicHeaders/**/*.h", "PublicHeaders/**/*.h",
]), ]),
copts = [ copts = [
"-I{}/PublicHeaders/LegacyComponents".format(package_name()), "-Werror",
#"-Werror",
], ],
includes = [ includes = [
"PublicHeaders", "PublicHeaders",

View File

@ -1,20 +1,20 @@
#import <Foundation/Foundation.h> #import <Foundation/Foundation.h>
#import <UIKit/UIKit.h> #import <UIKit/UIKit.h>
#import <LegacyComponents/ActionStage.h>
#import <LegacyComponents/ASActor.h> #import <LegacyComponents/ASActor.h>
#import <LegacyComponents/ASHandle.h> #import <LegacyComponents/ASHandle.h>
#import <LegacyComponents/ASQueue.h> #import <LegacyComponents/ASQueue.h>
#import <LegacyComponents/ASWatcher.h> #import <LegacyComponents/ASWatcher.h>
#import <LegacyComponents/AVURLAsset+TGMediaItem.h> #import <LegacyComponents/AVURLAsset+TGMediaItem.h>
#import <LegacyComponents/ActionStage.h>
#import <LegacyComponents/Freedom.h> #import <LegacyComponents/Freedom.h>
#import <LegacyComponents/FreedomUIKit.h> #import <LegacyComponents/FreedomUIKit.h>
#import <LegacyComponents/JNWSpringAnimation.h> #import <LegacyComponents/JNWSpringAnimation.h>
#import <LegacyComponents/LegacyComponents.h>
#import <LegacyComponents/LegacyComponentsAccessChecker.h> #import <LegacyComponents/LegacyComponentsAccessChecker.h>
#import <LegacyComponents/LegacyComponentsContext.h> #import <LegacyComponents/LegacyComponentsContext.h>
#import <LegacyComponents/LegacyComponentsGlobals.h> #import <LegacyComponents/LegacyComponentsGlobals.h>
#import <LegacyComponents/LegacyHTTPRequestOperation.h> #import <LegacyComponents/LegacyHTTPRequestOperation.h>
#import <LegacyComponents/lmdb.h>
#import <LegacyComponents/NSInputStream+TL.h> #import <LegacyComponents/NSInputStream+TL.h>
#import <LegacyComponents/NSObject+TGLock.h> #import <LegacyComponents/NSObject+TGLock.h>
#import <LegacyComponents/PGCamera.h> #import <LegacyComponents/PGCamera.h>
@ -85,8 +85,8 @@
#import <LegacyComponents/TGCheckButtonView.h> #import <LegacyComponents/TGCheckButtonView.h>
#import <LegacyComponents/TGContactMediaAttachment.h> #import <LegacyComponents/TGContactMediaAttachment.h>
#import <LegacyComponents/TGConversation.h> #import <LegacyComponents/TGConversation.h>
#import <LegacyComponents/TGDataResource.h>
#import <LegacyComponents/TGDatabaseMessageDraft.h> #import <LegacyComponents/TGDatabaseMessageDraft.h>
#import <LegacyComponents/TGDataResource.h>
#import <LegacyComponents/TGDateUtils.h> #import <LegacyComponents/TGDateUtils.h>
#import <LegacyComponents/TGDocumentAttributeAnimated.h> #import <LegacyComponents/TGDocumentAttributeAnimated.h>
#import <LegacyComponents/TGDocumentAttributeAudio.h> #import <LegacyComponents/TGDocumentAttributeAudio.h>
@ -98,6 +98,7 @@
#import <LegacyComponents/TGDoubleTapGestureRecognizer.h> #import <LegacyComponents/TGDoubleTapGestureRecognizer.h>
#import <LegacyComponents/TGEmbedPIPButton.h> #import <LegacyComponents/TGEmbedPIPButton.h>
#import <LegacyComponents/TGEmbedPIPPullArrowView.h> #import <LegacyComponents/TGEmbedPIPPullArrowView.h>
#import <LegacyComponents/TGFileUtils.h>
#import <LegacyComponents/TGFont.h> #import <LegacyComponents/TGFont.h>
#import <LegacyComponents/TGForwardedMessageMediaAttachment.h> #import <LegacyComponents/TGForwardedMessageMediaAttachment.h>
#import <LegacyComponents/TGFullscreenContainerView.h> #import <LegacyComponents/TGFullscreenContainerView.h>
@ -121,9 +122,10 @@
#import <LegacyComponents/TGLabel.h> #import <LegacyComponents/TGLabel.h>
#import <LegacyComponents/TGListsTableView.h> #import <LegacyComponents/TGListsTableView.h>
#import <LegacyComponents/TGLiveUploadInterface.h> #import <LegacyComponents/TGLiveUploadInterface.h>
#import <LegacyComponents/TGLocalMessageMetaMediaAttachment.h>
#import <LegacyComponents/TGLocalization.h> #import <LegacyComponents/TGLocalization.h>
#import <LegacyComponents/TGLocalMessageMetaMediaAttachment.h>
#import <LegacyComponents/TGLocationMediaAttachment.h> #import <LegacyComponents/TGLocationMediaAttachment.h>
#import <LegacyComponents/TGMediaAsset+TGMediaEditableItem.h>
#import <LegacyComponents/TGMediaAsset.h> #import <LegacyComponents/TGMediaAsset.h>
#import <LegacyComponents/TGMediaAssetFetchResult.h> #import <LegacyComponents/TGMediaAssetFetchResult.h>
#import <LegacyComponents/TGMediaAssetFetchResultChange.h> #import <LegacyComponents/TGMediaAssetFetchResultChange.h>
@ -140,9 +142,19 @@
#import <LegacyComponents/TGMediaAvatarMenuMixin.h> #import <LegacyComponents/TGMediaAvatarMenuMixin.h>
#import <LegacyComponents/TGMediaEditingContext.h> #import <LegacyComponents/TGMediaEditingContext.h>
#import <LegacyComponents/TGMediaOriginInfo.h> #import <LegacyComponents/TGMediaOriginInfo.h>
#import <LegacyComponents/TGMediaPickerCell.h>
#import <LegacyComponents/TGMediaPickerController.h>
#import <LegacyComponents/TGMediaPickerGalleryInterfaceView.h> #import <LegacyComponents/TGMediaPickerGalleryInterfaceView.h>
#import <LegacyComponents/TGMediaPickerGalleryItem.h>
#import <LegacyComponents/TGMediaPickerGalleryModel.h> #import <LegacyComponents/TGMediaPickerGalleryModel.h>
#import <LegacyComponents/TGMediaPickerGalleryPhotoItem.h>
#import <LegacyComponents/TGMediaPickerGallerySelectedItemsModel.h> #import <LegacyComponents/TGMediaPickerGallerySelectedItemsModel.h>
#import <LegacyComponents/TGMediaPickerGalleryVideoItem.h>
#import <LegacyComponents/TGMediaPickerGalleryVideoItemView.h>
#import <LegacyComponents/TGMediaPickerLayoutMetrics.h>
#import <LegacyComponents/TGMediaPickerModernGalleryMixin.h>
#import <LegacyComponents/TGMediaPickerSendActionSheetController.h>
#import <LegacyComponents/TGMediaPickerToolbarView.h>
#import <LegacyComponents/TGMediaSelectionContext.h> #import <LegacyComponents/TGMediaSelectionContext.h>
#import <LegacyComponents/TGMediaVideoConverter.h> #import <LegacyComponents/TGMediaVideoConverter.h>
#import <LegacyComponents/TGMemoryImageCache.h> #import <LegacyComponents/TGMemoryImageCache.h>
@ -174,6 +186,7 @@
#import <LegacyComponents/TGMessageImageViewOverlayView.h> #import <LegacyComponents/TGMessageImageViewOverlayView.h>
#import <LegacyComponents/TGMessageViewCountContentProperty.h> #import <LegacyComponents/TGMessageViewCountContentProperty.h>
#import <LegacyComponents/TGModernBackToolbarButton.h> #import <LegacyComponents/TGModernBackToolbarButton.h>
#import <LegacyComponents/TGModernBarButton.h>
#import <LegacyComponents/TGModernButton.h> #import <LegacyComponents/TGModernButton.h>
#import <LegacyComponents/TGModernCache.h> #import <LegacyComponents/TGModernCache.h>
#import <LegacyComponents/TGModernConversationInputMicButton.h> #import <LegacyComponents/TGModernConversationInputMicButton.h>
@ -203,16 +216,16 @@
#import <LegacyComponents/TGModernGalleryZoomableItemViewContent.h> #import <LegacyComponents/TGModernGalleryZoomableItemViewContent.h>
#import <LegacyComponents/TGModernGalleryZoomableScrollView.h> #import <LegacyComponents/TGModernGalleryZoomableScrollView.h>
#import <LegacyComponents/TGModernGalleryZoomableScrollViewSwipeGestureRecognizer.h> #import <LegacyComponents/TGModernGalleryZoomableScrollViewSwipeGestureRecognizer.h>
#import <LegacyComponents/TGModernMediaListItem.h>
#import <LegacyComponents/TGModernToolbarButton.h> #import <LegacyComponents/TGModernToolbarButton.h>
#import <LegacyComponents/TGNavigationBar.h> #import <LegacyComponents/TGNavigationBar.h>
#import <LegacyComponents/TGNavigationController.h> #import <LegacyComponents/TGNavigationController.h>
#import <LegacyComponents/TGObserverProxy.h> #import <LegacyComponents/TGObserverProxy.h>
#import <LegacyComponents/TGOverlayController.h> #import <LegacyComponents/TGOverlayController.h>
#import <LegacyComponents/TGOverlayControllerWindow.h> #import <LegacyComponents/TGOverlayControllerWindow.h>
#import <LegacyComponents/TGPIPAblePlayerView.h> #import <LegacyComponents/TGPaintingData.h>
#import <LegacyComponents/TGPaintShader.h> #import <LegacyComponents/TGPaintShader.h>
#import <LegacyComponents/TGPaintUtils.h> #import <LegacyComponents/TGPaintUtils.h>
#import <LegacyComponents/TGPaintingData.h>
#import <LegacyComponents/TGPassportAttachMenu.h> #import <LegacyComponents/TGPassportAttachMenu.h>
#import <LegacyComponents/TGPassportICloud.h> #import <LegacyComponents/TGPassportICloud.h>
#import <LegacyComponents/TGPassportMRZ.h> #import <LegacyComponents/TGPassportMRZ.h>
@ -220,23 +233,34 @@
#import <LegacyComponents/TGPassportScanController.h> #import <LegacyComponents/TGPassportScanController.h>
#import <LegacyComponents/TGPeerIdAdapter.h> #import <LegacyComponents/TGPeerIdAdapter.h>
#import <LegacyComponents/TGPhoneUtils.h> #import <LegacyComponents/TGPhoneUtils.h>
#import <LegacyComponents/TGPhotoAvatarCropView.h>
#import <LegacyComponents/TGPhotoCaptionInputMixin.h>
#import <LegacyComponents/TGPhotoEditorAnimation.h> #import <LegacyComponents/TGPhotoEditorAnimation.h>
#import <LegacyComponents/TGPhotoEditorButton.h> #import <LegacyComponents/TGPhotoEditorButton.h>
#import <LegacyComponents/TGPhotoEditorController.h> #import <LegacyComponents/TGPhotoEditorController.h>
#import <LegacyComponents/TGPhotoEditorInterfaceAssets.h> #import <LegacyComponents/TGPhotoEditorInterfaceAssets.h>
#import <LegacyComponents/TGPhotoEditorSliderView.h> #import <LegacyComponents/TGPhotoEditorSliderView.h>
#import <LegacyComponents/TGPhotoEditorSparseView.h>
#import <LegacyComponents/TGPhotoEditorTabController.h>
#import <LegacyComponents/TGPhotoEditorToolView.h> #import <LegacyComponents/TGPhotoEditorToolView.h>
#import <LegacyComponents/TGPhotoEditorUtils.h> #import <LegacyComponents/TGPhotoEditorUtils.h>
#import <LegacyComponents/TGPhotoMaskPosition.h>
#import <LegacyComponents/TGPhotoPaintEntity.h>
#import <LegacyComponents/TGPhotoPaintEntityView.h>
#import <LegacyComponents/TGPhotoPaintStickerEntity.h>
#import <LegacyComponents/TGPhotoPaintStickersContext.h> #import <LegacyComponents/TGPhotoPaintStickersContext.h>
#import <LegacyComponents/TGPhotoPaintTextEntity.h>
#import <LegacyComponents/TGPhotoToolbarView.h> #import <LegacyComponents/TGPhotoToolbarView.h>
#import <LegacyComponents/TGPhotoVideoEditor.h> #import <LegacyComponents/TGPhotoVideoEditor.h>
#import <LegacyComponents/TGPIPAblePlayerView.h>
#import <LegacyComponents/TGPluralization.h> #import <LegacyComponents/TGPluralization.h>
#import <LegacyComponents/TGProgressSpinnerView.h> #import <LegacyComponents/TGProgressSpinnerView.h>
#import <LegacyComponents/TGProgressWindow.h> #import <LegacyComponents/TGProgressWindow.h>
#import <LegacyComponents/TGProxyWindow.h> #import <LegacyComponents/TGProxyWindow.h>
#import <LegacyComponents/TGRTLScreenEdgePanGestureRecognizer.h>
#import <LegacyComponents/TGReplyMarkupAttachment.h> #import <LegacyComponents/TGReplyMarkupAttachment.h>
#import <LegacyComponents/TGReplyMessageMediaAttachment.h> #import <LegacyComponents/TGReplyMessageMediaAttachment.h>
#import <LegacyComponents/TGRTLScreenEdgePanGestureRecognizer.h>
#import <LegacyComponents/TGSecretTimerMenu.h>
#import <LegacyComponents/TGStaticBackdropAreaData.h> #import <LegacyComponents/TGStaticBackdropAreaData.h>
#import <LegacyComponents/TGStaticBackdropImageData.h> #import <LegacyComponents/TGStaticBackdropImageData.h>
#import <LegacyComponents/TGStickerAssociation.h> #import <LegacyComponents/TGStickerAssociation.h>
@ -244,15 +268,22 @@
#import <LegacyComponents/TGStickerPackReference.h> #import <LegacyComponents/TGStickerPackReference.h>
#import <LegacyComponents/TGStringUtils.h> #import <LegacyComponents/TGStringUtils.h>
#import <LegacyComponents/TGTextCheckingResult.h> #import <LegacyComponents/TGTextCheckingResult.h>
#import <LegacyComponents/TGTextField.h>
#import <LegacyComponents/TGTimerTarget.h> #import <LegacyComponents/TGTimerTarget.h>
#import <LegacyComponents/TGToolbarButton.h> #import <LegacyComponents/TGToolbarButton.h>
#import <LegacyComponents/TGTooltipView.h> #import <LegacyComponents/TGTooltipView.h>
#import <LegacyComponents/TGUnsupportedMediaAttachment.h> #import <LegacyComponents/TGUnsupportedMediaAttachment.h>
#import <LegacyComponents/TGViaUserAttachment.h> #import <LegacyComponents/TGViaUserAttachment.h>
#import <LegacyComponents/TGVideoCameraGLRenderer.h>
#import <LegacyComponents/TGVideoCameraGLView.h>
#import <LegacyComponents/TGVideoCameraMovieRecorder.h>
#import <LegacyComponents/TGVideoEditAdjustments.h> #import <LegacyComponents/TGVideoEditAdjustments.h>
#import <LegacyComponents/TGVideoInfo.h> #import <LegacyComponents/TGVideoInfo.h>
#import <LegacyComponents/TGVideoMediaAttachment.h> #import <LegacyComponents/TGVideoMediaAttachment.h>
#import <LegacyComponents/TGVideoMessageCaptureController.h> #import <LegacyComponents/TGVideoMessageCaptureController.h>
#import <LegacyComponents/TGVideoMessageControls.h>
#import <LegacyComponents/TGVideoMessageRingView.h>
#import <LegacyComponents/TGVideoMessageScrubber.h>
#import <LegacyComponents/TGViewController+TGRecursiveEnumeration.h> #import <LegacyComponents/TGViewController+TGRecursiveEnumeration.h>
#import <LegacyComponents/TGViewController.h> #import <LegacyComponents/TGViewController.h>
#import <LegacyComponents/TGWeakDelegate.h> #import <LegacyComponents/TGWeakDelegate.h>
@ -260,7 +291,7 @@
#import <LegacyComponents/TGWebPageMediaAttachment.h> #import <LegacyComponents/TGWebPageMediaAttachment.h>
#import <LegacyComponents/UICollectionView+Utils.h> #import <LegacyComponents/UICollectionView+Utils.h>
#import <LegacyComponents/UIControl+HitTestEdgeInsets.h> #import <LegacyComponents/UIControl+HitTestEdgeInsets.h>
#import <LegacyComponents/UIDevice+PlatformInfo.h>
#import <LegacyComponents/UIImage+TG.h> #import <LegacyComponents/UIImage+TG.h>
#import <LegacyComponents/UIImage+TGMediaEditableItem.h> #import <LegacyComponents/UIImage+TGMediaEditableItem.h>
#import <LegacyComponents/UIScrollView+TGHacks.h> #import <LegacyComponents/UIScrollView+TGHacks.h>
#import <LegacyComponents/lmdb.h>

View File

@ -1,4 +1,4 @@
#import "TGMediaAttachment.h" #import <LegacyComponents/TGMediaAttachment.h>
#import <LegacyComponents/TGWebDocument.h> #import <LegacyComponents/TGWebDocument.h>

View File

@ -1,4 +1,4 @@
#import "TGMediaAttachment.h" #import <LegacyComponents/TGMediaAttachment.h>
#import <LegacyComponents/TGMessageEntityUrl.h> #import <LegacyComponents/TGMessageEntityUrl.h>
#import <LegacyComponents/TGMessageEntityEmail.h> #import <LegacyComponents/TGMessageEntityEmail.h>

View File

@ -1,5 +1,3 @@
#import <LegacyComponents/LegacyComponents.h>
#import <LegacyComponents/TGOverlayController.h> #import <LegacyComponents/TGOverlayController.h>
#import <LegacyComponents/LegacyComponentsContext.h> #import <LegacyComponents/LegacyComponentsContext.h>

View File

@ -1,4 +1,5 @@
#import <LegacyComponents/LegacyComponents.h> #import <LegacyComponents/TGViewController.h>
#import <LegacyComponents/LegacyComponentsContext.h>
@class TGPresentation; @class TGPresentation;
@class TGPassportMRZ; @class TGPassportMRZ;

View File

@ -1,10 +1,9 @@
#import <LegacyComponents/LegacyComponents.h>
#import <LegacyComponents/TGMediaEditingContext.h> #import <LegacyComponents/TGMediaEditingContext.h>
#import <LegacyComponents/TGPhotoToolbarView.h> #import <LegacyComponents/TGPhotoToolbarView.h>
#import <LegacyComponents/LegacyComponentsContext.h> #import <LegacyComponents/LegacyComponentsContext.h>
#import <LegacyComponents/TGOverlayController.h>
#import <AVFoundation/AVFoundation.h>
@class SSignal; @class SSignal;
@class PGCameraShotMetadata; @class PGCameraShotMetadata;

View File

@ -1,5 +1,5 @@
#import <LegacyComponents/LegacyComponents.h> #import <LegacyComponents/TGViewController.h>
#import <LegacyComponents/TGMediaEditingContext.h>
#import <LegacyComponents/TGPhotoEditorController.h> #import <LegacyComponents/TGPhotoEditorController.h>
@protocol TGMediaEditAdjustments; @protocol TGMediaEditAdjustments;

View File

@ -1,4 +1,11 @@
#import <LegacyComponents/LegacyComponents.h> #import <UIKit/UIKit.h>
#import <LegacyComponents/TGPhotoPaintStickersContext.h>
#import <LegacyComponents/LegacyComponentsContext.h>
#import <LegacyComponents/TGViewController.h>
#import <LegacyComponents/TGVideoEditAdjustments.h>
#import <LegacyComponents/TGMediaEditingContext.h>
#import <LegacyComponents/TGMediaSelectionContext.h>
@interface TGPhotoVideoEditor : NSObject @interface TGPhotoVideoEditor : NSObject

View File

@ -1,6 +1,7 @@
#import <Foundation/Foundation.h> #import <Foundation/Foundation.h>
#import <LegacyComponents/LegacyComponents.h> #import <LegacyComponents/PSCoding.h>
#import <LegacyComponents/TGStickerPackReference.h>
@interface TGStickerPack : NSObject <NSCoding, PSCoding> @interface TGStickerPack : NSObject <NSCoding, PSCoding>

View File

@ -1,4 +1,8 @@
#import <LegacyComponents/LegacyComponents.h> #import <LegacyComponents/TGViewController.h>
#import <LegacyComponents/TGOverlayController.h>
#import <LegacyComponents/LegacyComponentsContext.h>
#import <LegacyComponents/TGVideoMessageCaptureController.h>
#import <LegacyComponents/TGLiveUploadInterface.h>
@class TGVideoEditAdjustments; @class TGVideoEditAdjustments;
@class TGModernConversationInputMicPallete; @class TGModernConversationInputMicPallete;

View File

@ -1,6 +1,6 @@
#import "ASActor.h" #import <LegacyComponents/ASActor.h>
#import "ActionStage.h" #import <LegacyComponents/ActionStage.h>
#import "LegacyComponentsInternal.h" #import "LegacyComponentsInternal.h"

View File

@ -1,8 +1,8 @@
#import "ASHandle.h" #import <LegacyComponents/ASHandle.h>
#import <LegacyComponents/LegacyComponents.h> #import <LegacyComponents/LegacyComponents.h>
#import "ASWatcher.h" #import <LegacyComponents/ASWatcher.h>
@interface ASHandle () @interface ASHandle ()
{ {

View File

@ -1,6 +1,6 @@
#import "ASQueue.h" #import <LegacyComponents/ASQueue.h>
@interface ASQueue () @interface ASQueue ()
{ {

View File

@ -1,4 +1,4 @@
#import "AVURLAsset+TGMediaItem.h" #import <LegacyComponents/AVURLAsset+TGMediaItem.h>
#import <LegacyComponents/TGMediaAssetImageSignals.h> #import <LegacyComponents/TGMediaAssetImageSignals.h>
#import <LegacyComponents/TGPhotoEditorUtils.h> #import <LegacyComponents/TGPhotoEditorUtils.h>

View File

@ -1,10 +1,10 @@
#import "ActionStage.h" #import <LegacyComponents/ActionStage.h>
#import <SSignalKit/SSignalKit.h> #import <SSignalKit/SSignalKit.h>
#import "LegacyComponentsInternal.h" #import "LegacyComponentsInternal.h"
#import "ASActor.h" #import <LegacyComponents/ASActor.h>
#import <os/lock.h> #import <os/lock.h>

View File

@ -1,4 +1,4 @@
#import "Freedom.h" #import <LegacyComponents/Freedom.h>
#import <objc/runtime.h> #import <objc/runtime.h>
#import <objc/message.h> #import <objc/message.h>

View File

@ -1,13 +1,13 @@
#import "FreedomUIKit.h" #import <LegacyComponents/FreedomUIKit.h>
#import "LegacyComponentsInternal.h" #import "LegacyComponentsInternal.h"
#import "Freedom.h" #import <LegacyComponents/Freedom.h>
#import <objc/runtime.h> #import <objc/runtime.h>
#import <objc/message.h> #import <objc/message.h>
#import "TGHacks.h" #import <LegacyComponents/TGHacks.h>
#import "TGNavigationController.h" #import <LegacyComponents/TGNavigationController.h>
#define DEBUG_KEYBOARD_QUEUE false #define DEBUG_KEYBOARD_QUEUE false

View File

@ -5,6 +5,10 @@
#import "LegacyComponentsInternal.h" #import "LegacyComponentsInternal.h"
#import "GLProgram.h" #import "GLProgram.h"
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wdeprecated-declarations"
// START:typedefs // START:typedefs
#pragma mark Function Pointer Definitions #pragma mark Function Pointer Definitions
typedef void (*GLInfoFunction)(GLuint program, typedef void (*GLInfoFunction)(GLuint program,
@ -272,3 +276,5 @@ typedef void (*GLLogFunction) (GLuint program,
} }
// END:dealloc // END:dealloc
@end @end
#pragma clang diagnostic pop

View File

@ -10,7 +10,12 @@ typedef enum { kGPUImageNoRotation, kGPUImageRotateLeft, kGPUImageRotateRight, k
@property(readonly, nonatomic) dispatch_queue_t contextQueue; @property(readonly, nonatomic) dispatch_queue_t contextQueue;
@property(readwrite, retain, nonatomic) GLProgram *currentShaderProgram; @property(readwrite, retain, nonatomic) GLProgram *currentShaderProgram;
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wdeprecated-declarations"
@property(readonly, retain, nonatomic) EAGLContext *context; @property(readonly, retain, nonatomic) EAGLContext *context;
#pragma clang diagnostic pop
@property(readonly, nonatomic) CVOpenGLESTextureCacheRef coreVideoTextureCache; @property(readonly, nonatomic) CVOpenGLESTextureCacheRef coreVideoTextureCache;
@property(readonly, nonatomic) GPUImageFramebufferCache *framebufferCache; @property(readonly, nonatomic) GPUImageFramebufferCache *framebufferCache;
@ -33,7 +38,10 @@ typedef enum { kGPUImageNoRotation, kGPUImageRotateLeft, kGPUImageRotateRight, k
- (void)presentBufferForDisplay; - (void)presentBufferForDisplay;
- (GLProgram *)programForVertexShaderString:(NSString *)vertexShaderString fragmentShaderString:(NSString *)fragmentShaderString; - (GLProgram *)programForVertexShaderString:(NSString *)vertexShaderString fragmentShaderString:(NSString *)fragmentShaderString;
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wdeprecated-declarations"
- (void)useSharegroup:(EAGLSharegroup *)sharegroup; - (void)useSharegroup:(EAGLSharegroup *)sharegroup;
#pragma clang diagnostic pop
// Manage fast texture upload // Manage fast texture upload
+ (BOOL)supportsFastTextureUpload; + (BOOL)supportsFastTextureUpload;

View File

@ -2,6 +2,9 @@
#import <OpenGLES/EAGLDrawable.h> #import <OpenGLES/EAGLDrawable.h>
#import <AVFoundation/AVFoundation.h> #import <AVFoundation/AVFoundation.h>
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wdeprecated-declarations"
#define MAXSHADERPROGRAMSALLOWEDINCACHE 40 #define MAXSHADERPROGRAMSALLOWEDINCACHE 40
@interface GPUImageContext() @interface GPUImageContext()
@ -311,3 +314,5 @@ static void *openGLESContextQueueKey;
} }
@end @end
#pragma clang diagnostic pop

View File

@ -3,6 +3,9 @@
#import "LegacyComponentsInternal.h" #import "LegacyComponentsInternal.h"
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wdeprecated-declarations"
// Hardcode the vertex shader for standard filters, but this can be overridden // Hardcode the vertex shader for standard filters, but this can be overridden
NSString *const kGPUImageVertexShaderString = SHADER_STRING NSString *const kGPUImageVertexShaderString = SHADER_STRING
( (
@ -782,3 +785,5 @@ NSString *const kGPUImagePassthroughFragmentShaderString = SHADER_STRING
} }
@end @end
#pragma clang diagnostic pop

View File

@ -1,6 +1,9 @@
#import "GPUImageFramebuffer.h" #import "GPUImageFramebuffer.h"
#import "GPUImageOutput.h" #import "GPUImageOutput.h"
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wdeprecated-declarations"
@interface GPUImageFramebuffer() @interface GPUImageFramebuffer()
{ {
GLuint framebuffer; GLuint framebuffer;
@ -493,3 +496,5 @@ void dataProviderUnlockCallback (void *info, __unused const void *data, __unused
} }
@end @end
#pragma clang diagnostic pop

View File

@ -168,7 +168,10 @@
[framebufferCache removeAllObjects]; [framebufferCache removeAllObjects];
[framebufferTypeCounts removeAllObjects]; [framebufferTypeCounts removeAllObjects];
#if TARGET_IPHONE_SIMULATOR || TARGET_OS_IPHONE #if TARGET_IPHONE_SIMULATOR || TARGET_OS_IPHONE
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wdeprecated-declarations"
CVOpenGLESTextureCacheFlush([[GPUImageContext sharedImageProcessingContext] coreVideoTextureCache], 0); CVOpenGLESTextureCacheFlush([[GPUImageContext sharedImageProcessingContext] coreVideoTextureCache], 0);
#pragma clang diagnostic pop
#else #else
#endif #endif
}); });

View File

@ -1,5 +1,8 @@
#import "GPUImageGaussianBlurFilter.h" #import "GPUImageGaussianBlurFilter.h"
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wdeprecated-declarations"
@implementation GPUImageGaussianBlurFilter @implementation GPUImageGaussianBlurFilter
@synthesize texelSpacingMultiplier = _texelSpacingMultiplier; @synthesize texelSpacingMultiplier = _texelSpacingMultiplier;
@ -483,3 +486,5 @@
} }
@end @end
#pragma clang diagnostic pop

View File

@ -1,5 +1,8 @@
#import "GPUImageSharpenFilter.h" #import "GPUImageSharpenFilter.h"
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wdeprecated-declarations"
NSString *const kGPUImageSharpenVertexShaderString = SHADER_STRING NSString *const kGPUImageSharpenVertexShaderString = SHADER_STRING
( (
attribute vec4 position; attribute vec4 position;
@ -118,3 +121,4 @@ NSString *const kGPUImageSharpenFragmentShaderString = SHADER_STRING
@end @end
#pragma clang diagnostic pop

View File

@ -1,5 +1,8 @@
#import "GPUImageTextureInput.h" #import "GPUImageTextureInput.h"
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wdeprecated-declarations"
@implementation GPUImageTextureInput @implementation GPUImageTextureInput
{ {
CIContext *ciContext; CIContext *ciContext;
@ -141,3 +144,5 @@
} }
@end @end
#pragma clang diagnostic pop

View File

@ -1,5 +1,7 @@
#import "GPUImageThreeInputFilter.h" #import "GPUImageThreeInputFilter.h"
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wdeprecated-declarations"
NSString *const kGPUImageThreeInputTextureVertexShaderString = SHADER_STRING NSString *const kGPUImageThreeInputTextureVertexShaderString = SHADER_STRING
( (
@ -326,3 +328,5 @@ NSString *const kGPUImageThreeInputTextureVertexShaderString = SHADER_STRING
} }
@end @end
#pragma clang diagnostic pop

View File

@ -1,5 +1,8 @@
#import "GPUImageToneCurveFilter.h" #import "GPUImageToneCurveFilter.h"
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wdeprecated-declarations"
#pragma mark - #pragma mark -
#pragma mark GPUImageToneCurveFilter Implementation #pragma mark GPUImageToneCurveFilter Implementation
@ -454,3 +457,5 @@ NSString *const kGPUImageToneCurveFragmentShaderString = SHADER_STRING
} }
@end @end
#pragma clang diagnostic pop

View File

@ -1,5 +1,8 @@
#import "GPUImageTwoInputFilter.h" #import "GPUImageTwoInputFilter.h"
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wdeprecated-declarations"
NSString *const kGPUImageTwoInputTextureVertexShaderString = SHADER_STRING NSString *const kGPUImageTwoInputTextureVertexShaderString = SHADER_STRING
( (
attribute vec4 position; attribute vec4 position;
@ -213,8 +216,6 @@ NSString *const kGPUImageTwoInputTextureVertexShaderString = SHADER_STRING
return; return;
} }
BOOL updatedMovieFrameOppositeStillImage = NO;
if (textureIndex == 0) if (textureIndex == 0)
{ {
hasReceivedFirstFrame = YES; hasReceivedFirstFrame = YES;
@ -228,7 +229,6 @@ NSString *const kGPUImageTwoInputTextureVertexShaderString = SHADER_STRING
{ {
if CMTIME_IS_INDEFINITE(secondFrameTime) if CMTIME_IS_INDEFINITE(secondFrameTime)
{ {
updatedMovieFrameOppositeStillImage = YES;
} }
} }
} }
@ -245,7 +245,6 @@ NSString *const kGPUImageTwoInputTextureVertexShaderString = SHADER_STRING
{ {
if CMTIME_IS_INDEFINITE(firstFrameTime) if CMTIME_IS_INDEFINITE(firstFrameTime)
{ {
updatedMovieFrameOppositeStillImage = YES;
} }
} }
} }
@ -261,3 +260,5 @@ NSString *const kGPUImageTwoInputTextureVertexShaderString = SHADER_STRING
} }
@end @end
#pragma clang diagnostic pop

View File

@ -1,5 +1,8 @@
#import "GPUImageTwoPassFilter.h" #import "GPUImageTwoPassFilter.h"
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wdeprecated-declarations"
@implementation GPUImageTwoPassFilter @implementation GPUImageTwoPassFilter
#pragma mark - #pragma mark -
@ -199,3 +202,5 @@
} }
@end @end
#pragma clang diagnostic pop

View File

@ -1,5 +1,8 @@
#import "GPUImageTwoPassTextureSamplingFilter.h" #import "GPUImageTwoPassTextureSamplingFilter.h"
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wdeprecated-declarations"
@implementation GPUImageTwoPassTextureSamplingFilter @implementation GPUImageTwoPassTextureSamplingFilter
@synthesize verticalTexelSpacing = _verticalTexelSpacing; @synthesize verticalTexelSpacing = _verticalTexelSpacing;
@ -83,3 +86,5 @@
} }
@end @end
#pragma clang diagnostic pop

View File

@ -1,7 +1,7 @@
#import "JNWSpringAnimation.h" #import <LegacyComponents/JNWSpringAnimation.h>
#import "NSValue+JNWAdditions.h" #import "NSValue+JNWAdditions.h"
#import "TGHacks.h" #import <LegacyComponents/TGHacks.h>
static const CGFloat JNWSpringAnimationDefaultMass = 5.f; static const CGFloat JNWSpringAnimationDefaultMass = 5.f;
static const CGFloat JNWSpringAnimationDefaultDamping = 30.f; static const CGFloat JNWSpringAnimationDefaultDamping = 30.f;

View File

@ -1,4 +1,4 @@
#import "LegacyComponentsContext.h" #import <LegacyComponents/LegacyComponentsContext.h>
@implementation LegacyComponentsActionSheetAction @implementation LegacyComponentsActionSheetAction

View File

@ -2,7 +2,7 @@
#import "LegacyComponentsInternal.h" #import "LegacyComponentsInternal.h"
#import "TGLocalization.h" #import <LegacyComponents/TGLocalization.h>
static id<LegacyComponentsGlobalsProvider> _provider; static id<LegacyComponentsGlobalsProvider> _provider;

View File

@ -1,4 +1,4 @@
#import "LegacyComponentsGlobals.h" #import <LegacyComponents/LegacyComponentsGlobals.h>
@class TGLocalization; @class TGLocalization;

View File

@ -1,6 +1,6 @@
#import "LegacyComponentsInternal.h" #import "LegacyComponentsInternal.h"
#import "TGLocalization.h" #import <LegacyComponents/TGLocalization.h>
#import <UIKit/UIKit.h> #import <UIKit/UIKit.h>

View File

@ -1,4 +1,4 @@
#import "NSInputStream+TL.h" #import <LegacyComponents/NSInputStream+TL.h>
#import "LegacyComponentsInternal.h" #import "LegacyComponentsInternal.h"

View File

@ -1,4 +1,4 @@
#import "NSObject+TGLock.h" #import <LegacyComponents/NSObject+TGLock.h>
#import <objc/runtime.h> #import <objc/runtime.h>

View File

@ -1,14 +1,14 @@
#import "PGCamera.h" #import <LegacyComponents/PGCamera.h>
#import "LegacyComponentsInternal.h" #import "LegacyComponentsInternal.h"
#import "PGCameraCaptureSession.h" #import <LegacyComponents/PGCameraCaptureSession.h>
#import "PGCameraMovieWriter.h" #import <LegacyComponents/PGCameraMovieWriter.h>
#import "PGCameraDeviceAngleSampler.h" #import <LegacyComponents/PGCameraDeviceAngleSampler.h>
#import <SSignalKit/SSignalKit.h> #import <SSignalKit/SSignalKit.h>
#import "TGCameraPreviewView.h" #import <LegacyComponents/TGCameraPreviewView.h>
NSString *const PGCameraFlashActiveKey = @"flashActive"; NSString *const PGCameraFlashActiveKey = @"flashActive";
NSString *const PGCameraFlashAvailableKey = @"flashAvailable"; NSString *const PGCameraFlashAvailableKey = @"flashAvailable";
@ -683,8 +683,11 @@ NSString *const PGCameraAdjustingFocusKey = @"adjustingFocus";
- (PGCameraPosition)togglePosition - (PGCameraPosition)togglePosition
{ {
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wdeprecated-declarations"
if ([AVCaptureDevice devicesWithMediaType:AVMediaTypeVideo].count < 2 || self.disabled) if ([AVCaptureDevice devicesWithMediaType:AVMediaTypeVideo].count < 2 || self.disabled)
return self.captureSession.currentCameraPosition; return self.captureSession.currentCameraPosition;
#pragma clang diagnostic pop
[self _unsubscribeFromCameraChanges]; [self _unsubscribeFromCameraChanges];

View File

@ -1,5 +1,5 @@
#import "PGCameraCaptureSession.h" #import <LegacyComponents/PGCameraCaptureSession.h>
#import "PGCameraMovieWriter.h" #import <LegacyComponents/PGCameraMovieWriter.h>
#import "PGRectangleDetector.h" #import "PGRectangleDetector.h"
#import <LegacyComponents/LegacyComponentsGlobals.h> #import <LegacyComponents/LegacyComponentsGlobals.h>
@ -15,7 +15,10 @@
#import <AVFoundation/AVFoundation.h> #import <AVFoundation/AVFoundation.h>
#import <SSignalKit/SSignalKit.h> #import <SSignalKit/SSignalKit.h>
#import "POPSpringAnimation.h" #import <LegacyComponents/POPSpringAnimation.h>
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wdeprecated-declarations"
const NSInteger PGCameraFrameRate = 30; const NSInteger PGCameraFrameRate = 30;
@ -319,13 +322,11 @@ const NSInteger PGCameraFrameRate = 30;
- (void)switchToBestVideoFormatForDevice:(AVCaptureDevice *)device - (void)switchToBestVideoFormatForDevice:(AVCaptureDevice *)device
{ {
bool preferZoomableFormat = [self hasTelephotoCamera] || [self hasUltrawideCamera];
[self _reconfigureDevice:device withBlock:^(AVCaptureDevice *device) [self _reconfigureDevice:device withBlock:^(AVCaptureDevice *device)
{ {
NSArray *availableFormats = device.formats; NSArray *availableFormats = device.formats;
AVCaptureDeviceFormat *preferredFormat = nil; AVCaptureDeviceFormat *preferredFormat = nil;
NSMutableArray *maybeFormats = nil; NSMutableArray *maybeFormats = nil;
bool hasSecondaryZoomLevels = false;
int32_t maxWidth = 0; int32_t maxWidth = 0;
int32_t maxHeight = 0; int32_t maxHeight = 0;
for (AVCaptureDeviceFormat *format in availableFormats) for (AVCaptureDeviceFormat *format in availableFormats)
@ -337,7 +338,6 @@ const NSInteger PGCameraFrameRate = 30;
if (dimensions.width >= maxWidth && dimensions.width <= 1920 && dimensions.height >= maxHeight && dimensions.height <= 1080) if (dimensions.width >= maxWidth && dimensions.width <= 1920 && dimensions.height >= maxHeight && dimensions.height <= 1080)
{ {
if (dimensions.width > maxWidth) { if (dimensions.width > maxWidth) {
hasSecondaryZoomLevels = false;
maybeFormats = [[NSMutableArray alloc] init]; maybeFormats = [[NSMutableArray alloc] init];
} }
FourCharCode mediaSubType = CMFormatDescriptionGetMediaSubType(format.formatDescription); FourCharCode mediaSubType = CMFormatDescriptionGetMediaSubType(format.formatDescription);
@ -357,10 +357,13 @@ const NSInteger PGCameraFrameRate = 30;
} }
if (supportedRate) { if (supportedRate) {
if (iosMajorVersion() >= 16 && format.secondaryNativeResolutionZoomFactors.count > 0) { if (@available(iOS 16.0, *)) {
hasSecondaryZoomLevels = true; if (format.secondaryNativeResolutionZoomFactors.count > 0) {
[maybeFormats addObject:format]; [maybeFormats addObject:format];
} else if (!hasSecondaryZoomLevels) { } else {
[maybeFormats addObject:format];
}
} else {
[maybeFormats addObject:format]; [maybeFormats addObject:format];
} }
} }
@ -1156,3 +1159,5 @@ static UIImageOrientation TGSnapshotOrientationForVideoOrientation(bool mirrored
} }
@end @end
#pragma clang diagnostic pop

View File

@ -1,4 +1,4 @@
#import "PGCameraDeviceAngleSampler.h" #import <LegacyComponents/PGCameraDeviceAngleSampler.h>
#import <CoreMotion/CoreMotion.h> #import <CoreMotion/CoreMotion.h>

View File

@ -1,4 +1,4 @@
#import "PGCameraMovieWriter.h" #import <LegacyComponents/PGCameraMovieWriter.h>
#import "LegacyComponentsInternal.h" #import "LegacyComponentsInternal.h"

View File

@ -1,4 +1,4 @@
#import "PGCameraShotMetadata.h" #import <LegacyComponents/PGCameraShotMetadata.h>
@implementation PGCameraShotMetadata @implementation PGCameraShotMetadata

View File

@ -1,9 +1,9 @@
#import "PGCameraVolumeButtonHandler.h" #import <LegacyComponents/PGCameraVolumeButtonHandler.h>
#import "LegacyComponentsInternal.h" #import "LegacyComponentsInternal.h"
#import "TGStringUtils.h" #import <LegacyComponents/TGStringUtils.h>
#import "Freedom.h" #import <LegacyComponents/Freedom.h>
#import <AVKit/AVKit.h> #import <AVKit/AVKit.h>

View File

@ -4,6 +4,9 @@
#import "LegacyComponentsInternal.h" #import "LegacyComponentsInternal.h"
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wdeprecated-declarations"
NSString *const PGPhotoFilterDefinitionsShaderString = PGShaderString NSString *const PGPhotoFilterDefinitionsShaderString = PGShaderString
( (
precision highp float; precision highp float;
@ -422,3 +425,5 @@ NSString *const PGPhotoFilterMainShaderString = PGShaderString
} }
@end @end
#pragma clang diagnostic pop

View File

@ -5,6 +5,9 @@
#import "GLProgram.h" #import "GLProgram.h"
#import "GPUImageFilter.h" #import "GPUImageFilter.h"
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wdeprecated-declarations"
@interface PGPhotoEditorRawDataOutput () @interface PGPhotoEditorRawDataOutput ()
{ {
GPUImageFramebuffer *firstInputFramebuffer, *outputFramebuffer, *retainedFramebuffer; GPUImageFramebuffer *firstInputFramebuffer, *outputFramebuffer, *retainedFramebuffer;
@ -286,3 +289,5 @@
} }
@end @end
#pragma clang diagnostic pop

View File

@ -1,7 +1,7 @@
#import "PGPhotoEditorValues.h" #import <LegacyComponents/PGPhotoEditorValues.h>
#import "TGPaintingData.h" #import <LegacyComponents/TGPaintingData.h>
#import "TGPhotoEditorUtils.h" #import <LegacyComponents/TGPhotoEditorUtils.h>
@implementation PGPhotoEditorValues @implementation PGPhotoEditorValues

View File

@ -7,6 +7,9 @@
#import <QuartzCore/QuartzCore.h> #import <QuartzCore/QuartzCore.h>
#import <AVFoundation/AVFoundation.h> #import <AVFoundation/AVFoundation.h>
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wdeprecated-declarations"
@interface PGPhotoEditorView () @interface PGPhotoEditorView ()
{ {
GPUImageRotationMode inputRotation; GPUImageRotationMode inputRotation;
@ -416,3 +419,5 @@
} }
@end @end
#pragma clang diagnostic pop

View File

@ -4,6 +4,9 @@
#import "PGPhotoProcessPass.h" #import "PGPhotoProcessPass.h"
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wdeprecated-declarations"
const NSUInteger PGPhotoEnhanceHistogramBins = 256; const NSUInteger PGPhotoEnhanceHistogramBins = 256;
const NSUInteger PGPhotoEnhanceSegments = 4; const NSUInteger PGPhotoEnhanceSegments = 4;
@ -332,3 +335,5 @@ const NSUInteger PGPhotoEnhanceSegments = 4;
} }
@end @end
#pragma clang diagnostic pop

View File

@ -2,6 +2,9 @@
#import "PGPhotoProcessPass.h" #import "PGPhotoProcessPass.h"
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wdeprecated-declarations"
@interface PGPhotoGaussianBlurFilter () @interface PGPhotoGaussianBlurFilter ()
{ {
GPUImageFramebuffer *_secondOutputFramebuffer; GPUImageFramebuffer *_secondOutputFramebuffer;
@ -496,3 +499,5 @@
} }
@end @end
#pragma clang diagnostic pop

View File

@ -1,5 +1,8 @@
#import "PGPhotoSharpenPass.h" #import "PGPhotoSharpenPass.h"
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wdeprecated-declarations"
NSString *const kSharpenVertexShaderString = PGShaderString NSString *const kSharpenVertexShaderString = PGShaderString
( (
attribute vec4 position; attribute vec4 position;
@ -142,3 +145,5 @@ NSString *const kSharpenFragmentShaderString = SHADER_STRING
} }
@end @end
#pragma clang diagnostic pop

View File

@ -2,6 +2,9 @@
#import "GPUImageFilter.h" #import "GPUImageFilter.h"
#import "LegacyComponentsInternal.h" #import "LegacyComponentsInternal.h"
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wdeprecated-declarations"
GLfloat kColorConversion601Default[] = { GLfloat kColorConversion601Default[] = {
1.164, 1.164, 1.164, 1.164, 1.164, 1.164,
0.0, -0.392, 2.017, 0.0, -0.392, 2.017,
@ -517,3 +520,5 @@ NSString *const kYUVVideoRangeConversionForLAFragmentShaderString = SHADER_STRIN
} }
@end @end
#pragma clang diagnostic pop

View File

@ -7,7 +7,7 @@
of patent rights can be found in the PATENTS file in the same directory. of patent rights can be found in the PATENTS file in the same directory.
*/ */
#import "POPAnimatableProperty.h" #import <LegacyComponents/POPAnimatableProperty.h>
#import "POPCGUtils.h" #import "POPCGUtils.h"
#import "POPAnimationRuntime.h" #import "POPAnimationRuntime.h"

View File

@ -7,7 +7,7 @@
of patent rights can be found in the PATENTS file in the same directory. of patent rights can be found in the PATENTS file in the same directory.
*/ */
#import "POPAnimationEvent.h" #import <LegacyComponents/POPAnimationEvent.h>
#import "POPAnimationEventInternal.h" #import "POPAnimationEventInternal.h"
static NSString *stringFromType(POPAnimationEventType aType) static NSString *stringFromType(POPAnimationEventType aType)

View File

@ -9,7 +9,7 @@
#import <Foundation/Foundation.h> #import <Foundation/Foundation.h>
#import "POPAnimationEvent.h" #import <LegacyComponents/POPAnimationEvent.h>
@interface POPAnimationEvent () @interface POPAnimationEvent ()

View File

@ -10,7 +10,7 @@
#import <QuartzCore/CAAnimation.h> #import <QuartzCore/CAAnimation.h>
#import "POPDefines.h" #import "POPDefines.h"
#import "POPSpringAnimation.h" #import <LegacyComponents/POPSpringAnimation.h>
/** /**
@abstract The current drag coefficient. @abstract The current drag coefficient.

View File

@ -9,7 +9,7 @@
#import <QuartzCore/CAMediaTimingFunction.h> #import <QuartzCore/CAMediaTimingFunction.h>
#import "POPAnimation.h" #import <LegacyComponents/POPAnimation.h>
#import "POPAnimationRuntime.h" #import "POPAnimationRuntime.h"
#import "POPAnimationTracerInternal.h" #import "POPAnimationTracerInternal.h"
#import "POPSpringSolver.h" #import "POPSpringSolver.h"

View File

@ -7,7 +7,7 @@
of patent rights can be found in the PATENTS file in the same directory. of patent rights can be found in the PATENTS file in the same directory.
*/ */
#import "POPAnimation.h" #import <LegacyComponents/POPAnimation.h>
#define POP_ANIMATION_FRICTION_FOR_QC_FRICTION(qcFriction) (25.0 + (((qcFriction - 8.0) / 2.0) * (25.0 - 19.0))) #define POP_ANIMATION_FRICTION_FOR_QC_FRICTION(qcFriction) (25.0 + (((qcFriction - 8.0) / 2.0) * (25.0 - 19.0)))
#define POP_ANIMATION_TENSION_FOR_QC_TENSION(qcTension) (194.0 + (((qcTension - 30.0) / 50.0) * (375.0 - 194.0))) #define POP_ANIMATION_TENSION_FOR_QC_TENSION(qcTension) (194.0 + (((qcTension - 30.0) / 50.0) * (375.0 - 194.0)))

View File

@ -20,7 +20,7 @@
#import "POPVector.h" #import "POPVector.h"
#import "POPAnimationRuntime.h" #import "POPAnimationRuntime.h"
#import "POPCGUtils.h" #import "POPCGUtils.h"
#import "POPGeometry.h" #import <LegacyComponents/POPGeometry.h>
static Boolean pointerEqual(const void *ptr1, const void *ptr2) { static Boolean pointerEqual(const void *ptr1, const void *ptr2) {
return ptr1 == ptr2; return ptr1 == ptr2;

View File

@ -7,13 +7,13 @@
of patent rights can be found in the PATENTS file in the same directory. of patent rights can be found in the PATENTS file in the same directory.
*/ */
#import "POPAnimationTracer.h" #import <LegacyComponents/POPAnimationTracer.h>
#import <QuartzCore/QuartzCore.h> #import <QuartzCore/QuartzCore.h>
#import "POPAnimationEventInternal.h" #import "POPAnimationEventInternal.h"
#import "POPAnimationInternal.h" #import "POPAnimationInternal.h"
#import "POPSpringAnimation.h" #import <LegacyComponents/POPSpringAnimation.h>
@implementation POPAnimationTracer @implementation POPAnimationTracer
{ {

View File

@ -9,7 +9,7 @@
#import <Foundation/Foundation.h> #import <Foundation/Foundation.h>
#import "POPAnimationTracer.h" #import <LegacyComponents/POPAnimationTracer.h>
@interface POPAnimationTracer (Internal) @interface POPAnimationTracer (Internal)

View File

@ -16,10 +16,10 @@
#import <QuartzCore/QuartzCore.h> #import <QuartzCore/QuartzCore.h>
#import "POPAnimation.h" #import <LegacyComponents/POPAnimation.h>
#import "POPAnimationExtras.h" #import "POPAnimationExtras.h"
#import "POPBasicAnimationInternal.h" #import "POPBasicAnimationInternal.h"
#import "POPDecayAnimation.h" #import <LegacyComponents/POPDecayAnimation.h>
#import <os/lock.h> #import <os/lock.h>

View File

@ -7,7 +7,7 @@
of patent rights can be found in the PATENTS file in the same directory. of patent rights can be found in the PATENTS file in the same directory.
*/ */
#import "POPBasicAnimation.h" #import <LegacyComponents/POPBasicAnimation.h>
#import "POPPropertyAnimationInternal.h" #import "POPPropertyAnimationInternal.h"
// default animation duration // default animation duration

View File

@ -7,7 +7,7 @@
of patent rights can be found in the PATENTS file in the same directory. of patent rights can be found in the PATENTS file in the same directory.
*/ */
#import "POPCustomAnimation.h" #import <LegacyComponents/POPCustomAnimation.h>
#import "POPAnimationInternal.h" #import "POPAnimationInternal.h"
@interface POPCustomAnimation () @interface POPCustomAnimation ()

View File

@ -7,7 +7,7 @@
of patent rights can be found in the PATENTS file in the same directory. of patent rights can be found in the PATENTS file in the same directory.
*/ */
#import "POPDecayAnimation.h" #import <LegacyComponents/POPDecayAnimation.h>
#import "POPPropertyAnimationInternal.h" #import "POPPropertyAnimationInternal.h"
// minimal velocity factor before decay animation is considered complete, in units / s // minimal velocity factor before decay animation is considered complete, in units / s

View File

@ -7,7 +7,7 @@
of patent rights can be found in the PATENTS file in the same directory. of patent rights can be found in the PATENTS file in the same directory.
*/ */
#import "POPGeometry.h" #import <LegacyComponents/POPGeometry.h>
#if !TARGET_OS_IPHONE #if !TARGET_OS_IPHONE
@implementation NSValue (POP) @implementation NSValue (POP)

View File

@ -8,7 +8,7 @@
*/ */
#import "POPAnimationInternal.h" #import "POPAnimationInternal.h"
#import "POPPropertyAnimation.h" #import <LegacyComponents/POPPropertyAnimation.h>
static void clampValue(CGFloat &value, CGFloat fromValue, CGFloat toValue, NSUInteger clamp) static void clampValue(CGFloat &value, CGFloat fromValue, CGFloat toValue, NSUInteger clamp)
{ {

View File

@ -1,4 +1,4 @@
#import "PSKeyValueCoder.h" #import <LegacyComponents/PSKeyValueCoder.h>
#import <pthread.h> #import <pthread.h>

View File

@ -1,4 +1,4 @@
#import "PSKeyValueDecoder.h" #import <LegacyComponents/PSKeyValueDecoder.h>
#import <objc/runtime.h> #import <objc/runtime.h>

View File

@ -1,4 +1,4 @@
#import "PSKeyValueEncoder.h" #import <LegacyComponents/PSKeyValueEncoder.h>
#import <objc/runtime.h> #import <objc/runtime.h>

View File

@ -1,8 +1,8 @@
#import "PSLMDBKeyValueCursor.h" #import <LegacyComponents/PSLMDBKeyValueCursor.h>
#import "LegacyComponentsInternal.h" #import "LegacyComponentsInternal.h"
#import "PSLMDBTable.h" #import <LegacyComponents/PSLMDBTable.h>
@interface PSLMDBKeyValueCursor () @interface PSLMDBKeyValueCursor ()
{ {

View File

@ -1,9 +1,9 @@
#import "PSLMDBKeyValueReaderWriter.h" #import <LegacyComponents/PSLMDBKeyValueReaderWriter.h>
#import "LegacyComponentsInternal.h" #import "LegacyComponentsInternal.h"
#import "PSLMDBTable.h" #import <LegacyComponents/PSLMDBTable.h>
#import "PSLMDBKeyValueCursor.h" #import <LegacyComponents/PSLMDBKeyValueCursor.h>
@interface PSLMDBKeyValueReaderWriter () @interface PSLMDBKeyValueReaderWriter ()
{ {

View File

@ -1,11 +1,11 @@
#import "PSLMDBKeyValueStore.h" #import <LegacyComponents/PSLMDBKeyValueStore.h>
#import "LegacyComponentsInternal.h" #import "LegacyComponentsInternal.h"
#import "lmdb.h" #import <LegacyComponents/lmdb.h>
#import "PSLMDBTable.h" #import <LegacyComponents/PSLMDBTable.h>
#import "PSLMDBKeyValueReaderWriter.h" #import <LegacyComponents/PSLMDBKeyValueReaderWriter.h>
@interface PSLMDBKeyValueStore () @interface PSLMDBKeyValueStore ()
{ {

View File

@ -1,4 +1,4 @@
#import "PSLMDBTable.h" #import <LegacyComponents/PSLMDBTable.h>
@implementation PSLMDBTable @implementation PSLMDBTable

View File

@ -1,4 +1,4 @@
#import "RMPhoneFormat.h" #import <LegacyComponents/RMPhoneFormat.h>
@interface PhoneRule : NSObject @interface PhoneRule : NSObject

View File

@ -1,4 +1,4 @@
#import "SGraphListNode.h" #import <LegacyComponents/SGraphListNode.h>
@implementation SGraphListNode @implementation SGraphListNode

View File

@ -1,4 +1,4 @@
#import "SGraphNode.h" #import <LegacyComponents/SGraphNode.h>
@implementation SGraphNode @implementation SGraphNode

View File

@ -1,4 +1,4 @@
#import "SGraphObjectNode.h" #import <LegacyComponents/SGraphObjectNode.h>
@implementation SGraphObjectNode @implementation SGraphObjectNode

View File

@ -1,6 +1,6 @@
#import "TGActionMediaAttachment.h" #import <LegacyComponents/TGActionMediaAttachment.h>
#import "TGImageMediaAttachment.h" #import <LegacyComponents/TGImageMediaAttachment.h>
@implementation TGActionMediaAttachment @implementation TGActionMediaAttachment

View File

@ -1,4 +1,4 @@
#import "TGAnimationBlockDelegate.h" #import <LegacyComponents/TGAnimationBlockDelegate.h>
@implementation TGAnimationBlockDelegate @implementation TGAnimationBlockDelegate

View File

@ -1,11 +1,11 @@
#import "TGAttachmentCameraView.h" #import <LegacyComponents/TGAttachmentCameraView.h>
#import "TGImageUtils.h" #import <LegacyComponents/TGImageUtils.h>
#import "LegacyComponentsInternal.h" #import "LegacyComponentsInternal.h"
#import <LegacyComponents/TGMenuSheetView.h> #import <LegacyComponents/TGMenuSheetView.h>
#import "TGAttachmentMenuCell.h" #import "TGAttachmentMenuCell.h"
#import "TGCameraController.h" #import <LegacyComponents/TGCameraController.h>
#import <LegacyComponents/PGCamera.h> #import <LegacyComponents/PGCamera.h>
#import <LegacyComponents/TGCameraPreviewView.h> #import <LegacyComponents/TGCameraPreviewView.h>
@ -63,7 +63,10 @@
[self setInterfaceOrientation:[[LegacyComponentsGlobals provider] applicationStatusBarOrientation] animated:false]; [self setInterfaceOrientation:[[LegacyComponentsGlobals provider] applicationStatusBarOrientation] animated:false];
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wdeprecated-declarations"
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(handleOrientationChange:) name:UIApplicationDidChangeStatusBarOrientationNotification object:nil]; [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(handleOrientationChange:) name:UIApplicationDidChangeStatusBarOrientationNotification object:nil];
#pragma clang diagnostic pop
_fadeView = [[UIView alloc] initWithFrame:self.bounds]; _fadeView = [[UIView alloc] initWithFrame:self.bounds];
_fadeView.autoresizingMask = UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleHeight; _fadeView.autoresizingMask = UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleHeight;
@ -122,7 +125,10 @@
if (previewView.superview == _wrapperView && _camera != nil) if (previewView.superview == _wrapperView && _camera != nil)
[self stopPreview]; [self stopPreview];
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wdeprecated-declarations"
[[NSNotificationCenter defaultCenter] removeObserver:self name:UIApplicationDidChangeStatusBarOrientationNotification object:nil]; [[NSNotificationCenter defaultCenter] removeObserver:self name:UIApplicationDidChangeStatusBarOrientationNotification object:nil];
#pragma clang diagnostic pop
} }
- (void)removeCorners { - (void)removeCorners {

View File

@ -1,4 +1,5 @@
#import "TGAttachmentCarouselItemView.h" #import <LegacyComponents/LegacyComponents.h>
#import <LegacyComponents/TGAttachmentCarouselItemView.h>
#import "LegacyComponentsInternal.h" #import "LegacyComponentsInternal.h"
@ -13,7 +14,7 @@
#import "TGTransitionLayout.h" #import "TGTransitionLayout.h"
#import "TGAttachmentCameraView.h" #import <LegacyComponents/TGAttachmentCameraView.h>
#import "TGAttachmentPhotoCell.h" #import "TGAttachmentPhotoCell.h"
#import "TGAttachmentVideoCell.h" #import "TGAttachmentVideoCell.h"
@ -28,7 +29,7 @@
#import <LegacyComponents/TGMediaPickerGalleryItem.h> #import <LegacyComponents/TGMediaPickerGalleryItem.h>
#import <LegacyComponents/TGMediaAssetsUtils.h> #import <LegacyComponents/TGMediaAssetsUtils.h>
#import "TGMediaAvatarEditorTransition.h" #import <LegacyComponents/TGMediaAvatarEditorTransition.h>
#import <LegacyComponents/TGPhotoEditorController.h> #import <LegacyComponents/TGPhotoEditorController.h>
#import <LegacyComponents/TGVideoEditAdjustments.h> #import <LegacyComponents/TGVideoEditAdjustments.h>
#import <LegacyComponents/TGMediaAsset+TGMediaEditableItem.h> #import <LegacyComponents/TGMediaAsset+TGMediaEditableItem.h>
@ -1333,7 +1334,10 @@ const NSUInteger TGAttachmentDisplayedAssetLimit = 500;
return nil; return nil;
CGRect cellFrame = [_collectionView.collectionViewLayout layoutAttributesForItemAtIndexPath:indexPath].frame; CGRect cellFrame = [_collectionView.collectionViewLayout layoutAttributesForItemAtIndexPath:indexPath].frame;
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wdeprecated-declarations"
previewingContext.sourceRect = cellFrame; previewingContext.sourceRect = cellFrame;
#pragma clang diagnostic pop
TGMediaAsset *asset = nil; TGMediaAsset *asset = nil;
_previewGalleryMixin = [self galleryMixinForIndexPath:indexPath previewMode:true outAsset:&asset]; _previewGalleryMixin = [self galleryMixinForIndexPath:indexPath previewMode:true outAsset:&asset];

View File

@ -1,7 +1,7 @@
#import "TGAttachmentVideoCell.h" #import "TGAttachmentVideoCell.h"
#import "LegacyComponentsInternal.h" #import "LegacyComponentsInternal.h"
#import "TGFont.h" #import <LegacyComponents/TGFont.h>
#import <LegacyComponents/TGModernGalleryTransitionView.h> #import <LegacyComponents/TGModernGalleryTransitionView.h>

View File

@ -1,4 +1,4 @@
#import "TGAudioMediaAttachment.h" #import <LegacyComponents/TGAudioMediaAttachment.h>
@implementation TGAudioMediaAttachment @implementation TGAudioMediaAttachment

View File

@ -1,8 +1,8 @@
#import "TGAudioWaveform.h" #import <LegacyComponents/TGAudioWaveform.h>
#import "LegacyComponentsInternal.h" #import "LegacyComponentsInternal.h"
#import "PSKeyValueCoder.h" #import <LegacyComponents/PSKeyValueCoder.h>
static int32_t get_bits(uint8_t const *bytes, unsigned int bitOffset, unsigned int numBits) static int32_t get_bits(uint8_t const *bytes, unsigned int bitOffset, unsigned int numBits)
{ {

View File

@ -1,8 +1,8 @@
#import "TGAuthorSignatureMediaAttachment.h" #import <LegacyComponents/TGAuthorSignatureMediaAttachment.h>
#import "LegacyComponentsInternal.h" #import "LegacyComponentsInternal.h"
#import "NSInputStream+TL.h" #import <LegacyComponents/NSInputStream+TL.h>
@implementation TGAuthorSignatureMediaAttachment @implementation TGAuthorSignatureMediaAttachment
@ -26,7 +26,7 @@
- (void)serialize:(NSMutableData *)data - (void)serialize:(NSMutableData *)data
{ {
NSData *serializedData = [NSKeyedArchiver archivedDataWithRootObject:self]; NSData *serializedData = [NSKeyedArchiver archivedDataWithRootObject:self requiringSecureCoding:false error:nil];
int32_t length = (int32_t)serializedData.length; int32_t length = (int32_t)serializedData.length;
[data appendBytes:&length length:4]; [data appendBytes:&length length:4];
[data appendData:serializedData]; [data appendData:serializedData];
@ -36,7 +36,7 @@
{ {
int32_t length = [is readInt32]; int32_t length = [is readInt32];
NSData *data = [is readData:length]; NSData *data = [is readData:length];
return [NSKeyedUnarchiver unarchiveObjectWithData:data]; return [NSKeyedUnarchiver unarchivedObjectOfClass:[TGMediaAttachment class] fromData:data error:nil];
} }
- (BOOL)isEqual:(id)object { - (BOOL)isEqual:(id)object {

View File

@ -1,4 +1,4 @@
#import "TGBackdropView.h" #import <LegacyComponents/TGBackdropView.h>
#import "LegacyComponentsInternal.h" #import "LegacyComponentsInternal.h"

View File

@ -1,6 +1,6 @@
#import "TGBotComandInfo.h" #import <LegacyComponents/TGBotComandInfo.h>
#import "PSKeyValueCoder.h" #import <LegacyComponents/PSKeyValueCoder.h>
@implementation TGBotComandInfo @implementation TGBotComandInfo

View File

@ -1,6 +1,6 @@
#import "TGBotContextResultAttachment.h" #import <LegacyComponents/TGBotContextResultAttachment.h>
#import "NSInputStream+TL.h" #import <LegacyComponents/NSInputStream+TL.h>
@implementation TGBotContextResultAttachment @implementation TGBotContextResultAttachment
@ -28,7 +28,7 @@
- (void)serialize:(NSMutableData *)data - (void)serialize:(NSMutableData *)data
{ {
NSData *serializedData = [NSKeyedArchiver archivedDataWithRootObject:self]; NSData *serializedData = [NSKeyedArchiver archivedDataWithRootObject:self requiringSecureCoding:false error:nil];
int32_t length = (int32_t)serializedData.length; int32_t length = (int32_t)serializedData.length;
[data appendBytes:&length length:4]; [data appendBytes:&length length:4];
[data appendData:serializedData]; [data appendData:serializedData];
@ -38,7 +38,7 @@
{ {
int32_t length = [is readInt32]; int32_t length = [is readInt32];
NSData *data = [is readData:length]; NSData *data = [is readData:length];
return [NSKeyedUnarchiver unarchiveObjectWithData:data]; return [NSKeyedUnarchiver unarchivedObjectOfClass:[TGMediaAttachment class] fromData:data error:nil];
} }
@end @end

View File

@ -1,6 +1,6 @@
#import "TGBotInfo.h" #import <LegacyComponents/TGBotInfo.h>
#import "PSKeyValueCoder.h" #import <LegacyComponents/PSKeyValueCoder.h>
@implementation TGBotInfo @implementation TGBotInfo

View File

@ -1,6 +1,6 @@
#import "TGBotReplyMarkup.h" #import <LegacyComponents/TGBotReplyMarkup.h>
#import "PSKeyValueCoder.h" #import <LegacyComponents/PSKeyValueCoder.h>
@implementation TGBotReplyMarkup @implementation TGBotReplyMarkup

View File

@ -1,8 +1,8 @@
#import "TGBotReplyMarkupButton.h" #import <LegacyComponents/TGBotReplyMarkupButton.h>
#import "LegacyComponentsInternal.h" #import "LegacyComponentsInternal.h"
#import "PSKeyValueCoder.h" #import <LegacyComponents/PSKeyValueCoder.h>
@implementation TGBotReplyMarkupButtonActionUrl @implementation TGBotReplyMarkupButtonActionUrl

View File

@ -1,6 +1,6 @@
#import "TGBotReplyMarkupRow.h" #import <LegacyComponents/TGBotReplyMarkupRow.h>
#import "PSKeyValueCoder.h" #import <LegacyComponents/PSKeyValueCoder.h>
@implementation TGBotReplyMarkupRow @implementation TGBotReplyMarkupRow

View File

@ -1,8 +1,8 @@
#import "TGCache.h" #import <LegacyComponents/TGCache.h>
#import "LegacyComponentsInternal.h" #import "LegacyComponentsInternal.h"
#import "TGImageUtils.h" #import <LegacyComponents/TGImageUtils.h>
#import <objc/runtime.h> #import <objc/runtime.h>
#import <CommonCrypto/CommonDigest.h> #import <CommonCrypto/CommonDigest.h>
@ -29,7 +29,10 @@ static NSString *md5String(NSString *string)
const char *ptr = [string UTF8String]; const char *ptr = [string UTF8String];
unsigned char md5Buffer[16]; unsigned char md5Buffer[16];
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wdeprecated-declarations"
CC_MD5(ptr, (CC_LONG)[string lengthOfBytesUsingEncoding:NSUTF8StringEncoding], md5Buffer); CC_MD5(ptr, (CC_LONG)[string lengthOfBytesUsingEncoding:NSUTF8StringEncoding], md5Buffer);
#pragma clang diagnostic pop
NSString *output = [[NSString alloc] initWithFormat:@"%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x", md5Buffer[0], md5Buffer[1], md5Buffer[2], md5Buffer[3], md5Buffer[4], md5Buffer[5], md5Buffer[6], md5Buffer[7], md5Buffer[8], md5Buffer[9], md5Buffer[10], md5Buffer[11], md5Buffer[12], md5Buffer[13], md5Buffer[14], md5Buffer[15]]; NSString *output = [[NSString alloc] initWithFormat:@"%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x", md5Buffer[0], md5Buffer[1], md5Buffer[2], md5Buffer[3], md5Buffer[4], md5Buffer[5], md5Buffer[6], md5Buffer[7], md5Buffer[8], md5Buffer[9], md5Buffer[10], md5Buffer[11], md5Buffer[12], md5Buffer[13], md5Buffer[14], md5Buffer[15]];
//objc_setAssociatedObject(string, md5PropertyKey, output, OBJC_ASSOCIATION_RETAIN_NONATOMIC); //objc_setAssociatedObject(string, md5PropertyKey, output, OBJC_ASSOCIATION_RETAIN_NONATOMIC);
return output; return output;

View File

@ -1,4 +1,4 @@
#import "TGCameraCapturedPhoto.h" #import <LegacyComponents/TGCameraCapturedPhoto.h>
#import <SSignalKit/SSignalKit.h> #import <SSignalKit/SSignalKit.h>
#import <LegacyComponents/TGImageUtils.h> #import <LegacyComponents/TGImageUtils.h>
#import <LegacyComponents/TGPhotoEditorUtils.h> #import <LegacyComponents/TGPhotoEditorUtils.h>

View File

@ -1,14 +1,14 @@
#import "TGCameraCapturedVideo.h" #import <LegacyComponents/TGCameraCapturedVideo.h>
#import <AVFoundation/AVFoundation.h> #import <AVFoundation/AVFoundation.h>
#import <LegacyComponents/TGMediaAssetImageSignals.h> #import <LegacyComponents/TGMediaAssetImageSignals.h>
#import <LegacyComponents/TGPhotoEditorUtils.h> #import <LegacyComponents/TGPhotoEditorUtils.h>
#import "LegacyComponentsGlobals.h" #import <LegacyComponents/LegacyComponentsGlobals.h>
#import "TGStringUtils.h" #import <LegacyComponents/TGStringUtils.h>
#import "TGMediaAsset.h" #import <LegacyComponents/TGMediaAsset.h>
#import "TGMediaAsset+TGMediaEditableItem.h" #import <LegacyComponents/TGMediaAsset+TGMediaEditableItem.h>
#import "TGGifConverter.h" #import <LegacyComponents/TGGifConverter.h>
@interface TGCameraCapturedVideo () @interface TGCameraCapturedVideo ()
{ {

View File

@ -1,4 +1,5 @@
#import "TGCameraController.h" #import <LegacyComponents/LegacyComponents.h>
#import <LegacyComponents/TGCameraController.h>
#import "LegacyComponentsInternal.h" #import "LegacyComponentsInternal.h"
@ -29,7 +30,7 @@
#import <LegacyComponents/TGMediaPickerGalleryVideoItemView.h> #import <LegacyComponents/TGMediaPickerGalleryVideoItemView.h>
#import <LegacyComponents/TGModernGalleryVideoView.h> #import <LegacyComponents/TGModernGalleryVideoView.h>
#import "TGMediaVideoConverter.h" #import <LegacyComponents/TGMediaVideoConverter.h>
#import <LegacyComponents/TGMediaAssetImageSignals.h> #import <LegacyComponents/TGMediaAssetImageSignals.h>
#import <LegacyComponents/PGPhotoEditorValues.h> #import <LegacyComponents/PGPhotoEditorValues.h>
#import <LegacyComponents/TGVideoEditAdjustments.h> #import <LegacyComponents/TGVideoEditAdjustments.h>
@ -46,9 +47,9 @@
#import <LegacyComponents/TGMenuSheetController.h> #import <LegacyComponents/TGMenuSheetController.h>
#import <LegacyComponents/TGMediaPickerSendActionSheetController.h> #import <LegacyComponents/TGMediaPickerSendActionSheetController.h>
#import "TGMediaPickerGallerySelectedItemsModel.h" #import <LegacyComponents/TGMediaPickerGallerySelectedItemsModel.h>
#import "TGCameraCapturedPhoto.h" #import <LegacyComponents/TGCameraCapturedPhoto.h>
#import "TGCameraCapturedVideo.h" #import <LegacyComponents/TGCameraCapturedVideo.h>
#import "PGPhotoEditor.h" #import "PGPhotoEditor.h"
#import "PGRectangleDetector.h" #import "PGRectangleDetector.h"
@ -1721,9 +1722,7 @@ static CGPoint TGCameraControllerClampPointToScreenSize(__unused id self, __unus
}; };
id<LegacyComponentsOverlayWindowManager> windowManager = nil; id<LegacyComponentsOverlayWindowManager> windowManager = nil;
id<LegacyComponentsContext> windowContext = nil;
windowManager = [strongSelf->_context makeOverlayWindowManager]; windowManager = [strongSelf->_context makeOverlayWindowManager];
windowContext = [windowManager context];
TGOverlayControllerWindow *controllerWindow = [[TGOverlayControllerWindow alloc] initWithManager:windowManager parentController:strongSelf contentController:(TGOverlayController *)controller]; TGOverlayControllerWindow *controllerWindow = [[TGOverlayControllerWindow alloc] initWithManager:windowManager parentController:strongSelf contentController:(TGOverlayController *)controller];
controllerWindow.hidden = false; controllerWindow.hidden = false;
@ -1885,7 +1884,7 @@ static CGPoint TGCameraControllerClampPointToScreenSize(__unused id self, __unus
return nil; return nil;
}; };
void (^dismissGalleryImpl)() = nil; __unused void (^dismissGalleryImpl)() = nil;
galleryController.completedTransitionOut = ^ galleryController.completedTransitionOut = ^
{ {
@ -2926,7 +2925,7 @@ static CGPoint TGCameraControllerClampPointToScreenSize(__unused id self, __unus
} }
static dispatch_once_t onceToken; static dispatch_once_t onceToken;
static UIImage *blankImage; __unused static UIImage *blankImage;
dispatch_once(&onceToken, ^ dispatch_once(&onceToken, ^
{ {
UIGraphicsBeginImageContextWithOptions(CGSizeMake(1, 1), true, 0.0f); UIGraphicsBeginImageContextWithOptions(CGSizeMake(1, 1), true, 0.0f);

View File

@ -1,8 +1,8 @@
#import "TGCameraFlashActiveView.h" #import <LegacyComponents/TGCameraFlashActiveView.h>
#import "LegacyComponentsInternal.h" #import "LegacyComponentsInternal.h"
#import "TGCameraInterfaceAssets.h" #import <LegacyComponents/TGCameraInterfaceAssets.h>
@interface TGCameraFlashActiveView () @interface TGCameraFlashActiveView ()
{ {

View File

@ -1,15 +1,15 @@
#import "TGCameraFlashControl.h" #import <LegacyComponents/TGCameraFlashControl.h>
#import "LegacyComponentsInternal.h" #import "LegacyComponentsInternal.h"
#import "TGImageUtils.h" #import <LegacyComponents/TGImageUtils.h>
#import "UIControl+HitTestEdgeInsets.h" #import <LegacyComponents/UIControl+HitTestEdgeInsets.h>
#import "TGCameraInterfaceAssets.h" #import <LegacyComponents/TGCameraInterfaceAssets.h>
#import <LegacyComponents/TGModernButton.h> #import <LegacyComponents/TGModernButton.h>
#import "POPBasicAnimation.h" #import <LegacyComponents/POPBasicAnimation.h>
const CGFloat TGCameraFlashControlHeight = 44.0f; const CGFloat TGCameraFlashControlHeight = 44.0f;

Some files were not shown because too many files have changed in this diff Show More