-
Notifications
You must be signed in to change notification settings - Fork 43
/
CrowdinSDK.podspec
142 lines (116 loc) · 5.5 KB
/
CrowdinSDK.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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
#
# Be sure to run `pod lib lint CrowdinSDK.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 https://guides.cocoapods.org/syntax/podspec.html
#
Pod::Spec.new do |spec|
spec.name = 'CrowdinSDK'
spec.version = '1.9.0'
spec.summary = 'Crowdin iOS SDK delivers all new translations from Crowdin project to the application immediately'
spec.description = <<-DESC
Crowdin iOS SDK delivers all new translations from Crowdin project to the application immediately. So there is no need to update this application via App Store to get the new version with the localization.
The SDK provides:
Over-The-Air Content Delivery – the localized files can be sent to the application from the project whenever needed
Real-time Preview – all the translations that are done via Editor can be shown in the application in real-time
Screenshots – all screenshots made in the application may be automatically sent to your Crowdin project with tagged source strings
DESC
spec.homepage = 'https://github.com/crowdin/mobile-sdk-ios'
spec.license = { :type => 'MIT', :file => 'LICENSE' }
spec.author = { 'Crowdin' => '[email protected]' }
spec.source = { :git => 'https://github.com/crowdin/mobile-sdk-ios.git', :tag => spec.version.to_s }
spec.social_media_url = 'https://twitter.com/crowdin'
spec.watchos.deployment_target = '4.0'
spec.ios.deployment_target = '12.0'
spec.tvos.deployment_target = '12.0'
spec.macos.deployment_target = '10.13'
spec.ios.frameworks = 'UIKit'
spec.tvos.frameworks = 'UIKit'
spec.osx.framework = 'AppKit'
spec.static_framework = false
spec.swift_version = '5.0'
spec.default_subspecs = 'Core', 'CrowdinProvider'
spec.subspec 'Core' do |core|
core.source_files = 'Sources/CrowdinSDK/CrowdinSDK/**/*'
core.dependency 'CrowdinSDK/CrowdinFileSystem'
end
spec.subspec 'CrowdinFileSystem' do |subspec|
subspec.source_files = 'Sources/CrowdinSDK/CrowdinFileSystem/**/*'
end
spec.test_spec 'Core_Tests' do |test_spec|
test_spec.source_files = 'Sources/Tests/Core/*.swift'
end
spec.subspec 'CrowdinProvider' do |provider|
provider.name = 'CrowdinProvider'
provider.source_files = 'Sources/CrowdinSDK/Providers/Crowdin/**/*.swift'
provider.dependency 'CrowdinSDK/Core'
provider.dependency 'CrowdinSDK/CrowdinAPI'
provider.dependency 'CrowdinSDK/CrowdinFileSystem'
end
spec.test_spec 'CrowdinProvider_Tests' do |test_spec|
test_spec.source_files = 'Sources/Tests/CrowdinProvider/*.swift'
test_spec.resources = 'Resources/Tests/SupportedLanguages.json'
end
spec.subspec 'CrowdinAPI' do |subspec|
subspec.name = 'CrowdinAPI'
subspec.source_files = 'Sources/CrowdinSDK/CrowdinAPI/**/*.swift'
subspec.dependency 'CrowdinSDK/Core'
subspec.dependency 'BaseAPI', '~> 0.2.2'
end
spec.test_spec 'CrowdinAPI_Tests' do |test_spec|
test_spec.source_files = 'Sources/Tests/CrowdinAPI/*.swift'
end
spec.subspec 'Screenshots' do |feature|
feature.name = 'Screenshots'
feature.ios.source_files = 'Sources/CrowdinSDK/Features/ScreenshotFeature/**/*.swift'
feature.dependency 'CrowdinSDK/Core'
feature.dependency 'CrowdinSDK/CrowdinProvider'
feature.dependency 'CrowdinSDK/CrowdinAPI'
feature.dependency 'CrowdinSDK/LoginFeature'
end
spec.subspec 'RealtimeUpdate' do |feature|
feature.name = 'RealtimeUpdate'
feature.ios.source_files = 'Sources/CrowdinSDK/Features/RealtimeUpdateFeature/**/*.swift'
feature.dependency 'CrowdinSDK/Core'
feature.dependency 'CrowdinSDK/CrowdinProvider'
feature.dependency 'CrowdinSDK/CrowdinAPI'
feature.dependency 'CrowdinSDK/LoginFeature'
feature.dependency 'Starscream', '~> 4.0.4'
end
spec.subspec 'RefreshLocalization' do |feature|
feature.name = 'RefreshLocalization'
feature.source_files = 'Sources/CrowdinSDK/Features/RefreshLocalizationFeature/**/*.swift'
feature.dependency 'CrowdinSDK/Core'
feature.dependency 'CrowdinSDK/CrowdinProvider'
feature.dependency 'CrowdinSDK/CrowdinAPI'
end
spec.subspec 'LoginFeature' do |feature|
feature.name = 'LoginFeature'
feature.ios.source_files = 'Sources/CrowdinSDK/Features/LoginFeature/**/*.swift'
feature.dependency 'CrowdinSDK/Core'
feature.dependency 'CrowdinSDK/CrowdinProvider'
feature.dependency 'CrowdinSDK/CrowdinAPI'
feature.dependency 'BaseAPI', '~> 0.2.2'
end
spec.subspec 'IntervalUpdate' do |feature|
feature.name = 'IntervalUpdate'
feature.ios.source_files = 'Sources/CrowdinSDK/Features/IntervalUpdateFeature/**/*.swift'
feature.dependency 'CrowdinSDK/Core'
feature.dependency 'CrowdinSDK/CrowdinProvider'
feature.dependency 'CrowdinSDK/CrowdinAPI'
end
spec.subspec 'Settings' do |settings|
settings.name = 'Settings'
settings.ios.source_files = 'Sources/CrowdinSDK/Settings/**/*.swift'
settings.ios.resources = 'Sources/CrowdinSDK/Resources/Settings/*.{storyboard,xib,xcassets}'
settings.dependency 'CrowdinSDK/Screenshots'
settings.dependency 'CrowdinSDK/RealtimeUpdate'
settings.dependency 'CrowdinSDK/RefreshLocalization'
settings.dependency 'CrowdinSDK/IntervalUpdate'
settings.dependency 'CrowdinSDK/Core'
settings.dependency 'CrowdinSDK/CrowdinProvider'
settings.dependency 'CrowdinSDK/CrowdinAPI'
settings.dependency 'CrowdinSDK/LoginFeature'
end
end