forked from oh6hay/MQTT-Client-Framework
-
Notifications
You must be signed in to change notification settings - Fork 0
/
MQTTClient.podspec
108 lines (99 loc) · 4.4 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/MQTTCFSocketDecoder.{h,m}",
"MQTTClient/MQTTClient/MQTTCFSocketEncoder.{h,m}",
"MQTTClient/MQTTClient/MQTTCFSocketTransport.{h,m}",
"MQTTClient/MQTTClient/MQTTCoreDataPersistence.{h,m}",
"MQTTClient/MQTTClient/MQTTDecoder.{h,m}",
"MQTTClient/MQTTClient/MQTTInMemoryPersistence.{h,m}",
"MQTTClient/MQTTClient/MQTTLog.{h,m}",
"MQTTClient/MQTTClient/MQTTStrict.{h,m}",
"MQTTClient/MQTTClient/MQTTClient.h",
"MQTTClient/MQTTClient/MQTTMessage.{h,m}",
"MQTTClient/MQTTClient/MQTTPersistence.h",
"MQTTClient/MQTTClient/MQTTSSLSecurityPolicy.{h,m}",
"MQTTClient/MQTTClient/MQTTSSLSecurityPolicyDecoder.{h,m}",
"MQTTClient/MQTTClient/MQTTSSLSecurityPolicyEncoder.{h,m}",
"MQTTClient/MQTTClient/MQTTSSLSecurityPolicyTransport.{h,m}",
"MQTTClient/MQTTClient/MQTTProperties.{h,m}",
"MQTTClient/MQTTClient/MQTTSession.{h,m}",
"MQTTClient/MQTTClient/MQTTSessionLegacy.{h,m}",
"MQTTClient/MQTTClient/MQTTSessionSynchron.{h,m}",
"MQTTClient/MQTTClient/MQTTTransport.{h,m}",
"MQTTClient/MQTTClient/GCDTimer.{h,m}"
end
mqttc.subspec 'MinL' do |minl|
minl.dependency 'CocoaLumberjack'
minl.source_files = "MQTTClient/MQTTClient/MQTTCFSocketDecoder.{h,m}",
"MQTTClient/MQTTClient/MQTTCFSocketEncoder.{h,m}",
"MQTTClient/MQTTClient/MQTTCFSocketTransport.{h,m}",
"MQTTClient/MQTTClient/MQTTCoreDataPersistence.{h,m}",
"MQTTClient/MQTTClient/MQTTDecoder.{h,m}",
"MQTTClient/MQTTClient/MQTTInMemoryPersistence.{h,m}",
"MQTTClient/MQTTClient/MQTTLog.{h,m}",
"MQTTClient/MQTTClient/MQTTStrict.{h,m}",
"MQTTClient/MQTTClient/MQTTClient.h",
"MQTTClient/MQTTClient/MQTTMessage.{h,m}",
"MQTTClient/MQTTClient/MQTTPersistence.h",
"MQTTClient/MQTTClient/MQTTSSLSecurityPolicy.{h,m}",
"MQTTClient/MQTTClient/MQTTSSLSecurityPolicyDecoder.{h,m}",
"MQTTClient/MQTTClient/MQTTSSLSecurityPolicyEncoder.{h,m}",
"MQTTClient/MQTTClient/MQTTSSLSecurityPolicyTransport.{h,m}",
"MQTTClient/MQTTClient/MQTTProperties.{h,m}",
"MQTTClient/MQTTClient/MQTTSession.{h,m}",
"MQTTClient/MQTTClient/MQTTSessionLegacy.{h,m}",
"MQTTClient/MQTTClient/MQTTSessionSynchron.{h,m}",
"MQTTClient/MQTTClient/MQTTTransport.{h,m}",
"MQTTClient/MQTTClient/GCDTimer.{h,m}"
minl.xcconfig = { 'GCC_PREPROCESSOR_DEFINITIONS' => 'LUMBERJACK=1' }
end
mqttc.subspec 'Manager' do |manager|
manager.source_files = "MQTTClient/MQTTClient/MQTTSessionManager.{h,m}",
"MQTTClient/MQTTClient/ReconnectTimer.{h,m}",
"MQTTClient/MQTTClient/ForegroundReconnection.{h,m}"
manager.dependency 'MQTTClient/Min'
end
mqttc.subspec 'ManagerL' do |managerl|
managerl.source_files = "MQTTClient/MQTTClient/MQTTSessionManager.{h,m}",
"MQTTClient/MQTTClient/ReconnectTimer.{h,m}",
"MQTTClient/MQTTClient/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/MQTTWebsocketTransport/*.{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/MQTTWebsocketTransport/*.{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