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