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",
]),
copts = [
"-I{}/PublicHeaders/LegacyComponents".format(package_name()),
#"-Werror",
"-Werror",
],
includes = [
"PublicHeaders",

View File

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

View File

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

View File

@ -1,5 +1,3 @@
#import <LegacyComponents/LegacyComponents.h>
#import <LegacyComponents/TGOverlayController.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 TGPassportMRZ;

View File

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

View File

@ -1,5 +1,5 @@
#import <LegacyComponents/LegacyComponents.h>
#import <LegacyComponents/TGViewController.h>
#import <LegacyComponents/TGMediaEditingContext.h>
#import <LegacyComponents/TGPhotoEditorController.h>
@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

View File

@ -1,6 +1,7 @@
#import <Foundation/Foundation.h>
#import <LegacyComponents/LegacyComponents.h>
#import <LegacyComponents/PSCoding.h>
#import <LegacyComponents/TGStickerPackReference.h>
@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 TGModernConversationInputMicPallete;

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -5,6 +5,10 @@
#import "LegacyComponentsInternal.h"
#import "GLProgram.h"
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wdeprecated-declarations"
// START:typedefs
#pragma mark Function Pointer Definitions
typedef void (*GLInfoFunction)(GLuint program,
@ -272,3 +276,5 @@ typedef void (*GLLogFunction) (GLuint program,
}
// END:dealloc
@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(readwrite, retain, nonatomic) GLProgram *currentShaderProgram;
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wdeprecated-declarations"
@property(readonly, retain, nonatomic) EAGLContext *context;
#pragma clang diagnostic pop
@property(readonly, nonatomic) CVOpenGLESTextureCacheRef coreVideoTextureCache;
@property(readonly, nonatomic) GPUImageFramebufferCache *framebufferCache;
@ -33,7 +38,10 @@ typedef enum { kGPUImageNoRotation, kGPUImageRotateLeft, kGPUImageRotateRight, k
- (void)presentBufferForDisplay;
- (GLProgram *)programForVertexShaderString:(NSString *)vertexShaderString fragmentShaderString:(NSString *)fragmentShaderString;
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wdeprecated-declarations"
- (void)useSharegroup:(EAGLSharegroup *)sharegroup;
#pragma clang diagnostic pop
// Manage fast texture upload
+ (BOOL)supportsFastTextureUpload;

View File

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

View File

@ -3,6 +3,9 @@
#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
NSString *const kGPUImageVertexShaderString = SHADER_STRING
(
@ -782,3 +785,5 @@ NSString *const kGPUImagePassthroughFragmentShaderString = SHADER_STRING
}
@end
#pragma clang diagnostic pop

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -2,6 +2,9 @@
#import "GPUImageFilter.h"
#import "LegacyComponentsInternal.h"
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wdeprecated-declarations"
GLfloat kColorConversion601Default[] = {
1.164, 1.164, 1.164,
0.0, -0.392, 2.017,
@ -517,3 +520,5 @@ NSString *const kYUVVideoRangeConversionForLAFragmentShaderString = SHADER_STRIN
}
@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.
*/
#import "POPAnimatableProperty.h"
#import <LegacyComponents/POPAnimatableProperty.h>
#import "POPCGUtils.h"
#import "POPAnimationRuntime.h"

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -7,13 +7,13 @@
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 "POPAnimationEventInternal.h"
#import "POPAnimationInternal.h"
#import "POPSpringAnimation.h"
#import <LegacyComponents/POPSpringAnimation.h>
@implementation POPAnimationTracer
{

View File

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

View File

@ -16,10 +16,10 @@
#import <QuartzCore/QuartzCore.h>
#import "POPAnimation.h"
#import <LegacyComponents/POPAnimation.h>
#import "POPAnimationExtras.h"
#import "POPBasicAnimationInternal.h"
#import "POPDecayAnimation.h"
#import <LegacyComponents/POPDecayAnimation.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.
*/
#import "POPBasicAnimation.h"
#import <LegacyComponents/POPBasicAnimation.h>
#import "POPPropertyAnimationInternal.h"
// default animation duration

View File

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

View File

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

View File

@ -8,7 +8,7 @@
*/
#import "POPAnimationInternal.h"
#import "POPPropertyAnimation.h"
#import <LegacyComponents/POPPropertyAnimation.h>
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>

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -1,8 +1,8 @@
#import "TGAudioWaveform.h"
#import <LegacyComponents/TGAudioWaveform.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)
{

View File

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

View File

@ -1,4 +1,4 @@
#import "TGBackdropView.h"
#import <LegacyComponents/TGBackdropView.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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -1,8 +1,8 @@
#import "TGCache.h"
#import <LegacyComponents/TGCache.h>
#import "LegacyComponentsInternal.h"
#import "TGImageUtils.h"
#import <LegacyComponents/TGImageUtils.h>
#import <objc/runtime.h>
#import <CommonCrypto/CommonDigest.h>
@ -29,7 +29,10 @@ static NSString *md5String(NSString *string)
const char *ptr = [string UTF8String];
unsigned char md5Buffer[16];
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wdeprecated-declarations"
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]];
//objc_setAssociatedObject(string, md5PropertyKey, output, OBJC_ASSOCIATION_RETAIN_NONATOMIC);
return output;

View File

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

View File

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

View File

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

View File

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

View File

@ -1,15 +1,15 @@
#import "TGCameraFlashControl.h"
#import <LegacyComponents/TGCameraFlashControl.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 "POPBasicAnimation.h"
#import <LegacyComponents/POPBasicAnimation.h>
const CGFloat TGCameraFlashControlHeight = 44.0f;

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