Skip to content

Commit 0006603

Browse files
Merge pull request #7 from QuickBlox/development
QuickBlox iOS SDK 2.20.0
2 parents f094fe8 + d6f05fd commit 0006603

File tree

130 files changed

+7466
-55
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

130 files changed

+7466
-55
lines changed

.swiftpm/xcode/package.xcworkspace/contents.xcworkspacedata

Lines changed: 7 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

LICENSE

Lines changed: 0 additions & 29 deletions
This file was deleted.

LICENSE.md

Lines changed: 121 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,121 @@
1+
2+
# QuickBlox SDK LICENSE
3+
4+
This is an agreement between You ("You") and Injoit Ltd. trading as QuickBlox, the developer of QuickBlox, incorporated in England and Wales under company number 07150135 and having our registered office at 7 Baxter Road, Churchdown, Gloucester, GL3 1FY, ("QuickBlox") regarding Your use of the QuickBlox SDK and any associated documentation or other materials made available by QuickBlox (collectively the "SDK"). This agreement applies to any updates or supplements for the SDK, unless other terms accompany those items. If so, those other terms apply.
5+
6+
By installing, accessing or otherwise using the SDK, You accept the terms of this agreement. If You do not agree to the terms of this agreement, do not install, access or use the SDK.
7+
8+
If You comply with this agreement, You have the rights below.
9+
10+
(1) USE OF THE SDK. Subject to Your compliance with this agreement, QuickBlox hereby authorizes You to use the SDK solely for the purpose of creating mobile applications designed to operate with the Services (referred to as "Authorized Applications"). You may not rent, lease or lend any of Your rights in the SDK or access to the Services. You may make a reasonable number of copies of the SDK for the purposes set forth herein, provided that You reproduce only complete copies, including without limitation all "read me" files, copyright notices, and other legal notices and terms that QuickBlox has included in the SDK.
11+
12+
(2) SCOPE OF LICENSE. The SDK is licensed, not sold. This agreement only gives You some rights to use the SDK. QuickBlox specifically does not grant any express or implied rights under its patents with respect to your Authorized Applications. In doing so, You must comply with any technical limitations in the SDK that only allow You to use it in certain ways. You may not: (a) reverse engineer, decompile, distribute or disassemble the SDK, except and only to the extent that applicable law expressly permits; or (b) make more copies of the SDK than specified in this agreement, except and only to the extent applicable law expressly permits; or (c) publish the SDK for others to copy; or (d) rent, lease or lend the SDK.
13+
14+
(3) USE OF THE SERVICES. Your use of the Services, and the use of the Services by anyone hosting or using your Authorized Application, is governed by the then-current Terms of Services (“TOS”) which can be found at: https://quickblox.com/terms-of-service.
15+
16+
(4) EXPORT RESTRICTIONS. THE SDK IS SUBJECT TO UNITED KINGDOM EXPORT LAWS AND REGULATIONS. YOU MUST COMPLY WITH ALL DOMESTIC AND INTERNATIONAL EXPORT LAWS AND REGULATIONS THAT APPLY TO THE SDK.
17+
18+
(5) FEEDBACK. By submitting feedback to QuickBlox, either via email at contact@quickblox.com or by any other means: You automatically grant to QuickBlox a perpetual, irrevocable, transferable, royalty-free license to use Your feedback for any and all purposes without any compensation to You.
19+
20+
(6) TERMINATION. QuickBlox reserves the right to discontinue offering the SDK or Services or to modify the SDK or Services at any time in its sole discretion. This Section and Sections 3, 4, 5, 8, 9, 10, 11, and 12 will survive termination of this agreement or any discontinuation of the offering of the SDK or Services along with any other provisions that would reasonably be deemed to survive such events.
21+
22+
(7) RESERVATION OF RIGHTS. You are not authorized to alter, modify, copy, edit, format, create derivative works of or otherwise use any materials, content or technology provided under this agreement except as explicitly provided in this agreement or approved in advance in writing by QuickBlox.
23+
24+
(8) MODIFICATIONS; NOTICES. If we change this contract, then we will give you notice before the change is in force. If you do not agree to these changes, then you must cancel and stop using the SDK and Services before the changes are in force. If you do not stop using the SDK or Services, then your use of the SDK or Services will continue under the changed contract. QuickBlox may give notices to You, at QuickBlox's option, by posting on any portion of quickblox.com or by electronic mail to any e-mail address provided by You to QuickBlox.
25+
26+
(9) ENTIRE AGREEMENT. This agreement, and any applicable TOS or contract for Services, are the entire agreement with respect to the SDK or Services.
27+
28+
(10) APPLICABLE LAW AND VENUE. This agreement and any disputes or claims arising out of or in connection with it or its subject matter or formation (including non-contractual disputes or claims) are governed by, and construed in accordance with, the law of England. The parties irrevocably agree that the courts of England have exclusive jurisdiction to settle any dispute or claim that arises out of or in connection with this Agreement or its subject matter or formation (including non-contractual disputes or claims).
29+
30+
(11) DISCLAIMER OF WARRANTY. The SDK is licensed "as-is." You bear the risk of using it. QuickBlox gives no express or implied warranties, guarantees or conditions. You may have additional consumer rights under Your local laws which this agreement cannot change. To the extent permitted under Your local laws, QuickBlox excludes the implied warranties of merchantability, fitness for a particular purpose and non-infringement. QuickBlox does not represent or warrant that the SDK or the Services will always be available, uninterrupted, secure, or error free.
31+
32+
(12) LIMITATION ON AND EXCLUSION OF REMEDIES AND DAMAGES. In no event will QuickBlox or its licensors be liable for the following, regardless of the theory of liability or whether arising out of the use or inability to use the QuickBlox SDK or otherwise, even if a party been advised of the possibility of such damages: (a) indirect, incidental, exemplary, special or consequential damages; (b) loss or corruption of data or interrupted or loss of business; or (c) loss of revenue, profits, goodwill or anticipated sales or savings. QuickBlox, its affiliates, officers, directors, employees, agents, suppliers and licensors collectively, shall have no liability to the Licensee whatsoever, whether based in warranty, contract, tort (including negligence), or otherwise. Nothing in this agreement limits or excludes any liability that cannot be limited or excluded under applicable law. Both parties are in understanding that some jurisdictions do not allow the exclusion of liability for consequential damages and as so the above limitation may not apply.
33+
34+
---
35+
36+
# Third-Party Licenses
37+
38+
## Alamofire Software Foundation (MIT License)
39+
40+
Copyright (c) 2011–2016 Alamofire Software Foundation ( http://alamofire.org/ )
41+
42+
Permission is hereby granted, free of charge, to any person obtaining a copy
43+
of this software and associated documentation files (the "Software"), to deal
44+
in the Software without restriction, including without limitation the rights
45+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
46+
copies of the Software, and to permit persons to whom the Software is
47+
furnished to do so, subject to the following conditions:
48+
49+
The above copyright notice and this permission notice shall be included in
50+
all copies or substantial portions of the Software.
51+
52+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
53+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
54+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
55+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
56+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
57+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
58+
THE SOFTWARE.
59+
60+
## CocoaLumberjack (BSD License)
61+
62+
CocoaLumberjack:
63+
64+
Copyright (c) 2010, Deusty, LLC
65+
All rights reserved.
66+
67+
Redistribution and use of this software in source and binary forms,
68+
with or without modification, are permitted provided that the following conditions are met:
69+
70+
* Redistributions of source code must retain the above
71+
copyright notice, this list of conditions and the
72+
following disclaimer.
73+
74+
* Neither the name of Deusty nor the names of its
75+
contributors may be used to endorse or promote products
76+
derived from this software without specific prior
77+
written permission of Deusty, LLC.
78+
79+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
80+
81+
## XMPPFramework (BSD License)
82+
83+
XMPPStream and all other source code: (BSD Style License)
84+
85+
Software License Agreement (BSD License)
86+
87+
Copyright (c) 2007, Deusty Designs, LLC
88+
All rights reserved.
89+
90+
Redistribution and use of this software in source and binary forms,
91+
with or without modification, are permitted provided that the following conditions are met:
92+
93+
* Redistributions of source code must retain the above
94+
copyright notice, this list of conditions and the
95+
following disclaimer.
96+
97+
* Neither the name of Deusty Designs nor the names of its
98+
contributors may be used to endorse or promote products
99+
derived from this software without specific prior
100+
written permission of Deusty Designs, LLC.
101+
102+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
103+
104+
## GCDAsyncSocket (Public Domain)
105+
106+
GCDAsyncSocket: (Public Domain)
107+
108+
This class is released under the public domain.
109+
Originally created by Robbie Hanson in Q3 2010.
110+
Updated and maintained by Deusty LLC and the Mac/iOS development community.
111+
112+
---
113+
114+
# NOTICE
115+
116+
This product includes software developed by:
117+
118+
- Alamofire Software Foundation (MIT License)
119+
- CocoaLumberjack (BSD License)
120+
- XMPPFramework (BSD License)
121+
- GCDAsyncSocket (Public Domain)

Package.swift

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,17 @@ let package = Package(
1111
products: [
1212
.library(
1313
name: "Quickblox",
14-
targets: ["Quickblox"]),
14+
targets: ["QuickbloxWrapper"]),
1515
],
1616
dependencies: [
1717
],
1818
targets: [
19+
.target(
20+
name: "QuickbloxWrapper",
21+
dependencies: ["Quickblox"],
22+
path: "Quickblox-Wrapper",
23+
resources: [.process("Resources/PrivacyInfo.xcprivacy")]
24+
),
1925
.binaryTarget(
2026
name: "Quickblox",
2127
path: "Quickblox.xcframework"
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3+
<plist version="1.0">
4+
<dict>
5+
<key>NSPrivacyTracking</key>
6+
<false/>
7+
<key>NSPrivacyTrackingDomains</key>
8+
<array/>
9+
<key>NSPrivacyCollectedDataTypes</key>
10+
<array/>
11+
</dict>
12+
</plist>

Quickblox-Wrapper/empty.m

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
//Copyright (c) 2019, QuickBlox
2+
//All rights reserved.

Quickblox-Wrapper/include/empty.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
//Copyright (c) 2019, QuickBlox
2+
//All rights reserved.

Quickblox.xcframework/Info.plist

Lines changed: 23 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,25 @@
55
<key>AvailableLibraries</key>
66
<array>
77
<dict>
8+
<key>BinaryPath</key>
9+
<string>Quickblox.framework/Quickblox</string>
10+
<key>LibraryIdentifier</key>
11+
<string>ios-arm64_x86_64-simulator</string>
12+
<key>LibraryPath</key>
13+
<string>Quickblox.framework</string>
14+
<key>SupportedArchitectures</key>
15+
<array>
16+
<string>arm64</string>
17+
<string>x86_64</string>
18+
</array>
19+
<key>SupportedPlatform</key>
20+
<string>ios</string>
21+
<key>SupportedPlatformVariant</key>
22+
<string>simulator</string>
23+
</dict>
24+
<dict>
25+
<key>BinaryPath</key>
26+
<string>Quickblox.framework/Quickblox</string>
827
<key>LibraryIdentifier</key>
928
<string>ios-arm64</string>
1029
<key>LibraryPath</key>
@@ -17,8 +36,10 @@
1736
<string>ios</string>
1837
</dict>
1938
<dict>
39+
<key>BinaryPath</key>
40+
<string>Quickblox.framework/Versions/A/Quickblox</string>
2041
<key>LibraryIdentifier</key>
21-
<string>ios-arm64_x86_64-simulator</string>
42+
<string>ios-arm64_x86_64-maccatalyst</string>
2243
<key>LibraryPath</key>
2344
<string>Quickblox.framework</string>
2445
<key>SupportedArchitectures</key>
@@ -29,7 +50,7 @@
2950
<key>SupportedPlatform</key>
3051
<string>ios</string>
3152
<key>SupportedPlatformVariant</key>
32-
<string>simulator</string>
53+
<string>maccatalyst</string>
3354
</dict>
3455
</array>
3556
<key>CFBundlePackageType</key>
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
//
2+
// AI.h
3+
//
4+
// Created by QuickBlox team
5+
// Copyright (c) 2017 QuickBlox. All rights reserved.
6+
//
7+
8+
#import <Foundation/Foundation.h>
9+
10+
NS_ASSUME_NONNULL_BEGIN
11+
12+
@protocol QBAIAnswerAssistHistoryMessageProtocol;
13+
@protocol QBAIAnswerAssistResultProtocol;
14+
@protocol QBAITranslateResultProtocol;
15+
16+
@interface AI : NSObject
17+
/**
18+
Create answer assist request
19+
20+
@param answerAssist answer assist instance
21+
22+
@return An answer from AI'.
23+
*/
24+
- (void)answerAssistWithSmartChatAssistantId:(NSString *)smartChatAssistantId
25+
messageToAssist:(NSString *)messageToAssist
26+
history:(NSArray<id<QBAIAnswerAssistHistoryMessageProtocol>> *)history
27+
completion:(void (^) (id<QBAIAnswerAssistResultProtocol>result, NSError * _Nullable error))completion;
28+
29+
/**
30+
Create translate request
31+
32+
@param translate translate message instance
33+
34+
@return An answer from AI'.
35+
*/
36+
- (void)translateWithSmartChatAssistantId:(NSString *)smartChatAssistantId
37+
textToTranslate:(NSString *)textToTranslate
38+
languageCode:(NSString *)languageCode
39+
completion:(void (^) (id<QBAITranslateResultProtocol>result, NSError * _Nullable error))completion;
40+
41+
@end
42+
43+
NS_ASSUME_NONNULL_END
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
//
2+
// QBAIAnswerAssistHistoryMessage.h
3+
//
4+
// Created by QuickBlox team
5+
// Copyright (c) 2017 QuickBlox. All rights reserved.
6+
//
7+
8+
#import <QuickBlox/QBAIAnswerAssistHistoryMessageProtocol.h>
9+
#import <QuickBlox/QBCEntity.h>
10+
#import <QuickBlox/QBAIRoleType.h>
11+
12+
NS_ASSUME_NONNULL_BEGIN
13+
14+
@protocol QBAIAnswerAssistHistoryMessageProtocol;
15+
16+
/**
17+
QBAIAnswerAssistHistoryMessage class interface.
18+
This class represents QuickBlox Answer Assist History.
19+
*/
20+
@interface QBAIAnswerAssistHistoryMessage : QBCEntity <QBAIAnswerAssistHistoryMessageProtocol, NSCoding, NSCopying>
21+
22+
/**
23+
The role of the message sender. Can be a user or assistant.
24+
*/
25+
@property (readonly) QBAIRoleType role;
26+
27+
/**
28+
Message text in conversation history.
29+
*/
30+
@property (readonly) NSString *message;
31+
32+
// Unavailable initializers
33+
- (id)init NS_UNAVAILABLE;
34+
+ (id)new NS_UNAVAILABLE;
35+
36+
- (instancetype)initWithRole:(QBAIRoleType)role
37+
message:(NSString *)message;
38+
39+
@end
40+
41+
NS_ASSUME_NONNULL_END

0 commit comments

Comments
 (0)