Skip to content

Commit 3d26fca

Browse files
author
queue-it
committed
Preparing release 3.5.1
1 parent 481d65f commit 3d26fca

4 files changed

Lines changed: 24 additions & 20 deletions

File tree

QueueITLib/QueueConsts.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@
33

44
#define QueueCloseUrl @"queueit://close"
55
#define QueueRestartSessionUrl @"queueit://restartSession"
6-
#define SDKVersion @"iOS-3.5.0";
6+
#define SDKVersion @"iOS-3.5.1";
77

88
#endif

QueueITLib/QueueITWKViewController.m

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,9 +134,11 @@ - (void)webView:(WKWebView*)webView decidePolicyForNavigationAction:(nonnull WKN
134134
NSString* targetUrlString = self.eventTargetUrl;
135135
if (urlString != nil) {
136136
NSURL* url = [NSURL URLWithString:urlString];
137+
NSURL* queueUrl = [NSURL URLWithString:self.queueUrl];
137138
NSURL* targetUrl = [NSURL URLWithString:targetUrlString];
139+
138140
if(urlString != nil && ![urlString isEqualToString:@"about:blank"]) {
139-
BOOL isQueueUrl = [self.queueUrl containsString:url.host];
141+
BOOL isQueueUrl = queueUrl != nil && queueUrl.host != nil && [queueUrl.host isEqualToString:url.host];
140142
BOOL isNotFrame = [[[request URL] absoluteString] isEqualToString:[[request mainDocumentURL] absoluteString]];
141143

142144
if([self handleSpecialUrls:url decisionHandler:decisionHandler]){

QueueITLibrary.podspec

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
Pod::Spec.new do |s|
22
s.name = "QueueITLibrary"
3-
s.version = "3.5.0"
3+
s.version = "3.5.1"
44
s.summary = "Library for integrating Queue-it into an iOS app using web uI"
55
s.homepage = "https://github.com/queueit/ios-webui-sdk"
66
s.license = 'MIT'
77
s.authors = { 'Queue-It' => 'https://queue-it.com' }
88
s.platform = :ios, '9.3'
9-
s.source = { :git => 'https://github.com/queueit/ios-webui-sdk.git', :tag => '3.5.0' }
9+
s.source = { :git => 'https://github.com/queueit/ios-webui-sdk.git', :tag => '3.5.1' }
1010
s.requires_arc = true
1111
s.source_files = "QueueITLib/*.{h,m}"
1212
s.resource_bundles = {'QueueITLibrary' => ['QueueITLib/PrivacyInfo.xcprivacy']}

README.md

Lines changed: 18 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,27 @@ From version 2.13.0 the QueueITEngine no longer supports the UIWebView and will
1919

2020
Version 3.0.0 introduces breaking chances as the interface to `QueueITEngine` has been modified so the `run` function is using the NSError pattern to return errors instead of throwing a NSException.
2121

22+
## Swift Package Manager
23+
24+
1. In Xcode, select File > Add Packages
25+
2. For the URL, paste in `https://github.com/queueit/ios-webui-sdk.git`
26+
3. Configure how you'd like to track changes, and add to your project
27+
4. Finally, click Add Package
28+
29+
### Possible error generated when adding Package Dependency
30+
* Error generated during build "product 'QueueIt' required by package 'mylibrary' target 'MyLibrary' not found"
31+
* resolved by updating the dependency product name to "QueueItLibrary" for package "ios-web-sdk"
32+
33+
#### Example:
34+
![Screenshot](dev_screenshot.png)
35+
2236
### XCFramework
2337

2438
You can manually add the XCFramework that's published in [releases](https://github.com/queueit/ios-webui-sdk/releases).
2539

26-
### CocoaPods
40+
### CocoaPods [Deprecated]
41+
42+
> **Note**: CocoaPods distribution is deprecated and readonly. Last released SDK version to CocoaPods is `3.4.4` and no new updates will be published in the future. We recommend using [Swift Package Manager](#swift-package-manager) or [XCFramework](#xcframework) instead.
2743
2844
[CocoaPods](http://cocoapods.org) is a dependency manager for Cocoa projects. You can install it with the following command:
2945

@@ -39,7 +55,7 @@ platform :ios, '9.3'
3955
use_frameworks!
4056

4157
target '<Your Target Name>' do
42-
pod 'QueueITLibrary', '~> 3.5.0'
58+
pod 'QueueITLibrary', '~> 3.4.4'
4359
end
4460
```
4561

@@ -49,20 +65,6 @@ Then, run the following command:
4965
pod install
5066
```
5167

52-
## Swift Package Manager
53-
54-
1. In Xcode, select File > Add Packages
55-
2. For the URL, paste in `https://github.com/queueit/ios-webui-sdk.git`
56-
3. Configure how you'd like to track changes, and add to your project
57-
4. Finally, click Add Package
58-
59-
### Possible error generated when adding Package Dependency
60-
* Error generated during build "product 'QueueIt' required by package 'mylibrary' target 'MyLibrary' not found"
61-
* resolved by updating the dependency product name to "QueueItLibrary" for package "ios-web-sdk"
62-
63-
#### Example:
64-
![Screenshot](dev_screenshot.png)
65-
6668
## Usage
6769

6870
We have a repository with a demo app [here](https://github.com/queueit/ios-demo-app "iOS demo app"), but you can get the basic idea of how to use the library in the following example.

0 commit comments

Comments
 (0)