forked from dimat/DMNumberSpellOutFormatter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
NumberSpellOutFormatter.podspec
61 lines (49 loc) · 2.38 KB
/
NumberSpellOutFormatter.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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
#
# Be sure to run `pod lib lint NumberSpellOutFormatter.podspec' to ensure this is a
# valid spec before submitting.
#
# Any lines starting with a # are optional, but their use is encouraged
# To learn more about a Podspec see http://guides.cocoapods.org/syntax/podspec.html
#
Pod::Spec.new do |s|
s.name = 'NumberSpellOutFormatter'
s.version = '1.0.0'
s.summary = 'Spell out numbers in any language'
s.description = <<-DESC
Allows to spell out numbers in different languages and with many options. Unlike the standard NSNumberFormatter it
also supports ordinal numbers with any additional modes that are applicable for specific language, such as gender
(feminine and masculine) and grammatical cases.
DESC
s.homepage = 'https://github.com/dimat/DMNumberSpellOutFormatter'
s.license = { :type => 'MIT', :file => 'LICENSE' }
s.author = { 'Dmitry Matyukhin' => '[email protected]' }
s.source = { :git => 'https://github.com/dimat/DMNumberSpellOutFormatter.git', :tag => s.version.to_s }
s.ios.deployment_target = '8.0'
s.swift_version = '3.2'
s.source_files = ['NumberSpellOutFormatter/Classes/**/*']
s.public_header_files = 'NumberSpellOutFormatter/Classes/*.h'
s.default_subspec = 'precompiled'
s.subspec 'precompiled' do |ss|
ss.source_files = 'icu4c-static-lib/include/**/*.h'
ss.private_header_files = 'icu4c-static-lib/include/**/*.h'
ss.vendored_libraries = 'icu4c-static-lib/lib/**/*.a'
ss.header_mappings_dir = 'icu4c-static-lib/include'
ss.libraries = "c++"
# The libraries were not merged into a single fat libary, because the total size
# of one of the libs gets to 150M while GitHub only allows maximum 100M
# This will prevent warnings about missing architectures
simulator_ldflags = '-l"c++" -l"icudata-simulator" -l"icui18n-simulator" -l"icuio-simulator" -l"icuuc-simulator"'
arm_ldflags = '-l"c++" -l"icudata-arm" -l"icui18n-arm" -l"icuio-arm" -l"icuuc-arm"'
ss.pod_target_xcconfig = {
'OTHER_LDFLAGS[arch=armv7]' => arm_ldflags,
'OTHER_LDFLAGS[arch=armv7s]' => arm_ldflags,
'OTHER_LDFLAGS[arch=arm64]' => arm_ldflags,
'OTHER_LDFLAGS[arch=i386]' => simulator_ldflags,
'OTHER_LDFLAGS[arch=x86_64]' => simulator_ldflags
}
end
s.test_spec 'Tests' do |test_spec|
test_spec.source_files = 'NumberSpellOutFormatter/Tests/*.swift'
test_spec.pod_target_xcconfig = { 'SWIFT_VERSION' => '3.2' }
end
end