mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-16 03:09:56 +00:00
Add Video subspec (#1240)
This commit is contained in:
parent
90a9a9640a
commit
31125ff6cf
@ -2617,6 +2617,7 @@
|
||||
"AS_USE_ASSETS_LIBRARY=1",
|
||||
"AS_USE_MAPKIT=1",
|
||||
"AS_USE_PHOTOS=1",
|
||||
"AS_USE_VIDEO=1",
|
||||
);
|
||||
GCC_SYMBOLS_PRIVATE_EXTERN = NO;
|
||||
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
|
||||
|
||||
@ -7,8 +7,11 @@
|
||||
// Licensed under Apache 2.0: http://www.apache.org/licenses/LICENSE-2.0
|
||||
//
|
||||
|
||||
#import <AsyncDisplayKit/ASAvailability.h>
|
||||
#import <AsyncDisplayKit/ASNetworkImageNode.h>
|
||||
|
||||
#if AS_USE_VIDEO
|
||||
|
||||
@class AVAsset, AVPlayer, AVPlayerLayer, AVPlayerItem, AVVideoComposition, AVAudioMix;
|
||||
@protocol ASVideoNodeDelegate;
|
||||
|
||||
@ -164,3 +167,5 @@ NS_ASSUME_NONNULL_BEGIN
|
||||
@end
|
||||
|
||||
NS_ASSUME_NONNULL_END
|
||||
|
||||
#endif
|
||||
|
||||
@ -7,11 +7,14 @@
|
||||
// Licensed under Apache 2.0: http://www.apache.org/licenses/LICENSE-2.0
|
||||
//
|
||||
|
||||
#import <AsyncDisplayKit/ASVideoNode.h>
|
||||
|
||||
#if AS_USE_VIDEO
|
||||
|
||||
#import <AVFoundation/AVFoundation.h>
|
||||
#import <AsyncDisplayKit/ASDisplayNode+FrameworkPrivate.h>
|
||||
#import <AsyncDisplayKit/ASDisplayNode+Subclasses.h>
|
||||
#import <AsyncDisplayKit/ASDisplayNodeInternal.h>
|
||||
#import <AsyncDisplayKit/ASVideoNode.h>
|
||||
#import <AsyncDisplayKit/ASEqualityHelpers.h>
|
||||
#import <AsyncDisplayKit/ASInternalHelpers.h>
|
||||
#import <AsyncDisplayKit/ASDisplayNodeExtras.h>
|
||||
@ -856,3 +859,5 @@ static NSString * const kRate = @"rate";
|
||||
}
|
||||
|
||||
@end
|
||||
|
||||
#endif
|
||||
|
||||
@ -7,6 +7,10 @@
|
||||
// Licensed under Apache 2.0: http://www.apache.org/licenses/LICENSE-2.0
|
||||
//
|
||||
|
||||
#import <AsyncDisplayKit/ASAvailability.h>
|
||||
|
||||
#if AS_USE_VIDEO
|
||||
|
||||
#if TARGET_OS_IOS
|
||||
#import <CoreMedia/CoreMedia.h>
|
||||
#import <AsyncDisplayKit/ASThread.h>
|
||||
@ -217,3 +221,5 @@ NS_ASSUME_NONNULL_BEGIN
|
||||
@end
|
||||
NS_ASSUME_NONNULL_END
|
||||
#endif // TARGET_OS_IOS
|
||||
|
||||
#endif
|
||||
|
||||
@ -7,12 +7,11 @@
|
||||
// Licensed under Apache 2.0: http://www.apache.org/licenses/LICENSE-2.0
|
||||
//
|
||||
|
||||
#import <Foundation/Foundation.h>
|
||||
|
||||
#if TARGET_OS_IOS
|
||||
|
||||
#import <AsyncDisplayKit/ASVideoPlayerNode.h>
|
||||
|
||||
#if AS_USE_VIDEO
|
||||
#if TARGET_OS_IOS
|
||||
|
||||
#import <AVFoundation/AVFoundation.h>
|
||||
|
||||
#import <AsyncDisplayKit/AsyncDisplayKit.h>
|
||||
@ -1016,3 +1015,5 @@ static void *ASVideoPlayerNodeContext = &ASVideoPlayerNodeContext;
|
||||
@end
|
||||
|
||||
#endif // TARGET_OS_IOS
|
||||
|
||||
#endif
|
||||
|
||||
@ -21,11 +21,12 @@
|
||||
#import <AsyncDisplayKit/ASImageNode.h>
|
||||
#import <AsyncDisplayKit/ASTextNode.h>
|
||||
#import <AsyncDisplayKit/ASTextNode2.h>
|
||||
#import <AsyncDisplayKit/ASEditableTextNode.h>
|
||||
#import <AsyncDisplayKit/ASButtonNode.h>
|
||||
#import <AsyncDisplayKit/ASMapNode.h>
|
||||
|
||||
#import <AsyncDisplayKit/ASVideoNode.h>
|
||||
#import <AsyncDisplayKit/ASVideoPlayerNode.h>
|
||||
#import <AsyncDisplayKit/ASEditableTextNode.h>
|
||||
|
||||
#import <AsyncDisplayKit/ASImageProtocols.h>
|
||||
#import <AsyncDisplayKit/ASBasicImageDownloader.h>
|
||||
|
||||
@ -17,6 +17,11 @@
|
||||
#define AS_TLS_AVAILABLE 1
|
||||
#endif
|
||||
|
||||
// This needs to stay in sync with Weaver
|
||||
#ifndef AS_USE_VIDEO
|
||||
#define AS_USE_VIDEO 0
|
||||
#endif
|
||||
|
||||
#ifndef AS_USE_PHOTOS
|
||||
#define AS_USE_PHOTOS 0
|
||||
#endif
|
||||
|
||||
@ -16,10 +16,6 @@ Pod::Spec.new do |spec|
|
||||
|
||||
# Subspecs
|
||||
spec.subspec 'Core' do |core|
|
||||
|
||||
# These will be lowered into subspecs in the future. Only here for ASVideoNode.
|
||||
core.frameworks = ['AVFoundation', 'CoreMedia']
|
||||
|
||||
core.compiler_flags = '-fno-exceptions -Wno-implicit-retain-self'
|
||||
core.public_header_files = [
|
||||
'Source/*.h',
|
||||
@ -59,6 +55,12 @@ Pod::Spec.new do |spec|
|
||||
yoga.dependency 'Texture/Core'
|
||||
end
|
||||
|
||||
spec.subspec 'Video' do |video|
|
||||
video.frameworks = ['AVFoundation', 'CoreMedia']
|
||||
video.xcconfig = { 'GCC_PREPROCESSOR_DEFINITIONS' => '$(inherited) AS_USE_VIDEO=1' }
|
||||
video.dependency 'Texture/Core'
|
||||
end
|
||||
|
||||
spec.subspec 'MapKit' do |map|
|
||||
map.frameworks = ['CoreLocation', 'MapKit']
|
||||
map.xcconfig = { 'GCC_PREPROCESSOR_DEFINITIONS' => '$(inherited) AS_USE_MAPKIT=1' }
|
||||
@ -79,7 +81,7 @@ Pod::Spec.new do |spec|
|
||||
|
||||
# Include these by default for backwards compatibility.
|
||||
# This will change in 3.0.
|
||||
spec.default_subspecs = 'PINRemoteImage', 'MapKit', 'AssetsLibrary', 'Photos'
|
||||
spec.default_subspecs = 'Core', 'PINRemoteImage', 'Video', 'MapKit', 'AssetsLibrary', 'Photos'
|
||||
|
||||
spec.social_media_url = 'https://twitter.com/TextureiOS'
|
||||
spec.library = 'c++'
|
||||
|
||||
@ -4,5 +4,6 @@ target 'Sample' do
|
||||
pod 'Texture/IGListKit', :path => '../..'
|
||||
pod 'Texture/PINRemoteImage', :path => '../..'
|
||||
pod 'Texture/Yoga', :path => '../..'
|
||||
pod 'Weaver'
|
||||
pod 'Texture/Video', :path => '../..'
|
||||
pod 'Weaver', :git => 'git@github.com:TextureGroup/Weaver.git', :branch => 'master'
|
||||
end
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user