mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-10 08:20:16 +00:00
89 lines
3.0 KiB
Ruby
89 lines
3.0 KiB
Ruby
Pod::Spec.new do |spec|
|
|
spec.name = 'Texture'
|
|
spec.version = '2.7'
|
|
spec.license = { :type => 'BSD and Apache 2', }
|
|
spec.homepage = 'http://texturegroup.org'
|
|
spec.authors = { 'Huy Nguyen' => 'huy@pinterest.com', 'Garrett Moon' => 'garrett@excitedpixel.com', 'Scott Goodson' => 'scottgoodson@gmail.com', 'Michael Schneider' => 'schneider@pinterest.com', 'Adlai Holler' => 'adlai@pinterest.com' }
|
|
spec.summary = 'Smooth asynchronous user interfaces for iOS apps.'
|
|
spec.source = { :git => 'https://github.com/TextureGroup/Texture.git', :tag => spec.version.to_s }
|
|
spec.module_name = 'AsyncDisplayKit'
|
|
spec.header_dir = 'AsyncDisplayKit'
|
|
|
|
spec.documentation_url = 'http://texturegroup.org/appledoc/'
|
|
|
|
spec.ios.deployment_target = '9.0'
|
|
spec.tvos.deployment_target = '9.0'
|
|
|
|
# Subspecs
|
|
spec.subspec 'Core' do |core|
|
|
core.compiler_flags = '-fno-exceptions -fno-objc-arc-exceptions'
|
|
core.public_header_files = [
|
|
'Source/*.h',
|
|
'Source/Details/**/*.h',
|
|
'Source/Layout/**/*.h',
|
|
'Source/Base/*.h',
|
|
'Source/Debug/**/*.h',
|
|
'Source/TextKit/ASTextNodeTypes.h',
|
|
'Source/TextKit/ASTextKitComponents.h'
|
|
]
|
|
|
|
core.source_files = [
|
|
'Source/**/*.{h,m,mm}',
|
|
'Base/*.{h,m}',
|
|
|
|
# Most TextKit components are not public because the C++ content
|
|
# in the headers will cause build errors when using
|
|
# `use_frameworks!` on 0.39.0 & Swift 2.1.
|
|
# See https://github.com/facebook/AsyncDisplayKit/issues/1153
|
|
'Source/TextKit/*.h',
|
|
]
|
|
end
|
|
|
|
spec.subspec 'PINRemoteImage' do |pin|
|
|
pin.dependency 'PINRemoteImage/iOS', '= 3.0.0-beta.13'
|
|
pin.dependency 'PINRemoteImage/PINCache'
|
|
pin.dependency 'Texture/Core'
|
|
end
|
|
|
|
spec.subspec 'IGListKit' do |igl|
|
|
igl.dependency 'IGListKit', '~> 3.0'
|
|
igl.dependency 'Texture/Core'
|
|
end
|
|
|
|
spec.subspec 'Yoga' do |yoga|
|
|
yoga.xcconfig = { 'GCC_PREPROCESSOR_DEFINITIONS' => '$(inherited) YOGA=1' }
|
|
yoga.dependency 'Yoga', '1.6.0'
|
|
yoga.dependency 'Texture/Core'
|
|
end
|
|
|
|
spec.subspec 'MapKit' do |map|
|
|
map.frameworks = 'MapKit'
|
|
map.xcconfig = { 'GCC_PREPROCESSOR_DEFINITIONS' => '$(inherited) AS_USE_MAPKIT=1' }
|
|
map.dependency 'Texture/Core'
|
|
end
|
|
|
|
spec.subspec 'Photos' do |photos|
|
|
photos.frameworks = 'Photos'
|
|
photos.xcconfig = { 'GCC_PREPROCESSOR_DEFINITIONS' => '$(inherited) AS_USE_PHOTOS=1' }
|
|
photos.dependency 'Texture/Core'
|
|
end
|
|
|
|
spec.subspec 'AssetsLibrary' do |assetslib|
|
|
assetslib.frameworks = 'AssetsLibrary'
|
|
assetslib.xcconfig = { 'GCC_PREPROCESSOR_DEFINITIONS' => '$(inherited) AS_USE_ASSETS_LIBRARY=1' }
|
|
assetslib.dependency 'Texture/Core'
|
|
end
|
|
|
|
# Include these by default for backwards compatibility.
|
|
# This will change in 3.0.
|
|
spec.default_subspecs = 'PINRemoteImage', 'MapKit', 'AssetsLibrary', 'Photos'
|
|
|
|
spec.social_media_url = 'https://twitter.com/TextureiOS'
|
|
spec.library = 'c++'
|
|
spec.pod_target_xcconfig = {
|
|
'CLANG_CXX_LANGUAGE_STANDARD' => 'c++11',
|
|
'CLANG_CXX_LIBRARY' => 'libc++'
|
|
}
|
|
|
|
end
|