Skip to content

Commit be18a8c

Browse files
authored
Add getToken() method for KMPPubNub (#192)
feat(kmp): add getToken() method for KMPPubNub (internal usage)
1 parent 7ec9708 commit be18a8c

File tree

5 files changed

+21
-12
lines changed

5 files changed

+21
-12
lines changed

.pubnub.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,14 @@
11
---
22
name: swift
33
scm: github.com/pubnub/swift
4-
version: "8.0.0"
4+
version: "8.0.1"
55
schema: 1
66
changelog:
7+
- date: 2024-10-17
8+
version: 8.0.1
9+
changes:
10+
- type: feature
11+
text: "Add getToken() method for KMPPubNub (internal usage)."
712
- date: 2024-09-23
813
version: 8.0.0
914
changes:
@@ -586,7 +591,7 @@ sdks:
586591
- distribution-type: source
587592
distribution-repository: GitHub release
588593
package-name: PubNub
589-
location: https://github.com/pubnub/swift/archive/refs/tags/8.0.0.zip
594+
location: https://github.com/pubnub/swift/archive/refs/tags/8.0.1.zip
590595
supported-platforms:
591596
supported-operating-systems:
592597
macOS:

PubNub.xcodeproj/project.pbxproj

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3995,7 +3995,7 @@
39953995
"@loader_path/Frameworks",
39963996
);
39973997
MACOSX_DEPLOYMENT_TARGET = 10.15;
3998-
MARKETING_VERSION = 8.0.0;
3998+
MARKETING_VERSION = 8.0.1;
39993999
MODULE_VERIFIER_SUPPORTED_LANGUAGE_STANDARDS = "gnu11 gnu++17";
40004000
MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE;
40014001
MTL_FAST_MATH = YES;
@@ -4046,7 +4046,7 @@
40464046
"@loader_path/Frameworks",
40474047
);
40484048
MACOSX_DEPLOYMENT_TARGET = 10.15;
4049-
MARKETING_VERSION = 8.0.0;
4049+
MARKETING_VERSION = 8.0.1;
40504050
MODULE_VERIFIER_SUPPORTED_LANGUAGE_STANDARDS = "gnu11 gnu++17";
40514051
MTL_ENABLE_DEBUG_INFO = NO;
40524052
MTL_FAST_MATH = YES;
@@ -4154,7 +4154,7 @@
41544154
"@loader_path/Frameworks",
41554155
);
41564156
MACOSX_DEPLOYMENT_TARGET = 10.15;
4157-
MARKETING_VERSION = 8.0.0;
4157+
MARKETING_VERSION = 8.0.1;
41584158
MODULE_VERIFIER_SUPPORTED_LANGUAGE_STANDARDS = "gnu11 gnu++17";
41594159
MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE;
41604160
MTL_FAST_MATH = YES;
@@ -4207,7 +4207,7 @@
42074207
"@loader_path/Frameworks",
42084208
);
42094209
MACOSX_DEPLOYMENT_TARGET = 10.15;
4210-
MARKETING_VERSION = 8.0.0;
4210+
MARKETING_VERSION = 8.0.1;
42114211
MODULE_VERIFIER_SUPPORTED_LANGUAGE_STANDARDS = "gnu11 gnu++17";
42124212
MTL_ENABLE_DEBUG_INFO = NO;
42134213
MTL_FAST_MATH = YES;
@@ -4328,7 +4328,7 @@
43284328
"@loader_path/Frameworks",
43294329
);
43304330
MACOSX_DEPLOYMENT_TARGET = 10.15;
4331-
MARKETING_VERSION = 8.0.0;
4331+
MARKETING_VERSION = 8.0.1;
43324332
MODULE_VERIFIER_SUPPORTED_LANGUAGE_STANDARDS = "gnu11 gnu++17";
43334333
MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE;
43344334
MTL_FAST_MATH = YES;
@@ -4380,7 +4380,7 @@
43804380
"@loader_path/Frameworks",
43814381
);
43824382
MACOSX_DEPLOYMENT_TARGET = 10.15;
4383-
MARKETING_VERSION = 8.0.0;
4383+
MARKETING_VERSION = 8.0.1;
43844384
MODULE_VERIFIER_SUPPORTED_LANGUAGE_STANDARDS = "gnu11 gnu++17";
43854385
MTL_ENABLE_DEBUG_INFO = NO;
43864386
MTL_FAST_MATH = YES;
@@ -4860,7 +4860,7 @@
48604860
"$(TOOLCHAIN_DIR)/usr/lib/swift/macosx",
48614861
);
48624862
MACOSX_DEPLOYMENT_TARGET = 10.15;
4863-
MARKETING_VERSION = 8.0.0;
4863+
MARKETING_VERSION = 8.0.1;
48644864
MODULE_VERIFIER_SUPPORTED_LANGUAGE_STANDARDS = "gnu17 gnu++14";
48654865
OTHER_CFLAGS = "$(inherited)";
48664866
OTHER_LDFLAGS = "$(inherited)";
@@ -4903,7 +4903,7 @@
49034903
"$(TOOLCHAIN_DIR)/usr/lib/swift/macosx",
49044904
);
49054905
MACOSX_DEPLOYMENT_TARGET = 10.15;
4906-
MARKETING_VERSION = 8.0.0;
4906+
MARKETING_VERSION = 8.0.1;
49074907
MODULE_VERIFIER_SUPPORTED_LANGUAGE_STANDARDS = "gnu17 gnu++14";
49084908
OTHER_CFLAGS = "$(inherited)";
49094909
OTHER_LDFLAGS = "$(inherited)";

PubNubSwift.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Pod::Spec.new do |s|
22
s.name = 'PubNubSwift'
3-
s.version = '8.0.0'
3+
s.version = '8.0.1'
44
s.homepage = 'https://github.com/pubnub/swift'
55
s.documentation_url = 'https://www.pubnub.com/docs/swift-native/pubnub-swift-sdk'
66
s.authors = { 'PubNub, Inc.' => 'support@pubnub.com' }

Sources/PubNub/Helpers/Constants.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ public enum Constant {
5757

5858
static let pubnubSwiftSDKName: String = "PubNubSwift"
5959

60-
static let pubnubSwiftSDKVersion: String = "8.0.0"
60+
static let pubnubSwiftSDKVersion: String = "8.0.1"
6161

6262
static let appBundleId: String = {
6363
if let info = Bundle.main.infoDictionary,

Sources/PubNub/KMP/KMPPubNub.swift

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,10 @@ public extension KMPPubNub {
5151
func set(token: String) {
5252
pubnub.set(token: token)
5353
}
54+
55+
func getToken() -> String? {
56+
pubnub.configuration.authToken
57+
}
5458
}
5559

5660
// MARK: - Disconnect

0 commit comments

Comments
 (0)