-
Notifications
You must be signed in to change notification settings - Fork 7
/
Trikot.podspec
122 lines (102 loc) · 4.61 KB
/
Trikot.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
require_relative 'podspec_versions.rb'
properties = load_properties('gradle.properties')
Pod::Spec.new do |spec|
spec.name = "Trikot"
spec.version = "#{properties['version']}"
spec.summary = "Plugins for Trikot"
spec.description = "Plugins for Trikot"
spec.homepage = "https://github.com/mirego/trikot"
spec.license = "MIT license"
spec.author = { "Nicolas Presseault" => "npresseault@mirego.com" }
spec.source = { :git => "https://github.com/mirego/trikot.git", :tag => "#{spec.version}" }
spec.static_framework = true
spec.dependency ENV['TRIKOT_FRAMEWORK_NAME']
# Streams
spec.subspec 'streams' do |subspec|
subspec.source_files = "trikot-streams/swift-extensions/*.swift"
subspec.ios.deployment_target = '8.0'
subspec.tvos.deployment_target = '9.0'
end
spec.subspec 'streams.Combine' do |subspec|
subspec.source_files = 'trikot-streams/swift-extensions/combine/*.swift'
subspec.ios.deployment_target = '13.0'
end
# Http
spec.subspec 'http' do |subspec|
subspec.source_files = 'trikot-http/swift-extensions/*.swift'
subspec.dependency 'ReachabilitySwift', '~> 5.2'
end
# View Model
spec.subspec 'viewmodels' do |subspec|
subspec.source_files = "trikot-viewmodels/swift-extensions/*.swift"
subspec.tvos.source_files = "trikot-viewmodels/swift-extensions/*.swift"
subspec.tvos.exclude_files = "trikot-viewmodels/swift-extensions/UISliderExtensions.swift", "trikot-viewmodels/swift-extensions/UISwitchExtensions.swift", "trikot-viewmodels/swift-extensions/UIPickerExtensions.swift"
subspec.ios.deployment_target = '12.0'
subspec.tvos.deployment_target = '12.0'
subspec.dependency 'Trikot/streams'
end
spec.subspec 'viewmodels.Kingfisher' do |subspec|
subspec.source_files = 'trikot-viewmodels/swift-extensions/kingfisher/*.swift'
subspec.tvos.source_files = 'trikot-viewmodels/swift-extensions/kingfisher/*.swift'
subspec.ios.deployment_target = '12.0'
subspec.tvos.deployment_target = '12.0'
subspec.dependency 'Trikot/streams'
subspec.dependency 'Trikot/viewmodels'
subspec.dependency 'Kingfisher', '~> 7.10.1'
end
# View Model Declarative
spec.subspec 'viewmodels.declarative' do |subspec|
subspec.source_files = 'trikot-viewmodels-declarative/swift/core/**/*.swift'
subspec.dependency 'Trikot/streams'
end
spec.subspec 'viewmodels.declarative.Combine' do |subspec|
subspec.source_files = 'trikot-viewmodels-declarative/swift/combine/**/*.swift'
end
spec.subspec 'viewmodels.declarative.UIKit' do |subspec|
subspec.source_files = 'trikot-viewmodels-declarative/swift/uikit/**/*.swift'
subspec.dependency 'Trikot/streams'
subspec.dependency 'Trikot/viewmodels.declarative'
subspec.dependency 'Kingfisher', '~> 7.10.1'
end
spec.subspec 'viewmodels.declarative.SwiftUI' do |subspec|
subspec.source_files = 'trikot-viewmodels-declarative/swift/swiftui/**/*.swift'
subspec.dependency 'Trikot/viewmodels.declarative'
subspec.dependency 'Trikot/viewmodels.declarative.Combine'
subspec.dependency 'Kingfisher', '~> 7.10.1'
subspec.dependency 'SwiftUIIntrospect', '~> 1.0'
end
# View Model Declarative Flow
spec.subspec 'viewmodels.declarative.flow' do |subspec|
subspec.source_files = 'trikot-viewmodels-declarative-flow/swift/core/**/*.swift'
end
spec.subspec 'viewmodels.declarative.SwiftUI.flow' do |subspec|
subspec.source_files = 'trikot-viewmodels-declarative-flow/swift/swiftui/**/*.swift'
subspec.dependency 'Trikot/viewmodels.declarative.flow'
subspec.dependency 'Kingfisher', '~> 7.10.1'
subspec.dependency 'SwiftUIIntrospect', '~> 1.0'
end
# Analytics
spec.subspec 'analytics.Firebase' do |subspec|
subspec.source_files = 'trikot-analytics/swift-extensions/firebase/*.swift'
subspec.ios.deployment_target = '10.0'
subspec.dependency 'Firebase/Analytics'
end
spec.subspec 'analytics.Mixpanel' do |subspec|
subspec.source_files = 'trikot-analytics/swift-extensions/mixpanel/*.swift'
subspec.ios.deployment_target = '10.0'
subspec.dependency 'Mixpanel-swift'
end
# Kword
spec.subspec 'kword' do |subspec|
subspec.source_files = "trikot-kword/swift-extensions/*.swift"
end
# Bluetooth
spec.subspec 'bluetooth' do |subspec|
subspec.source_files = "trikot-bluetooth/swift-extensions/*.swift"
subspec.ios.deployment_target = '10.0'
subspec.dependency ENV['TRIKOT_FRAMEWORK_NAME']
end
spec.prepare_command = <<-CMD
find . -type f -name "*.swift" -exec sed -i '' -e "s/TRIKOT_FRAMEWORK_NAME/${TRIKOT_FRAMEWORK_NAME}/g" {} +
CMD
end