From e6201a4232315b2c4ac583130b589d645990519b Mon Sep 17 00:00:00 2001 From: jguz-pubnub Date: Wed, 16 Oct 2024 13:44:09 +0200 Subject: [PATCH 1/3] feat(kmp): add authToken property for KMPPubNubConfiguration --- Sources/PubNub/KMP/KMPPubNub.swift | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Sources/PubNub/KMP/KMPPubNub.swift b/Sources/PubNub/KMP/KMPPubNub.swift index f884773a..9c249bd9 100644 --- a/Sources/PubNub/KMP/KMPPubNub.swift +++ b/Sources/PubNub/KMP/KMPPubNub.swift @@ -102,4 +102,9 @@ public class KMPPubNubConfiguration: NSObject { public var authKey: String? { configuration.authKey } + + @objc + public var authToken: String? { + configuration.authToken + } } From 7fbb1a4f25733a3a4e5f46316afa4c4fe44249cd Mon Sep 17 00:00:00 2001 From: jguz-pubnub Date: Thu, 17 Oct 2024 12:52:29 +0200 Subject: [PATCH 2/3] Use more descriptivie method instead of getter --- Sources/PubNub/KMP/KMPPubNub.swift | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/Sources/PubNub/KMP/KMPPubNub.swift b/Sources/PubNub/KMP/KMPPubNub.swift index 9c249bd9..a68db9d8 100644 --- a/Sources/PubNub/KMP/KMPPubNub.swift +++ b/Sources/PubNub/KMP/KMPPubNub.swift @@ -51,6 +51,10 @@ public extension KMPPubNub { func set(token: String) { pubnub.set(token: token) } + + func getToken() -> String? { + pubnub.configuration.authToken + } } // MARK: - Disconnect @@ -102,9 +106,4 @@ public class KMPPubNubConfiguration: NSObject { public var authKey: String? { configuration.authKey } - - @objc - public var authToken: String? { - configuration.authToken - } } From a81334a7f25143aab004aa96066b2cb7c571bffe Mon Sep 17 00:00:00 2001 From: PubNub Release Bot <120067856+pubnub-release-bot@users.noreply.github.com> Date: Thu, 17 Oct 2024 12:23:02 +0000 Subject: [PATCH 3/3] PubNub SDK 8.0.1 release. --- .pubnub.yml | 9 +++++++-- PubNub.xcodeproj/project.pbxproj | 16 ++++++++-------- PubNubSwift.podspec | 2 +- Sources/PubNub/Helpers/Constants.swift | 2 +- 4 files changed, 17 insertions(+), 12 deletions(-) diff --git a/.pubnub.yml b/.pubnub.yml index 9262dd04..a8fd2231 100644 --- a/.pubnub.yml +++ b/.pubnub.yml @@ -1,9 +1,14 @@ --- name: swift scm: github.com/pubnub/swift -version: "8.0.0" +version: "8.0.1" schema: 1 changelog: + - date: 2024-10-17 + version: 8.0.1 + changes: + - type: feature + text: "Add getToken() method for KMPPubNub (internal usage)." - date: 2024-09-23 version: 8.0.0 changes: @@ -586,7 +591,7 @@ sdks: - distribution-type: source distribution-repository: GitHub release package-name: PubNub - location: https://github.com/pubnub/swift/archive/refs/tags/8.0.0.zip + location: https://github.com/pubnub/swift/archive/refs/tags/8.0.1.zip supported-platforms: supported-operating-systems: macOS: diff --git a/PubNub.xcodeproj/project.pbxproj b/PubNub.xcodeproj/project.pbxproj index 4328b207..5a1b7a0a 100644 --- a/PubNub.xcodeproj/project.pbxproj +++ b/PubNub.xcodeproj/project.pbxproj @@ -3995,7 +3995,7 @@ "@loader_path/Frameworks", ); MACOSX_DEPLOYMENT_TARGET = 10.15; - MARKETING_VERSION = 8.0.0; + MARKETING_VERSION = 8.0.1; MODULE_VERIFIER_SUPPORTED_LANGUAGE_STANDARDS = "gnu11 gnu++17"; MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE; MTL_FAST_MATH = YES; @@ -4046,7 +4046,7 @@ "@loader_path/Frameworks", ); MACOSX_DEPLOYMENT_TARGET = 10.15; - MARKETING_VERSION = 8.0.0; + MARKETING_VERSION = 8.0.1; MODULE_VERIFIER_SUPPORTED_LANGUAGE_STANDARDS = "gnu11 gnu++17"; MTL_ENABLE_DEBUG_INFO = NO; MTL_FAST_MATH = YES; @@ -4154,7 +4154,7 @@ "@loader_path/Frameworks", ); MACOSX_DEPLOYMENT_TARGET = 10.15; - MARKETING_VERSION = 8.0.0; + MARKETING_VERSION = 8.0.1; MODULE_VERIFIER_SUPPORTED_LANGUAGE_STANDARDS = "gnu11 gnu++17"; MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE; MTL_FAST_MATH = YES; @@ -4207,7 +4207,7 @@ "@loader_path/Frameworks", ); MACOSX_DEPLOYMENT_TARGET = 10.15; - MARKETING_VERSION = 8.0.0; + MARKETING_VERSION = 8.0.1; MODULE_VERIFIER_SUPPORTED_LANGUAGE_STANDARDS = "gnu11 gnu++17"; MTL_ENABLE_DEBUG_INFO = NO; MTL_FAST_MATH = YES; @@ -4328,7 +4328,7 @@ "@loader_path/Frameworks", ); MACOSX_DEPLOYMENT_TARGET = 10.15; - MARKETING_VERSION = 8.0.0; + MARKETING_VERSION = 8.0.1; MODULE_VERIFIER_SUPPORTED_LANGUAGE_STANDARDS = "gnu11 gnu++17"; MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE; MTL_FAST_MATH = YES; @@ -4380,7 +4380,7 @@ "@loader_path/Frameworks", ); MACOSX_DEPLOYMENT_TARGET = 10.15; - MARKETING_VERSION = 8.0.0; + MARKETING_VERSION = 8.0.1; MODULE_VERIFIER_SUPPORTED_LANGUAGE_STANDARDS = "gnu11 gnu++17"; MTL_ENABLE_DEBUG_INFO = NO; MTL_FAST_MATH = YES; @@ -4860,7 +4860,7 @@ "$(TOOLCHAIN_DIR)/usr/lib/swift/macosx", ); MACOSX_DEPLOYMENT_TARGET = 10.15; - MARKETING_VERSION = 8.0.0; + MARKETING_VERSION = 8.0.1; MODULE_VERIFIER_SUPPORTED_LANGUAGE_STANDARDS = "gnu17 gnu++14"; OTHER_CFLAGS = "$(inherited)"; OTHER_LDFLAGS = "$(inherited)"; @@ -4903,7 +4903,7 @@ "$(TOOLCHAIN_DIR)/usr/lib/swift/macosx", ); MACOSX_DEPLOYMENT_TARGET = 10.15; - MARKETING_VERSION = 8.0.0; + MARKETING_VERSION = 8.0.1; MODULE_VERIFIER_SUPPORTED_LANGUAGE_STANDARDS = "gnu17 gnu++14"; OTHER_CFLAGS = "$(inherited)"; OTHER_LDFLAGS = "$(inherited)"; diff --git a/PubNubSwift.podspec b/PubNubSwift.podspec index 4e3391b0..b96bf615 100644 --- a/PubNubSwift.podspec +++ b/PubNubSwift.podspec @@ -1,6 +1,6 @@ Pod::Spec.new do |s| s.name = 'PubNubSwift' - s.version = '8.0.0' + s.version = '8.0.1' s.homepage = 'https://github.com/pubnub/swift' s.documentation_url = 'https://www.pubnub.com/docs/swift-native/pubnub-swift-sdk' s.authors = { 'PubNub, Inc.' => 'support@pubnub.com' } diff --git a/Sources/PubNub/Helpers/Constants.swift b/Sources/PubNub/Helpers/Constants.swift index 547ad41a..a1830812 100644 --- a/Sources/PubNub/Helpers/Constants.swift +++ b/Sources/PubNub/Helpers/Constants.swift @@ -57,7 +57,7 @@ public enum Constant { static let pubnubSwiftSDKName: String = "PubNubSwift" - static let pubnubSwiftSDKVersion: String = "8.0.0" + static let pubnubSwiftSDKVersion: String = "8.0.1" static let appBundleId: String = { if let info = Bundle.main.infoDictionary,