From f8465ffb12a9a08e6a72548c10e3da52481a80a7 Mon Sep 17 00:00:00 2001 From: jguz-pubnub Date: Mon, 25 Nov 2024 12:15:23 +0100 Subject: [PATCH 01/13] wip --- .github/workflows/run-tests.yml | 2 +- LICENSE => LICENSE/LICENSE | 0 ...ause BSD license with copyright notice.txt | 29 +++ .../Apache Harmony copyright notice.txt | 14 ++ LICENSE/ThirdParty/Apache license 2.0.txt | 202 ++++++++++++++++++ LICENSE/ThirdParty/Copyright notice.txt | 16 ++ LICENSE/ThirdParty/MIT license.txt | 21 ++ LICENSE/ThirdParty/README.md | 29 +++ LICENSE/ThirdParty/Unicode license.txt | 61 ++++++ Sources/Chat.swift | 2 +- Sources/ChatImpl.swift | 10 +- Sources/MessageDraft/MessageDraft.swift | 13 ++ .../MessageDraftChangeListener.swift | 2 +- Sources/MessageDraft/MessageDraftImpl.swift | 4 + 14 files changed, 396 insertions(+), 9 deletions(-) rename LICENSE => LICENSE/LICENSE (100%) create mode 100644 LICENSE/ThirdParty/3-clause BSD license with copyright notice.txt create mode 100644 LICENSE/ThirdParty/Apache Harmony copyright notice.txt create mode 100644 LICENSE/ThirdParty/Apache license 2.0.txt create mode 100644 LICENSE/ThirdParty/Copyright notice.txt create mode 100644 LICENSE/ThirdParty/MIT license.txt create mode 100644 LICENSE/ThirdParty/README.md create mode 100644 LICENSE/ThirdParty/Unicode license.txt diff --git a/.github/workflows/run-tests.yml b/.github/workflows/run-tests.yml index 3349167..031c97a 100644 --- a/.github/workflows/run-tests.yml +++ b/.github/workflows/run-tests.yml @@ -30,7 +30,7 @@ jobs: strategy: matrix: environment: [iOS] - timeout-minutes: 17 + timeout-minutes: 18 steps: - name: Checkout repository uses: actions/checkout@v4 diff --git a/LICENSE b/LICENSE/LICENSE similarity index 100% rename from LICENSE rename to LICENSE/LICENSE diff --git a/LICENSE/ThirdParty/3-clause BSD license with copyright notice.txt b/LICENSE/ThirdParty/3-clause BSD license with copyright notice.txt new file mode 100644 index 0000000..986fbe1 --- /dev/null +++ b/LICENSE/ThirdParty/3-clause BSD license with copyright notice.txt @@ -0,0 +1,29 @@ +# Copyright (C) 2012-2016 Free Software Foundation, Inc. + +# Redistribution and use in source and binary forms, with or without +# modification, are permitted provided that the following conditions are +# met: + +# (1) Redistributions of source code must retain the above copyright +# notice, this list of conditions and the following disclaimer. + +# (2) Redistributions in binary form must reproduce the above copyright +# notice, this list of conditions and the following disclaimer in +# the documentation and/or other materials provided with the +# distribution. + +# (3) The name of the author may not be used to +# endorse or promote products derived from this software without +# specific prior written permission. + +# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``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 AUTHOR 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. \ No newline at end of file diff --git a/LICENSE/ThirdParty/Apache Harmony copyright notice.txt b/LICENSE/ThirdParty/Apache Harmony copyright notice.txt new file mode 100644 index 0000000..740e19a --- /dev/null +++ b/LICENSE/ThirdParty/Apache Harmony copyright notice.txt @@ -0,0 +1,14 @@ +Apache Harmony +Copyright 2006, 2010 The Apache Software Foundation. + +This product includes software developed at +The Apache Software Foundation (http://www.apache.org/). + +Portions of Apache Harmony were originally developed by +Intel Corporation and are licensed to the Apache Software +Foundation under the "Software Grant and Corporate Contribution +License Agreement" and for which the following copyright notices +apply + (C) Copyright 2005 Intel Corporation + (C) Copyright 2005-2006 Intel Corporation + (C) Copyright 2006 Intel Corporation \ No newline at end of file diff --git a/LICENSE/ThirdParty/Apache license 2.0.txt b/LICENSE/ThirdParty/Apache license 2.0.txt new file mode 100644 index 0000000..7a4a3ea --- /dev/null +++ b/LICENSE/ThirdParty/Apache license 2.0.txt @@ -0,0 +1,202 @@ + + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright [yyyy] [name of copyright owner] + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. \ No newline at end of file diff --git a/LICENSE/ThirdParty/Copyright notice.txt b/LICENSE/ThirdParty/Copyright notice.txt new file mode 100644 index 0000000..69d244d --- /dev/null +++ b/LICENSE/ThirdParty/Copyright notice.txt @@ -0,0 +1,16 @@ +Multi-producer/multi-consumer bounded queue. +Copyright (c) 2010-2011, Dmitry Vyukov. All rights reserved. +Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: + 1. Redistributions of source code must retain the above copyright notice, this list of + conditions and the following disclaimer. + 2. Redistributions in binary form must reproduce the above copyright notice, this list + of conditions and the following disclaimer in the documentation and/or other materials + provided with the distribution. +THIS SOFTWARE IS PROVIDED BY DMITRY VYUKOV "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 +DMITRY VYUKOV 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. +The views and conclusions contained in the software and documentation are those of the authors and should not be interpreted +as representing official policies, either expressed or implied, of Dmitry Vyukov. \ No newline at end of file diff --git a/LICENSE/ThirdParty/MIT license.txt b/LICENSE/ThirdParty/MIT license.txt new file mode 100644 index 0000000..614c2d7 --- /dev/null +++ b/LICENSE/ThirdParty/MIT license.txt @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2019 Microsoft Corporation, Daan Leijen + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. \ No newline at end of file diff --git a/LICENSE/ThirdParty/README.md b/LICENSE/ThirdParty/README.md new file mode 100644 index 0000000..2d6812e --- /dev/null +++ b/LICENSE/ThirdParty/README.md @@ -0,0 +1,29 @@ +This directory contains license information for third-party code, data, or derived works that are included in the binaries produced by this project. + +The Kotlin/Native compiler produces binaries that may incorporate third-party components, which are subject to their respective licenses. By using these binaries, you agree to comply with the terms and conditions of the included third-party licenses. + +Each license file in this directory corresponds to a specific dependency or license type and outlines the rights and obligations associated with its use. + + +### [Kotlin](https://kotlinlang.org/), [Apache Harmony](https://harmony.apache.org/), [GWT](https://www.gwtproject.org/), [Guava](https://guava.dev/) + +[Apache license 2.0](https://github.com/pubnub/swift-chat-sdk/blob/tst/LICENSE/ThirdParty/Apache license 2.0.txt) +[Apache Harmony](https://github.com/pubnub/swift-chat-sdk/blob/tst/LICENSE/ThirdParty/Apache Harmony copyright notice.txt) + +### [libbacktrace](https://github.com/ianlancetaylor/libbacktrace) + + +[3-clause BSD license with copyright notice](https://github.com/pubnub/swift-chat-sdk/blob/tst/LICENSE/ThirdParty/3-clause BSD license with copyright notice.txt) + +### [mimalloc](https://github.com/microsoft/mimalloc) + +[MIT license](https://github.com/pubnub/swift-chat-sdk/blob/tst/LICENSE/ThirdParty/MIT license.txt) + + +### [Unicode character database](https://www.unicode.org/) + +[Unicode license](https://github.com/pubnub/swift-chat-sdk/blob/tst/LICENSE/ThirdParty/Unicode license.txt) + +### [Multi-producer/multi-consumer bounded queue] + +[Copyright notice](https://github.com/pubnub/swift-chat-sdk/blob/tst/LICENSE/ThirdParty/Copyright notice.txt) diff --git a/LICENSE/ThirdParty/Unicode license.txt b/LICENSE/ThirdParty/Unicode license.txt new file mode 100644 index 0000000..f985107 --- /dev/null +++ b/LICENSE/ThirdParty/Unicode license.txt @@ -0,0 +1,61 @@ +Portions, Copyright © 1991-2005 Unicode, Inc. The following applies to Unicode. + +COPYRIGHT AND PERMISSION NOTICE + +Copyright © 1991-2005 Unicode, Inc. All rights reserved. Distributed under +the Terms of Use in http://www.unicode.org/copyright.html. Permission is +hereby granted, free of charge, to any person obtaining a copy of the +Unicode data files and any associated documentation (the "Data Files") +or Unicode software and any associated documentation (the "Software") +to deal in the Data Files or Software without restriction, including without +limitation the rights to use, copy, modify, merge, publish, distribute, +and/or sell copies of the Data Files or Software, and to permit persons +to whom the Data Files or Software are furnished to do so, provided that +(a) the above copyright notice(s) and this permission notice appear with +all copies of the Data Files or Software, (b) both the above copyright +notice(s) and this permission notice appear in associated documentation, +and (c) there is clear notice in each modified Data File or in the Software +as well as in the documentation associated with the Data File(s) or Software +that the data or software has been modified. + +THE DATA FILES AND SOFTWARE ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY +KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT +OF THIRD PARTY RIGHTS. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR HOLDERS +INCLUDED IN THIS NOTICE BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL INDIRECT +OR CONSEQUENTIAL DAMAGES, OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS +OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR +OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR +PERFORMANCE OF THE DATA FILES OR SOFTWARE. + +Except as contained in this notice, the name of a copyright holder shall +not be used in advertising or otherwise to promote the sale, use or other +dealings in these Data Files or Software without prior written +authorization of the copyright holder. + +2. Additional terms from the Database: + +Copyright © 1995-1999 Unicode, Inc. All Rights reserved. + +Disclaimer + +The Unicode Character Database is provided as is by Unicode, Inc. +No claims are made as to fitness for any particular purpose. No warranties +of any kind are expressed or implied. The recipient agrees to determine +applicability of information provided. If this file has been purchased +on magnetic or optical media from Unicode, Inc., the sole remedy for any claim +will be exchange of defective media within 90 days of receipt. This disclaimer +is applicable for all other data files accompanying the Unicode Character Database, +some of which have been compiled by the Unicode Consortium, and some of which +have been supplied by other sources. + +Limitations on Rights to Redistribute This Data + +Recipient is granted the right to make copies in any form for internal +distribution and to freely use the information supplied in the creation of +products supporting the UnicodeTM Standard. The files in +the Unicode Character Database can be redistributed to third parties or other +organizations (whether for profit or not) as long as this notice and the disclaimer +notice are retained. Information can be extracted from these files and used +in documentation or programs, as long as there is an accompanying notice +indicating the source. \ No newline at end of file diff --git a/Sources/Chat.swift b/Sources/Chat.swift index 8a31dec..0c40278 100644 --- a/Sources/Chat.swift +++ b/Sources/Chat.swift @@ -435,7 +435,7 @@ public protocol Chat: AnyObject { completion: ((Swift.Result<(memberships: [ChatMembershipType], page: PubNubHashedPage?), Error>) -> Void)? ) - /// Retrieves all channels referenced in the `channel.sendText(...)` that match the provided 3-letter string from your app's keyset. + /// Retrieves all channels that match the provided 3-letter string from your app's keyset. /// /// - Parameters: /// - text: At least a 3-letter string typed in after `#` with the channel name you want to reference diff --git a/Sources/ChatImpl.swift b/Sources/ChatImpl.swift index fbe56b1..a770f73 100644 --- a/Sources/ChatImpl.swift +++ b/Sources/ChatImpl.swift @@ -725,14 +725,12 @@ extension ChatImpl: Chat { switch result.result { case let .success(response): let eventImplArray = response.events.compactMap { - $0 as? PubNubChat.Event - }.compactMap { (event: PubNubChat.Event) -> EventWrapper? in EventWrapper(event: EventImpl( chat: result.caller, - timetoken: Timetoken(event.timetoken_), - payload: EventContent.from(rawValue: event.payload), - channelId: event.channelId, - userId: event.userId + timetoken: Timetoken($0.timetoken_), + payload: EventContent.from(rawValue: $0.payload), + channelId: $0.channelId, + userId: $0.userId )) } completion?(.success(( diff --git a/Sources/MessageDraft/MessageDraft.swift b/Sources/MessageDraft/MessageDraft.swift index e514d95..8686722 100644 --- a/Sources/MessageDraft/MessageDraft.swift +++ b/Sources/MessageDraft/MessageDraft.swift @@ -23,6 +23,8 @@ public protocol MessageDraft { var channel: C { get } /// Whether modifying the message text triggers the typing indicator on ``channel`` var isTypingIndicatorTriggered: Bool { get } + /// The scope for searching for suggested users + var userSuggestionSource: UserSuggestionSource { get } /// The limit on the number of users returned when searching for users to mention var userLimit: Int { get } /// The limit on the number of channels returned when searching for channels to reference @@ -126,6 +128,17 @@ public enum UserSuggestionSource { return .channel } } + + static func from(source: PubNubChat.MessageDraftUserSuggestionSource) -> UserSuggestionSource { + switch source { + case .global: + return .global + case .channel: + return .channel + default: + return .global + } + } } /// Part of a ``Message`` or ``MessageDraft`` content. diff --git a/Sources/MessageDraft/MessageDraftChangeListener.swift b/Sources/MessageDraft/MessageDraftChangeListener.swift index abf75ca..0f5a2ef 100644 --- a/Sources/MessageDraft/MessageDraftChangeListener.swift +++ b/Sources/MessageDraft/MessageDraftChangeListener.swift @@ -58,7 +58,7 @@ class SuggestedMentionsFuture: FutureObject { init(future: PubNubChat.PNFuture) { self.future = future } - + func async(completion: @escaping (Swift.Result<[SuggestedMention], Error>) -> Void) { future.async(caller: self, callback: { (result: FutureResult) in switch result.result { diff --git a/Sources/MessageDraft/MessageDraftImpl.swift b/Sources/MessageDraft/MessageDraftImpl.swift index a380003..e5e19bb 100644 --- a/Sources/MessageDraft/MessageDraftImpl.swift +++ b/Sources/MessageDraft/MessageDraftImpl.swift @@ -41,6 +41,10 @@ extension MessageDraftImpl: MessageDraft { messageDraft.isTypingIndicatorTriggered } + public var userSuggestionSource: UserSuggestionSource { + UserSuggestionSource.from(source: messageDraft.userSuggestionSource) + } + public var userLimit: Int { Int(messageDraft.userLimit) } From 6c2611fe119b8f18c22bf0bb16dd9ff2aed358b5 Mon Sep 17 00:00:00 2001 From: jguz-pubnub Date: Mon, 25 Nov 2024 12:18:07 +0100 Subject: [PATCH 02/13] url encoding --- LICENSE/ThirdParty/README.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/LICENSE/ThirdParty/README.md b/LICENSE/ThirdParty/README.md index 2d6812e..ff0745f 100644 --- a/LICENSE/ThirdParty/README.md +++ b/LICENSE/ThirdParty/README.md @@ -7,23 +7,23 @@ Each license file in this directory corresponds to a specific dependency or lice ### [Kotlin](https://kotlinlang.org/), [Apache Harmony](https://harmony.apache.org/), [GWT](https://www.gwtproject.org/), [Guava](https://guava.dev/) -[Apache license 2.0](https://github.com/pubnub/swift-chat-sdk/blob/tst/LICENSE/ThirdParty/Apache license 2.0.txt) -[Apache Harmony](https://github.com/pubnub/swift-chat-sdk/blob/tst/LICENSE/ThirdParty/Apache Harmony copyright notice.txt) +[Apache license 2.0](https://github.com/pubnub/swift-chat-sdk/blob/tst/LICENSE/ThirdParty/Apache%20license%202.0.txt) +[Apache Harmony](https://github.com/pubnub/swift-chat-sdk/blob/tst/LICENSE/ThirdParty/Apache Harmony%20copyright%20notice.txt) ### [libbacktrace](https://github.com/ianlancetaylor/libbacktrace) -[3-clause BSD license with copyright notice](https://github.com/pubnub/swift-chat-sdk/blob/tst/LICENSE/ThirdParty/3-clause BSD license with copyright notice.txt) +[3-clause BSD license with copyright notice](https://github.com/pubnub/swift-chat-sdk/blob/tst/LICENSE/ThirdParty/3-clause BSD%20license%20with%20copyright%20notice.txt) ### [mimalloc](https://github.com/microsoft/mimalloc) -[MIT license](https://github.com/pubnub/swift-chat-sdk/blob/tst/LICENSE/ThirdParty/MIT license.txt) +[MIT license](https://github.com/pubnub/swift-chat-sdk/blob/tst/LICENSE/ThirdParty/MIT%20license.txt) ### [Unicode character database](https://www.unicode.org/) -[Unicode license](https://github.com/pubnub/swift-chat-sdk/blob/tst/LICENSE/ThirdParty/Unicode license.txt) +[Unicode license](https://github.com/pubnub/swift-chat-sdk/blob/tst/LICENSE/ThirdParty/Unicode%20license.txt) ### [Multi-producer/multi-consumer bounded queue] -[Copyright notice](https://github.com/pubnub/swift-chat-sdk/blob/tst/LICENSE/ThirdParty/Copyright notice.txt) +[Copyright notice](https://github.com/pubnub/swift-chat-sdk/blob/tst/LICENSE/ThirdParty/Copyright%20notice.txt) From 37355efa96ca5929b20f6bb9ef91ad191c69c79a Mon Sep 17 00:00:00 2001 From: jguz-pubnub Date: Mon, 25 Nov 2024 12:20:36 +0100 Subject: [PATCH 03/13] wip 2 --- LICENSE/ThirdParty/README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/LICENSE/ThirdParty/README.md b/LICENSE/ThirdParty/README.md index ff0745f..b4dd339 100644 --- a/LICENSE/ThirdParty/README.md +++ b/LICENSE/ThirdParty/README.md @@ -8,7 +8,7 @@ Each license file in this directory corresponds to a specific dependency or lice ### [Kotlin](https://kotlinlang.org/), [Apache Harmony](https://harmony.apache.org/), [GWT](https://www.gwtproject.org/), [Guava](https://guava.dev/) [Apache license 2.0](https://github.com/pubnub/swift-chat-sdk/blob/tst/LICENSE/ThirdParty/Apache%20license%202.0.txt) -[Apache Harmony](https://github.com/pubnub/swift-chat-sdk/blob/tst/LICENSE/ThirdParty/Apache Harmony%20copyright%20notice.txt) +[Apache Harmony](https://github.com/pubnub/swift-chat-sdk/blob/tst/LICENSE/ThirdParty/Apache%20Harmony%20copyright%20notice.txt) ### [libbacktrace](https://github.com/ianlancetaylor/libbacktrace) @@ -24,6 +24,6 @@ Each license file in this directory corresponds to a specific dependency or lice [Unicode license](https://github.com/pubnub/swift-chat-sdk/blob/tst/LICENSE/ThirdParty/Unicode%20license.txt) -### [Multi-producer/multi-consumer bounded queue] +### Multi-producer/multi-consumer bounded queue [Copyright notice](https://github.com/pubnub/swift-chat-sdk/blob/tst/LICENSE/ThirdParty/Copyright%20notice.txt) From 37419c2ec57a553d744cb7de4b7e408e09065668 Mon Sep 17 00:00:00 2001 From: jguz-pubnub Date: Mon, 25 Nov 2024 12:21:34 +0100 Subject: [PATCH 04/13] wip 2 --- LICENSE/ThirdParty/README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/LICENSE/ThirdParty/README.md b/LICENSE/ThirdParty/README.md index b4dd339..f6106ea 100644 --- a/LICENSE/ThirdParty/README.md +++ b/LICENSE/ThirdParty/README.md @@ -8,12 +8,13 @@ Each license file in this directory corresponds to a specific dependency or lice ### [Kotlin](https://kotlinlang.org/), [Apache Harmony](https://harmony.apache.org/), [GWT](https://www.gwtproject.org/), [Guava](https://guava.dev/) [Apache license 2.0](https://github.com/pubnub/swift-chat-sdk/blob/tst/LICENSE/ThirdParty/Apache%20license%202.0.txt) + [Apache Harmony](https://github.com/pubnub/swift-chat-sdk/blob/tst/LICENSE/ThirdParty/Apache%20Harmony%20copyright%20notice.txt) ### [libbacktrace](https://github.com/ianlancetaylor/libbacktrace) -[3-clause BSD license with copyright notice](https://github.com/pubnub/swift-chat-sdk/blob/tst/LICENSE/ThirdParty/3-clause BSD%20license%20with%20copyright%20notice.txt) +[3-clause BSD license with copyright notice](https://github.com/pubnub/swift-chat-sdk/blob/tst/LICENSE/ThirdParty/3-clause%20BSD%20license%20with%20copyright%20notice.txt) ### [mimalloc](https://github.com/microsoft/mimalloc) From 154bcfe4c77478c70c06f101f0b1e104c2c237cf Mon Sep 17 00:00:00 2001 From: jguz-pubnub Date: Mon, 25 Nov 2024 12:26:33 +0100 Subject: [PATCH 05/13] final version --- LICENSE/LICENSE => LICENSE | 0 LICENSE/ThirdParty/MIT license.txt | 21 ------------------- ...ause BSD license with copyright notice.txt | 0 .../Apache Harmony copyright notice.txt | 0 .../Apache license 2.0.txt | 0 .../Copyright notice.txt | 0 .../README.md | 7 ------- .../Unicode license.txt | 0 8 files changed, 28 deletions(-) rename LICENSE/LICENSE => LICENSE (100%) delete mode 100644 LICENSE/ThirdParty/MIT license.txt rename {LICENSE/ThirdParty => ThirdPartyLicenses}/3-clause BSD license with copyright notice.txt (100%) rename {LICENSE/ThirdParty => ThirdPartyLicenses}/Apache Harmony copyright notice.txt (100%) rename {LICENSE/ThirdParty => ThirdPartyLicenses}/Apache license 2.0.txt (100%) rename {LICENSE/ThirdParty => ThirdPartyLicenses}/Copyright notice.txt (100%) rename {LICENSE/ThirdParty => ThirdPartyLicenses}/README.md (90%) rename {LICENSE/ThirdParty => ThirdPartyLicenses}/Unicode license.txt (100%) diff --git a/LICENSE/LICENSE b/LICENSE similarity index 100% rename from LICENSE/LICENSE rename to LICENSE diff --git a/LICENSE/ThirdParty/MIT license.txt b/LICENSE/ThirdParty/MIT license.txt deleted file mode 100644 index 614c2d7..0000000 --- a/LICENSE/ThirdParty/MIT license.txt +++ /dev/null @@ -1,21 +0,0 @@ -MIT License - -Copyright (c) 2019 Microsoft Corporation, Daan Leijen - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. \ No newline at end of file diff --git a/LICENSE/ThirdParty/3-clause BSD license with copyright notice.txt b/ThirdPartyLicenses/3-clause BSD license with copyright notice.txt similarity index 100% rename from LICENSE/ThirdParty/3-clause BSD license with copyright notice.txt rename to ThirdPartyLicenses/3-clause BSD license with copyright notice.txt diff --git a/LICENSE/ThirdParty/Apache Harmony copyright notice.txt b/ThirdPartyLicenses/Apache Harmony copyright notice.txt similarity index 100% rename from LICENSE/ThirdParty/Apache Harmony copyright notice.txt rename to ThirdPartyLicenses/Apache Harmony copyright notice.txt diff --git a/LICENSE/ThirdParty/Apache license 2.0.txt b/ThirdPartyLicenses/Apache license 2.0.txt similarity index 100% rename from LICENSE/ThirdParty/Apache license 2.0.txt rename to ThirdPartyLicenses/Apache license 2.0.txt diff --git a/LICENSE/ThirdParty/Copyright notice.txt b/ThirdPartyLicenses/Copyright notice.txt similarity index 100% rename from LICENSE/ThirdParty/Copyright notice.txt rename to ThirdPartyLicenses/Copyright notice.txt diff --git a/LICENSE/ThirdParty/README.md b/ThirdPartyLicenses/README.md similarity index 90% rename from LICENSE/ThirdParty/README.md rename to ThirdPartyLicenses/README.md index f6106ea..96be2dd 100644 --- a/LICENSE/ThirdParty/README.md +++ b/ThirdPartyLicenses/README.md @@ -4,7 +4,6 @@ The Kotlin/Native compiler produces binaries that may incorporate third-party co Each license file in this directory corresponds to a specific dependency or license type and outlines the rights and obligations associated with its use. - ### [Kotlin](https://kotlinlang.org/), [Apache Harmony](https://harmony.apache.org/), [GWT](https://www.gwtproject.org/), [Guava](https://guava.dev/) [Apache license 2.0](https://github.com/pubnub/swift-chat-sdk/blob/tst/LICENSE/ThirdParty/Apache%20license%202.0.txt) @@ -13,14 +12,8 @@ Each license file in this directory corresponds to a specific dependency or lice ### [libbacktrace](https://github.com/ianlancetaylor/libbacktrace) - [3-clause BSD license with copyright notice](https://github.com/pubnub/swift-chat-sdk/blob/tst/LICENSE/ThirdParty/3-clause%20BSD%20license%20with%20copyright%20notice.txt) -### [mimalloc](https://github.com/microsoft/mimalloc) - -[MIT license](https://github.com/pubnub/swift-chat-sdk/blob/tst/LICENSE/ThirdParty/MIT%20license.txt) - - ### [Unicode character database](https://www.unicode.org/) [Unicode license](https://github.com/pubnub/swift-chat-sdk/blob/tst/LICENSE/ThirdParty/Unicode%20license.txt) diff --git a/LICENSE/ThirdParty/Unicode license.txt b/ThirdPartyLicenses/Unicode license.txt similarity index 100% rename from LICENSE/ThirdParty/Unicode license.txt rename to ThirdPartyLicenses/Unicode license.txt From b8287b521dfc21896bb23f035b66ca7d175eec38 Mon Sep 17 00:00:00 2001 From: jguz-pubnub Date: Mon, 25 Nov 2024 12:29:05 +0100 Subject: [PATCH 06/13] Minor fix --- ThirdPartyLicenses/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ThirdPartyLicenses/README.md b/ThirdPartyLicenses/README.md index 96be2dd..41167c0 100644 --- a/ThirdPartyLicenses/README.md +++ b/ThirdPartyLicenses/README.md @@ -8,7 +8,7 @@ Each license file in this directory corresponds to a specific dependency or lice [Apache license 2.0](https://github.com/pubnub/swift-chat-sdk/blob/tst/LICENSE/ThirdParty/Apache%20license%202.0.txt) -[Apache Harmony](https://github.com/pubnub/swift-chat-sdk/blob/tst/LICENSE/ThirdParty/Apache%20Harmony%20copyright%20notice.txt) +[Apache Harmony copyright notice](https://github.com/pubnub/swift-chat-sdk/blob/tst/LICENSE/ThirdParty/Apache%20Harmony%20copyright%20notice.txt) ### [libbacktrace](https://github.com/ianlancetaylor/libbacktrace) From ba742c01fc1c6c5efe5c4b7703367d0197df3674 Mon Sep 17 00:00:00 2001 From: jguz-pubnub Date: Mon, 25 Nov 2024 12:30:25 +0100 Subject: [PATCH 07/13] 3rd party licenses readme --- ThirdPartyLicenses/README.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/ThirdPartyLicenses/README.md b/ThirdPartyLicenses/README.md index 41167c0..99a8d65 100644 --- a/ThirdPartyLicenses/README.md +++ b/ThirdPartyLicenses/README.md @@ -6,18 +6,18 @@ Each license file in this directory corresponds to a specific dependency or lice ### [Kotlin](https://kotlinlang.org/), [Apache Harmony](https://harmony.apache.org/), [GWT](https://www.gwtproject.org/), [Guava](https://guava.dev/) -[Apache license 2.0](https://github.com/pubnub/swift-chat-sdk/blob/tst/LICENSE/ThirdParty/Apache%20license%202.0.txt) +[Apache license 2.0](https://github.com/pubnub/swift-chat-sdk/blob/tst/ThirdPartyLicenses/Apache%20license%202.0.txt) -[Apache Harmony copyright notice](https://github.com/pubnub/swift-chat-sdk/blob/tst/LICENSE/ThirdParty/Apache%20Harmony%20copyright%20notice.txt) +[Apache Harmony copyright notice](https://github.com/pubnub/swift-chat-sdk/blob/tst/ThirdPartyLicenses/Apache%20Harmony%20copyright%20notice.txt) ### [libbacktrace](https://github.com/ianlancetaylor/libbacktrace) -[3-clause BSD license with copyright notice](https://github.com/pubnub/swift-chat-sdk/blob/tst/LICENSE/ThirdParty/3-clause%20BSD%20license%20with%20copyright%20notice.txt) +[3-clause BSD license with copyright notice](https://github.com/pubnub/swift-chat-sdk/blob/tst/ThirdPartyLicenses/3-clause%20BSD%20license%20with%20copyright%20notice.txt) ### [Unicode character database](https://www.unicode.org/) -[Unicode license](https://github.com/pubnub/swift-chat-sdk/blob/tst/LICENSE/ThirdParty/Unicode%20license.txt) +[Unicode license](https://github.com/pubnub/swift-chat-sdk/blob/tst/ThirdPartyLicenses/Unicode%20license.txt) ### Multi-producer/multi-consumer bounded queue -[Copyright notice](https://github.com/pubnub/swift-chat-sdk/blob/tst/LICENSE/ThirdParty/Copyright%20notice.txt) +[Copyright notice](https://github.com/pubnub/swift-chat-sdk/blob/tst/ThirdPartyLicenses/Copyright%20notice.txt) From 41bd9e1bd5e77ed4d134a87dc3ba24b17d587628 Mon Sep 17 00:00:00 2001 From: jguz-pubnub Date: Mon, 25 Nov 2024 13:36:26 +0100 Subject: [PATCH 08/13] Final version of third party licenses --- ThirdPartyLicenses/README.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/ThirdPartyLicenses/README.md b/ThirdPartyLicenses/README.md index 99a8d65..51779ee 100644 --- a/ThirdPartyLicenses/README.md +++ b/ThirdPartyLicenses/README.md @@ -6,18 +6,18 @@ Each license file in this directory corresponds to a specific dependency or lice ### [Kotlin](https://kotlinlang.org/), [Apache Harmony](https://harmony.apache.org/), [GWT](https://www.gwtproject.org/), [Guava](https://guava.dev/) -[Apache license 2.0](https://github.com/pubnub/swift-chat-sdk/blob/tst/ThirdPartyLicenses/Apache%20license%202.0.txt) +[Apache license 2.0](https://github.com/pubnub/swift-chat-sdk/blob/master/ThirdPartyLicenses/Apache%20license%202.0.txt) -[Apache Harmony copyright notice](https://github.com/pubnub/swift-chat-sdk/blob/tst/ThirdPartyLicenses/Apache%20Harmony%20copyright%20notice.txt) +[Apache Harmony copyright notice](https://github.com/pubnub/swift-chat-sdk/blob/master/ThirdPartyLicenses/Apache%20Harmony%20copyright%20notice.txt) ### [libbacktrace](https://github.com/ianlancetaylor/libbacktrace) -[3-clause BSD license with copyright notice](https://github.com/pubnub/swift-chat-sdk/blob/tst/ThirdPartyLicenses/3-clause%20BSD%20license%20with%20copyright%20notice.txt) +[3-clause BSD license with copyright notice](https://github.com/pubnub/swift-chat-sdk/blob/master/ThirdPartyLicenses/3-clause%20BSD%20license%20with%20copyright%20notice.txt) ### [Unicode character database](https://www.unicode.org/) -[Unicode license](https://github.com/pubnub/swift-chat-sdk/blob/tst/ThirdPartyLicenses/Unicode%20license.txt) +[Unicode license](https://github.com/pubnub/swift-chat-sdk/blob/master/ThirdPartyLicenses/Unicode%20license.txt) ### Multi-producer/multi-consumer bounded queue -[Copyright notice](https://github.com/pubnub/swift-chat-sdk/blob/tst/ThirdPartyLicenses/Copyright%20notice.txt) +[Copyright notice](https://github.com/pubnub/swift-chat-sdk/blob/master/ThirdPartyLicenses/Copyright%20notice.txt) From a4e1d11ce17c8c2179444d0f0cd7cb79db1f75d1 Mon Sep 17 00:00:00 2001 From: jguz-pubnub Date: Mon, 25 Nov 2024 14:25:11 +0100 Subject: [PATCH 09/13] Update rexml (3.3.9) --- Gemfile | 2 +- Gemfile.lock | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Gemfile b/Gemfile index 07cd9e9..7dfbf17 100644 --- a/Gemfile +++ b/Gemfile @@ -1,4 +1,4 @@ source "https://rubygems.org" gem "fastlane", '2.225.0' -gem 'rexml', '3.3.8' +gem 'rexml', '3.3.9' diff --git a/Gemfile.lock b/Gemfile.lock index 47be845..85bda12 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -174,7 +174,7 @@ GEM trailblazer-option (>= 0.1.1, < 0.2.0) uber (< 0.2.0) retriable (3.1.2) - rexml (3.3.8) + rexml (3.3.9) rouge (2.0.7) ruby2_keywords (0.0.5) rubyzip (2.3.2) @@ -217,7 +217,7 @@ PLATFORMS DEPENDENCIES fastlane (= 2.225.0) - rexml (= 3.3.8) + rexml (= 3.3.9) BUNDLED WITH 2.5.22 From ec39d4784598d04e116d1b326701cdbd9e66f35f Mon Sep 17 00:00:00 2001 From: jguz-pubnub Date: Wed, 27 Nov 2024 11:07:28 +0100 Subject: [PATCH 10/13] Modify .swiftlint --- .swiftlint.yml | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/.swiftlint.yml b/.swiftlint.yml index efff30a..22771a5 100644 --- a/.swiftlint.yml +++ b/.swiftlint.yml @@ -6,13 +6,8 @@ disabled_rules: - type_name - function_body_length - function_parameter_count -excluded: - - .build - - bundle - - .bundle - - fastlane - - Tests - - Pods +included: + - Sources/ opt_in_rules: - force_unwrapping - overridden_super_call From e724a6a1867ea4c4737daad6dd95736677e953e4 Mon Sep 17 00:00:00 2001 From: jguz-pubnub Date: Thu, 5 Dec 2024 12:52:12 +0100 Subject: [PATCH 11/13] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 574e317..c004acb 100644 --- a/README.md +++ b/README.md @@ -37,7 +37,7 @@ You will need the publish and subscribe keys to authenticate your app. Get your 1. Create or open your project inside Xcode. 2. Navigate to **File -> Add Package Dependencies**. 3. Search for `https://github.com/pubnub/swift-chat-sdk` -4. From the **Dependency Rule** drop-down list, select **Exact**. In the version input field, type `0.9.0-dev` +4. From the **Dependency Rule** drop-down list, select **Exact**. In the version input field, type `0.9.1-dev` 5. Click the **Add Package** button. For more information see Apple's guide on [Adding Package Dependencies to Your App](https://developer.apple.com/documentation/xcode/adding_package_dependencies_to_your_app) From 64fb110d8e023df170db2deddd164ed5fb213ea3 Mon Sep 17 00:00:00 2001 From: jguz-pubnub Date: Thu, 5 Dec 2024 13:37:30 +0100 Subject: [PATCH 12/13] Constants.swift --- Sources/Miscellaneous/Constants.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/Miscellaneous/Constants.swift b/Sources/Miscellaneous/Constants.swift index e9fb63a..9a24f43 100644 --- a/Sources/Miscellaneous/Constants.swift +++ b/Sources/Miscellaneous/Constants.swift @@ -10,4 +10,4 @@ import Foundation -let pubNubSwiftChatSDKVersion = "0.9.0" +let pubNubSwiftChatSDKVersion: String = "0.9.0" From 61b4c725adaae5482efd7cee2bd1bd8c1fab9f45 Mon Sep 17 00:00:00 2001 From: PubNub Release Bot <120067856+pubnub-release-bot@users.noreply.github.com> Date: Thu, 5 Dec 2024 12:59:41 +0000 Subject: [PATCH 13/13] PubNub SDK 0.9.1-dev release. --- .pubnub.yml | 11 +++++++++-- PubNubSwiftChatSDK.xcodeproj/project.pbxproj | 4 ++-- Sources/Miscellaneous/Constants.swift | 2 +- 3 files changed, 12 insertions(+), 5 deletions(-) diff --git a/.pubnub.yml b/.pubnub.yml index ca863d2..a76d2c8 100644 --- a/.pubnub.yml +++ b/.pubnub.yml @@ -1,9 +1,16 @@ --- name: swift-chat-sdk scm: github.com/pubnub/swift-chat-sdk -version: "0.9.0" +version: "0.9.1" schema: 1 changelog: + - date: 2024-12-05 + version: 0.9.1 + changes: + - type: feature + text: "Add third-party dependencies due to Kotlin Multiplatform usage." + - type: bug + text: "Add missing userSuggestionSource property." - date: 2024-11-06 version: 0.9.0 changes: @@ -44,7 +51,7 @@ sdks: - distribution-type: source distribution-repository: GitHub release package-name: PubNubSwiftChatSDK - location: https://github.com/pubnub/swift-chat-sdk/archive/refs/tags/0.9.0-dev.zip + location: https://github.com/pubnub/swift-chat-sdk/archive/refs/tags/0.9.1-dev.zip supported-platforms: supported-operating-systems: iOS: diff --git a/PubNubSwiftChatSDK.xcodeproj/project.pbxproj b/PubNubSwiftChatSDK.xcodeproj/project.pbxproj index 2570120..7c14cfc 100644 --- a/PubNubSwiftChatSDK.xcodeproj/project.pbxproj +++ b/PubNubSwiftChatSDK.xcodeproj/project.pbxproj @@ -729,7 +729,7 @@ "@loader_path/Frameworks", ); MACOSX_DEPLOYMENT_TARGET = 12.0; - MARKETING_VERSION = 0.9.0; + MARKETING_VERSION = 0.9.1; MODULE_VERIFIER_SUPPORTED_LANGUAGES = "objective-c objective-c++"; MODULE_VERIFIER_SUPPORTED_LANGUAGE_STANDARDS = "gnu17 gnu++20"; OTHER_SWIFT_FLAGS = "$(inherited) -D COCOAPODS"; @@ -778,7 +778,7 @@ "@loader_path/Frameworks", ); MACOSX_DEPLOYMENT_TARGET = 12.0; - MARKETING_VERSION = 0.9.0; + MARKETING_VERSION = 0.9.1; MODULE_VERIFIER_SUPPORTED_LANGUAGES = "objective-c objective-c++"; MODULE_VERIFIER_SUPPORTED_LANGUAGE_STANDARDS = "gnu17 gnu++20"; OTHER_SWIFT_FLAGS = "$(inherited) -D COCOAPODS"; diff --git a/Sources/Miscellaneous/Constants.swift b/Sources/Miscellaneous/Constants.swift index 9a24f43..7f7a511 100644 --- a/Sources/Miscellaneous/Constants.swift +++ b/Sources/Miscellaneous/Constants.swift @@ -10,4 +10,4 @@ import Foundation -let pubNubSwiftChatSDKVersion: String = "0.9.0" +let pubNubSwiftChatSDKVersion: String = "0.9.1"