forked from Cocoanetics/DTCoreText
-
Notifications
You must be signed in to change notification settings - Fork 1
/
DTCoreText.podspec
37 lines (34 loc) · 1.52 KB
/
DTCoreText.podspec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
Pod::Spec.new do |spec|
spec.name = 'DTCoreText'
spec.version = '1.6.20'
spec.platforms = {:ios => '4.3', :tvos => '9.0' }
spec.license = 'BSD'
spec.source = { :git => 'https://github.com/gauravmnit07/DTCoreText.git', :branch => 'develop' }
spec.source_files = 'Core/Source/*.{h,m,c}'
spec.ios.source_files = 'Core/Source/iOS/*.{h,m,c}'
spec.dependency 'DTFoundation/Core'
spec.dependency 'DTFoundation/UIKit'
spec.dependency 'DTFoundation/DTHTMLParser'
spec.dependency 'DTFoundation/DTAnimatedGIF'
spec.frameworks = 'MediaPlayer', 'QuartzCore', 'CoreText', 'CoreGraphics', 'ImageIO'
spec.requires_arc = true
spec.homepage = 'https://github.com/gauravmnit07/DTCoreText'
spec.summary = 'Methods to allow using HTML code with CoreText.'
spec.author = { 'Oliver Drobnik' => 'oliver@cocoanetics.com' }
spec.documentation_url = 'http://docs.cocoanetics.com/DTCoreText'
spec.social_media_url = 'https://twitter.com/cocoanetics'
spec.prefix_header_contents = '#import <CoreText/CoreText.h>'
spec.xcconfig = { 'GCC_PREPROCESSOR_DEFINITIONS' => '$(inherited)' }
spec.prepare_command = <<-CMD
cd ./Core/Source
/usr/bin/xxd -i default.css default.css.c
CMD
spec.default_subspec = 'Core'
spec.subspec 'Core' do |ap|
ap.source_files = 'Core/Source/*.{h,m,c}'
end
spec.subspec 'Extension' do |ap|
ap.source_files = 'Core/Source/*.{h,m,c}'
ap.pod_target_xcconfig = { 'GCC_PREPROCESSOR_DEFINITIONS' => '$(inherited) DT_APP_EXTENSIONS=1' }
end
end