Skip to content

Commit 2c4aa82

Browse files
author
Olha Danylova
committed
Merge branch 'master'
Conflicts: Pods/Backendless.podspec SDK/backendlessAPI/backendlessAPI.xcodeproj/project.pbxproj SDK/ios/backendless/backendless.a SDK/lib/backendless/backendless.a SDK/osx/backendless/backendless.a SDK/tvos/backendless/backendless.a SDK/watchos/backendless/backendless.a
2 parents 18c1c8b + bead8bf commit 2c4aa82

File tree

4 files changed

+11811
-11776
lines changed

4 files changed

+11811
-11776
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
# RELEASE HISTORY
22

3+
## 5.1.8 October 23, 2018
4+
* DeviceRegistrationAdapter fixed to handle os and osVersion correctly
5+
36
## 5.1.7 October 10, 2018
47
* Socket.IO updated to v 13.3.1
58
* isValidUserToken method fixed to hanle fault correctly when there is no internet connection

SDK/Podfile.lock

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
PODS:
2+
- Socket.IO-Client-Swift (13.3.1):
3+
- Starscream (~> 3.0.2)
4+
- Starscream (3.0.6)
5+
6+
DEPENDENCIES:
7+
- Socket.IO-Client-Swift
8+
9+
SPEC REPOS:
10+
https://github.com/cocoapods/specs.git:
11+
- Socket.IO-Client-Swift
12+
- Starscream
13+
14+
SPEC CHECKSUMS:
15+
Socket.IO-Client-Swift: 79f8f85fa44881838175a20f9bd2c32bef2c9d37
16+
Starscream: ef3ece99d765eeccb67de105bfa143f929026cf5
17+
18+
PODFILE CHECKSUM: 675cc991d5f2f8cb6bcd0ce2d67444ed1b8f2a74
19+
20+
COCOAPODS: 1.6.0.beta.1

SDK/backendlessAPI/Classes/Persistence/PersistenceAdapter/DeviceRegistrationAdapter.m

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,15 @@ -(DeviceRegistration *)adaptToDeviceRegistration:(NamedObject *)body {
7070

7171
for (NSString *property in [bodyProperties allKeys]) {
7272
if (![property isEqualToString:@"channelName"]) {
73-
[deviceRegistration setValue:[[bodyProperties valueForKey:property] defaultAdapt] forKey:property];
73+
if ([property isEqualToString:@"operatingSystemName"]) {
74+
[deviceRegistration setValue:[[bodyProperties valueForKey:property] defaultAdapt] forKey:@"os"];
75+
}
76+
else if ([property isEqualToString:@"operatingSystemVersion"]) {
77+
[deviceRegistration setValue:[[bodyProperties valueForKey:property] defaultAdapt] forKey:@"osVersion"];
78+
}
79+
else {
80+
[deviceRegistration setValue:[[bodyProperties valueForKey:property] defaultAdapt] forKey:property];
81+
}
7482
}
7583
}
7684
NSString *channelName = [[bodyProperties valueForKey:@"channelName"] defaultAdapt];

0 commit comments

Comments
 (0)