Skip to content

Commit 0639f7c

Browse files
authored
Update underlying string values for PubNub.PushService (#226)
1 parent 0b253d1 commit 0639f7c

File tree

6 files changed

+22
-13
lines changed

6 files changed

+22
-13
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: "9.3.4"
4+
version: "9.3.5"
55
schema: 1
66
changelog:
7+
- date: 2025-10-16
8+
version: 9.3.5
9+
changes:
10+
- type: bug
11+
text: "Update underlying string values for `PubNub.PushService`. This change updates .fcm to return \"fcm\" instead of \"gcm\", while the deprecated .gcm continues to return \"gcm\" for backward compatibility."
712
- date: 2025-09-15
813
version: 9.3.4
914
changes:
@@ -728,7 +733,7 @@ sdks:
728733
- distribution-type: source
729734
distribution-repository: GitHub release
730735
package-name: PubNub
731-
location: https://github.com/pubnub/swift/archive/refs/tags/9.3.4.zip
736+
location: https://github.com/pubnub/swift/archive/refs/tags/9.3.5.zip
732737
supported-platforms:
733738
supported-operating-systems:
734739
macOS:

PubNub.xcodeproj/project.pbxproj

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4043,7 +4043,7 @@
40434043
"@loader_path/Frameworks",
40444044
);
40454045
MACOSX_DEPLOYMENT_TARGET = 10.15;
4046-
MARKETING_VERSION = 9.3.4;
4046+
MARKETING_VERSION = 9.3.5;
40474047
MODULE_VERIFIER_SUPPORTED_LANGUAGE_STANDARDS = "gnu11 gnu++17";
40484048
MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE;
40494049
MTL_FAST_MATH = YES;
@@ -4094,7 +4094,7 @@
40944094
"@loader_path/Frameworks",
40954095
);
40964096
MACOSX_DEPLOYMENT_TARGET = 10.15;
4097-
MARKETING_VERSION = 9.3.4;
4097+
MARKETING_VERSION = 9.3.5;
40984098
MODULE_VERIFIER_SUPPORTED_LANGUAGE_STANDARDS = "gnu11 gnu++17";
40994099
MTL_ENABLE_DEBUG_INFO = NO;
41004100
MTL_FAST_MATH = YES;
@@ -4202,7 +4202,7 @@
42024202
"@loader_path/Frameworks",
42034203
);
42044204
MACOSX_DEPLOYMENT_TARGET = 10.15;
4205-
MARKETING_VERSION = 9.3.4;
4205+
MARKETING_VERSION = 9.3.5;
42064206
MODULE_VERIFIER_SUPPORTED_LANGUAGE_STANDARDS = "gnu11 gnu++17";
42074207
MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE;
42084208
MTL_FAST_MATH = YES;
@@ -4255,7 +4255,7 @@
42554255
"@loader_path/Frameworks",
42564256
);
42574257
MACOSX_DEPLOYMENT_TARGET = 10.15;
4258-
MARKETING_VERSION = 9.3.4;
4258+
MARKETING_VERSION = 9.3.5;
42594259
MODULE_VERIFIER_SUPPORTED_LANGUAGE_STANDARDS = "gnu11 gnu++17";
42604260
MTL_ENABLE_DEBUG_INFO = NO;
42614261
MTL_FAST_MATH = YES;
@@ -4376,7 +4376,7 @@
43764376
"@loader_path/Frameworks",
43774377
);
43784378
MACOSX_DEPLOYMENT_TARGET = 10.15;
4379-
MARKETING_VERSION = 9.3.4;
4379+
MARKETING_VERSION = 9.3.5;
43804380
MODULE_VERIFIER_SUPPORTED_LANGUAGE_STANDARDS = "gnu11 gnu++17";
43814381
MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE;
43824382
MTL_FAST_MATH = YES;
@@ -4428,7 +4428,7 @@
44284428
"@loader_path/Frameworks",
44294429
);
44304430
MACOSX_DEPLOYMENT_TARGET = 10.15;
4431-
MARKETING_VERSION = 9.3.4;
4431+
MARKETING_VERSION = 9.3.5;
44324432
MODULE_VERIFIER_SUPPORTED_LANGUAGE_STANDARDS = "gnu11 gnu++17";
44334433
MTL_ENABLE_DEBUG_INFO = NO;
44344434
MTL_FAST_MATH = YES;
@@ -4908,7 +4908,7 @@
49084908
"$(TOOLCHAIN_DIR)/usr/lib/swift/macosx",
49094909
);
49104910
MACOSX_DEPLOYMENT_TARGET = 10.15;
4911-
MARKETING_VERSION = 9.3.4;
4911+
MARKETING_VERSION = 9.3.5;
49124912
MODULE_VERIFIER_SUPPORTED_LANGUAGE_STANDARDS = "gnu17 gnu++14";
49134913
OTHER_CFLAGS = "$(inherited)";
49144914
OTHER_LDFLAGS = "$(inherited)";
@@ -4951,7 +4951,7 @@
49514951
"$(TOOLCHAIN_DIR)/usr/lib/swift/macosx",
49524952
);
49534953
MACOSX_DEPLOYMENT_TARGET = 10.15;
4954-
MARKETING_VERSION = 9.3.4;
4954+
MARKETING_VERSION = 9.3.5;
49554955
MODULE_VERIFIER_SUPPORTED_LANGUAGE_STANDARDS = "gnu17 gnu++14";
49564956
OTHER_CFLAGS = "$(inherited)";
49574957
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 = '9.3.4'
3+
s.version = '9.3.5'
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.' => '[email protected]' }

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 = "9.3.4"
60+
static let pubnubSwiftSDKVersion: String = "9.3.5"
6161

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

Sources/PubNub/KMP/KMPPubNub+Push.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ extension KMPPubNub {
2222
switch rawString {
2323
case "gcm":
2424
return .fcm
25+
case "fcm":
26+
return .fcm
2527
case "apns", "apns2":
2628
return .apns
2729
case "mpns":

Sources/PubNub/PubNub.swift

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,8 +113,10 @@ public extension PubNub {
113113

114114
func stringValue() -> String {
115115
switch self {
116-
case .gcm, .fcm:
116+
case .gcm:
117117
return "gcm"
118+
case .fcm:
119+
return "fcm"
118120
case .apns:
119121
return "apns"
120122
case .mpns:

0 commit comments

Comments
 (0)