Skip to content

Commit

Permalink
Preparing release 3.4.0
Browse files Browse the repository at this point in the history
  • Loading branch information
queue-it committed Mar 30, 2023
1 parent 0e3ee4b commit 15654f0
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 7 deletions.
2 changes: 1 addition & 1 deletion QueueITLib/QueueConsts.h
Expand Up @@ -3,6 +3,6 @@

#define QueueCloseUrl @"queueit://close"
#define QueueRestartSessionUrl @"queueit://restartSession"
#define SDKVersion @"iOS-3.3.2";
#define SDKVersion @"iOS-3.4.0";

#endif
10 changes: 6 additions & 4 deletions QueueITLib/QueueITWaitingRoomProvider.m
Expand Up @@ -66,7 +66,7 @@ -(BOOL)tryEnqueue:(NSString*)enqueueToken
}

[IOSUtils getUserAgent:^(NSString * userAgent) {
[self tryEnqueueWithUserAgent:userAgent enqueueToken:enqueueToken enqueueKey:enqueueKey];
[self tryEnqueueWithUserAgent:userAgent enqueueToken:enqueueToken enqueueKey:enqueueKey error:error];
}];

return YES;
Expand All @@ -75,6 +75,7 @@ -(BOOL)tryEnqueue:(NSString*)enqueueToken
-(void)tryEnqueueWithUserAgent:(NSString*)secretAgent
enqueueToken:(NSString*)enqueueToken
enqueueKey:(NSString*)enqueueKey
error:(NSError**)error
{
NSString* userId = [IOSUtils getUserId];
NSString* userAgent = [NSString stringWithFormat:@"%@;%@", secretAgent, [IOSUtils getLibraryVersion]];
Expand All @@ -93,7 +94,7 @@ -(void)tryEnqueueWithUserAgent:(NSString*)secretAgent
success:^(QueueStatus *queueStatus)
{
if (queueStatus == NULL) {
[self enqueueRetryMonitor:enqueueToken enqueueKey:enqueueKey];
[self enqueueRetryMonitor:enqueueToken enqueueKey:enqueueKey error:error];
return;
}

Expand All @@ -112,7 +113,7 @@ -(void)tryEnqueueWithUserAgent:(NSString*)secretAgent
}
else
{
[self enqueueRetryMonitor:enqueueToken enqueueKey:enqueueKey];
[self enqueueRetryMonitor:enqueueToken enqueueKey:enqueueKey error:&error];
}
}];
}
Expand All @@ -138,10 +139,11 @@ -(void)handleAppEnqueueResponse:(NSString*) queueId

-(void)enqueueRetryMonitor:(NSString*)enqueueToken
enqueueKey:(NSString*)enqueueKey
error:(NSError**)error
{
if (self.deltaSec < MAX_RETRY_SEC)
{
[self tryEnqueue:enqueueToken enqueueKey:enqueueKey error:nil];
[self tryEnqueue:enqueueToken enqueueKey:enqueueKey error:error];

[NSThread sleepForTimeInterval:self.deltaSec];
self.deltaSec = self.deltaSec * 2;
Expand Down
4 changes: 2 additions & 2 deletions QueueITLibrary.podspec
@@ -1,12 +1,12 @@
Pod::Spec.new do |s|
s.name = "QueueITLibrary"
s.version = "3.3.2"
s.version = "3.4.0"
s.summary = "Library for integrating Queue-it into an iOS app using web uI"
s.homepage = "https://github.com/queueit/ios-webui-sdk"
s.license = 'MIT'
s.authors = { 'Queue-It' => 'https://queue-it.com' }
s.platform = :ios, '9.3'
s.source = { :git => 'https://github.com/queueit/ios-webui-sdk.git', :tag => '3.3.2' }
s.source = { :git => 'https://github.com/queueit/ios-webui-sdk.git', :tag => '3.4.0' }
s.requires_arc = true
s.source_files = "QueueITLib/*.{h,m}"
end

0 comments on commit 15654f0

Please sign in to comment.