forked from ZolibraBond/MQTT-Client-Framework
-
Notifications
You must be signed in to change notification settings - Fork 0
/
MQTTClient.podspec
108 lines (99 loc) · 4.91 KB
/
MQTTClient.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
Pod::Spec.new do |mqttc|
mqttc.name = "MQTTClient"
mqttc.version = "0.15.3"
mqttc.summary = "iOS, macOS and tvOS native ObjectiveC MQTT Client Framework"
mqttc.homepage = "https://github.com/novastone-media/MQTT-Client-Framework"
mqttc.license = { :type => "EPLv1", :file => "LICENSE" }
mqttc.author = { "novastonemedia" => "ios@novastonemedia.com" }
mqttc.source = {
:git => "https://github.com/novastone-media/MQTT-Client-Framework.git",
:tag => "0.15.2",
:submodules => true
}
mqttc.requires_arc = true
mqttc.platform = :ios, "6.1", :osx, "10.10", :tvos, "9.0"
mqttc.ios.deployment_target = "6.1"
mqttc.osx.deployment_target = "10.10"
mqttc.tvos.deployment_target = "9.0"
mqttc.default_subspec = 'Core'
mqttc.subspec 'Core' do |core|
core.dependency 'MQTTClient/Min'
core.dependency 'MQTTClient/Manager'
end
mqttc.subspec 'Min' do |min|
min.source_files = "MQTTClient/MQTTClient/Minimal/**/MQTTCFSocketDecoder.{h,m}",
"MQTTClient/MQTTClient/Minimal/**/MQTTCFSocketEncoder.{h,m}",
"MQTTClient/MQTTClient/Minimal/**/MQTTCFSocketTransport.{h,m}",
"MQTTClient/MQTTClient/Minimal/**/MQTTCoreDataPersistence.{h,m}",
"MQTTClient/MQTTClient/Minimal/**/MQTTDecoder.{h,m}",
"MQTTClient/MQTTClient/Minimal/**/MQTTInMemoryPersistence.{h,m}",
"MQTTClient/MQTTClient/Minimal/**/MQTTLog.{h,m}",
"MQTTClient/MQTTClient/Minimal/**/MQTTStrict.{h,m}",
"MQTTClient/MQTTClient/Minimal/**/MQTTClient.h",
"MQTTClient/MQTTClient/Minimal/**/MQTTMessage.{h,m}",
"MQTTClient/MQTTClient/Minimal/**/MQTTPersistence.h",
"MQTTClient/MQTTClient/Minimal/**/MQTTSSLSecurityPolicy.{h,m}",
"MQTTClient/MQTTClient/Minimal/**/MQTTSSLSecurityPolicyDecoder.{h,m}",
"MQTTClient/MQTTClient/Minimal/**/MQTTSSLSecurityPolicyEncoder.{h,m}",
"MQTTClient/MQTTClient/Minimal/**/MQTTSSLSecurityPolicyTransport.{h,m}",
"MQTTClient/MQTTClient/Minimal/**/MQTTProperties.{h,m}",
"MQTTClient/MQTTClient/Minimal/**/MQTTSession.{h,m}",
"MQTTClient/MQTTClient/Minimal/**/MQTTSessionLegacy.{h,m}",
"MQTTClient/MQTTClient/Minimal/**/MQTTSessionSynchron.{h,m}",
"MQTTClient/MQTTClient/Minimal/**/MQTTTransport.{h,m}",
"MQTTClient/MQTTClient/Minimal/**/GCDTimer.{h,m}"
end
mqttc.subspec 'MinL' do |minl|
minl.dependency 'CocoaLumberjack'
minl.source_files = "MQTTClient/MQTTClient/Minimal/**/MQTTCFSocketDecoder.{h,m}",
"MQTTClient/MQTTClient/Minimal/**/MQTTCFSocketEncoder.{h,m}",
"MQTTClient/MQTTClient/Minimal/**/MQTTCFSocketTransport.{h,m}",
"MQTTClient/MQTTClient/Minimal/**/MQTTCoreDataPersistence.{h,m}",
"MQTTClient/MQTTClient/Minimal/**/MQTTDecoder.{h,m}",
"MQTTClient/MQTTClient/Minimal/**/MQTTInMemoryPersistence.{h,m}",
"MQTTClient/MQTTClient/Minimal/**/MQTTLog.{h,m}",
"MQTTClient/MQTTClient/Minimal/**/MQTTStrict.{h,m}",
"MQTTClient/MQTTClient/Minimal/**/MQTTClient.h",
"MQTTClient/MQTTClient/Minimal/**/MQTTMessage.{h,m}",
"MQTTClient/MQTTClient/Minimal/**/MQTTPersistence.h",
"MQTTClient/MQTTClient/Minimal/**/MQTTSSLSecurityPolicy.{h,m}",
"MQTTClient/MQTTClient/Minimal/**/MQTTSSLSecurityPolicyDecoder.{h,m}",
"MQTTClient/MQTTClient/Minimal/**/MQTTSSLSecurityPolicyEncoder.{h,m}",
"MQTTClient/MQTTClient/Minimal/**/MQTTSSLSecurityPolicyTransport.{h,m}",
"MQTTClient/MQTTClient/Minimal/**/MQTTProperties.{h,m}",
"MQTTClient/MQTTClient/Minimal/**/MQTTSession.{h,m}",
"MQTTClient/MQTTClient/Minimal/**/MQTTSessionLegacy.{h,m}",
"MQTTClient/MQTTClient/Minimal/**/MQTTSessionSynchron.{h,m}",
"MQTTClient/MQTTClient/Minimal/**/MQTTTransport.{h,m}",
"MQTTClient/MQTTClient/Minimal/**/GCDTimer.{h,m}"
minl.xcconfig = { 'GCC_PREPROCESSOR_DEFINITIONS' => 'LUMBERJACK=1' }
end
mqttc.subspec 'Manager' do |manager|
manager.source_files = "MQTTClient/MQTTClient/SessionManager/MQTTSessionManager.{h,m}",
"MQTTClient/MQTTClient/SessionManager/ReconnectTimer.{h,m}",
"MQTTClient/MQTTClient/SessionManager/ForegroundReconnection.{h,m}"
manager.dependency 'MQTTClient/Min'
end
mqttc.subspec 'ManagerL' do |managerl|
manager.source_files = "MQTTClient/MQTTClient/SessionManager/MQTTSessionManager.{h,m}",
"MQTTClient/MQTTClient/SessionManager/ReconnectTimer.{h,m}",
"MQTTClient/MQTTClient/SessionManager/ForegroundReconnection.{h,m}"
managerl.dependency 'MQTTClient/MinL'
managerl.xcconfig = { 'GCC_PREPROCESSOR_DEFINITIONS' => 'LUMBERJACK=1' }
end
mqttc.subspec 'Websocket' do |ws|
ws.source_files = "MQTTClient/MQTTClient/Websocket/*.{h,m}"
ws.dependency 'SocketRocket'
ws.dependency 'MQTTClient/Min'
ws.requires_arc = true
ws.libraries = "icucore"
end
mqttc.subspec 'WebsocketL' do |wsl|
wsl.source_files = "MQTTClient/MQTTClient/Websocket/*.{h,m}"
wsl.dependency 'SocketRocket'
wsl.dependency 'MQTTClient/MinL'
wsl.requires_arc = true
wsl.libraries = "icucore"
wsl.xcconfig = { 'GCC_PREPROCESSOR_DEFINITIONS' => 'LUMBERJACK=1' }
end
end