Skip to content
This repository was archived by the owner on Jul 21, 2020. It is now read-only.

Commit 714d5a7

Browse files
committed
Update user agent
1 parent 2047b58 commit 714d5a7

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

BeamAPI.podspec

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
Pod::Spec.new do |s|
22
s.name = "BeamAPI"
3-
s.version = "1.5.6"
3+
s.version = "1.5.7"
44
s.summary = "An interface to communicate with Beam's backend."
55
s.homepage = "https://github.com/WatchBeam/beam-client-swift"
66
s.license = "MIT"
77
s.author = { "Jack Cook" => "[email protected]" }
88

99
s.requires_arc = true
1010
s.ios.deployment_target = "8.2"
11-
s.source = { :git => "https://github.com/WatchBeam/beam-client-swift.git", :tag => "1.5.6" }
11+
s.source = { :git => "https://github.com/WatchBeam/beam-client-swift.git", :tag => "1.5.7" }
1212
s.source_files = "Pod/Classes/**/*"
1313

1414
s.dependency "Starscream", "~> 2.0"

Example/Podfile.lock

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
PODS:
2-
- BeamAPI (1.5.5):
2+
- BeamAPI (1.5.6):
33
- Starscream (~> 2.0)
44
- SwiftyJSON (~> 3.1)
55
- Starscream (2.0.4)
@@ -13,7 +13,7 @@ EXTERNAL SOURCES:
1313
:path: "../"
1414

1515
SPEC CHECKSUMS:
16-
BeamAPI: 0f513d2be2909e46c2a18d4be04e52fea043ea8e
16+
BeamAPI: 388322f99d0a3c998c1eca606b446eda8ccff9ed
1717
Starscream: df5974ee928b157c8eda8af8de7c620276b7dfcc
1818
SwiftyJSON: c2842d878f95482ffceec5709abc3d05680c0220
1919

Pod/Classes/Clients/ConstellationClient.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ public class ConstellationClient: WebSocketDelegate {
3939

4040
socket = WebSocket(url: URL(string: "wss://constellation.beam.pro")!)
4141
socket?.delegate = self
42-
socket?.headers["User-Agent"] = "BeamApp/\(BeamRequest.version) (iOS; \(BeamRequest.deviceName()))"
42+
socket?.headers["User-Agent"] = "IOSApp/\(BeamRequest.version) (iOS; \(BeamRequest.deviceName()))"
4343
socket?.connect()
4444
}
4545

Pod/Classes/Utilities/BeamRequest.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ public class BeamRequest {
113113
}
114114
}
115115

116-
request.addValue("BeamApp/\(version) (iOS; \(deviceName()))", forHTTPHeaderField: "User-Agent")
116+
request.addValue("IOSApp/\(version) (iOS; \(deviceName()))", forHTTPHeaderField: "User-Agent")
117117

118118
for (header, val) in headers {
119119
request.addValue(val, forHTTPHeaderField: header)

0 commit comments

Comments
 (0)