Skip to content

Commit 053b156

Browse files
authored
Add type and status for App Context (#464)
feat(app-context): add `type` and `status` for App Context Add support for `type` and `status` fields for all App Context entities: `channel`, `uuid`, `membership`, and `member`. feat(app-context): add `If-Match` header support Add `If-Match` header support to set `Channel` and `UUID` metadata app context objects.
1 parent e126f86 commit 053b156

File tree

41 files changed

+3246
-59
lines changed

Some content is hidden

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

41 files changed

+3246
-59
lines changed

.pubnub.yml

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,16 @@
11
---
22
name: objective-c
33
scm: github.com/pubnub/objective-c
4-
version: "5.7.1"
4+
version: "5.8.0"
55
schema: 1
66
changelog:
7+
- date: 2025-02-27
8+
version: v5.8.0
9+
changes:
10+
- type: feature
11+
text: "Add support for `type` and `status` fields for all App Context entities: `channel`, `uuid`, `membership`, and `member`."
12+
- type: feature
13+
text: "Add `If-Match` header support to set `Channel` and `UUID` metadata app context objects."
714
- date: 2025-02-03
815
version: v5.7.1
916
changes:
@@ -1375,7 +1382,7 @@ sdks:
13751382
- distribution-type: source
13761383
distribution-repository: GitHub release
13771384
package-name: PubNub.framework
1378-
location: https://github.com/pubnub/objective-c/archive/refs/tags/v5.7.1.zip
1385+
location: https://github.com/pubnub/objective-c/archive/refs/tags/v5.8.0.zip
13791386
supported-platforms:
13801387
supported-operating-systems:
13811388
macOS:
@@ -1436,7 +1443,7 @@ sdks:
14361443
- distribution-type: library
14371444
distribution-repository: GitHub release
14381445
package-name: PubNub.ios.xcframework.tar.gz
1439-
location: https://github.com/pubnub/objective-c/releases/download/v5.7.1/PubNub.ios.xcframework.tar.gz
1446+
location: https://github.com/pubnub/objective-c/releases/download/v5.8.0/PubNub.ios.xcframework.tar.gz
14401447
supported-platforms:
14411448
supported-operating-systems:
14421449
iOS:
@@ -1455,7 +1462,7 @@ sdks:
14551462
- distribution-type: library
14561463
distribution-repository: GitHub release
14571464
package-name: PubNub.macos.framework.tar.gz
1458-
location: https://github.com/pubnub/objective-c/releases/download/v5.7.1/PubNub.macos.framework.tar.gz
1465+
location: https://github.com/pubnub/objective-c/releases/download/v5.8.0/PubNub.macos.framework.tar.gz
14591466
supported-platforms:
14601467
supported-operating-systems:
14611468
macOS:
@@ -1471,7 +1478,7 @@ sdks:
14711478
- distribution-type: library
14721479
distribution-repository: GitHub release
14731480
package-name: PubNub.tvos.xcframework.tar.gz
1474-
location: https://github.com/pubnub/objective-c/releases/download/v5.7.1/PubNub.tvos.xcframework.tar.gz
1481+
location: https://github.com/pubnub/objective-c/releases/download/v5.8.0/PubNub.tvos.xcframework.tar.gz
14751482
supported-platforms:
14761483
supported-operating-systems:
14771484
tvOS:

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
## v5.8.0
2+
February 27 2025
3+
4+
#### Added
5+
- Add support for `type` and `status` fields for all App Context entities: `channel`, `uuid`, `membership`, and `member`.
6+
- Add `If-Match` header support to set `Channel` and `UUID` metadata app context objects.
7+
18
## v5.7.1
29
February 03 2025
310

Framework/PubNub/Info.plist

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<key>CFBundleExecutable</key>
88
<string>PubNub</string>
99
<key>CFBundleGetInfoString</key>
10-
<string>5.7.1</string>
10+
<string>5.8.0</string>
1111
<key>CFBundleIdentifier</key>
1212
<string>com.pubnub.pubnub-objc</string>
1313
<key>CFBundleInfoDictionaryVersion</key>
@@ -17,11 +17,11 @@
1717
<key>CFBundlePackageType</key>
1818
<string>FMWK</string>
1919
<key>CFBundleShortVersionString</key>
20-
<string>5.7.1</string>
20+
<string>5.8.0</string>
2121
<key>CFBundleSignature</key>
2222
<string>????</string>
2323
<key>CFBundleVersion</key>
24-
<string>5.7.1</string>
24+
<string>5.8.0</string>
2525
<key>NSHumanReadableCopyright</key>
2626
<string>© 2010 - 2020 PubNub, Inc.</string>
2727
<key>NSPrincipalClass</key>

Framework/PubNub/PubNub-iOS-Info.plist

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<key>CFBundleExecutable</key>
88
<string>PubNub</string>
99
<key>CFBundleGetInfoString</key>
10-
<string>5.7.1</string>
10+
<string>5.8.0</string>
1111
<key>CFBundleIdentifier</key>
1212
<string>com.pubnub.pubnub-objc</string>
1313
<key>CFBundleInfoDictionaryVersion</key>
@@ -17,11 +17,11 @@
1717
<key>CFBundlePackageType</key>
1818
<string>FMWK</string>
1919
<key>CFBundleShortVersionString</key>
20-
<string>5.7.1</string>
20+
<string>5.8.0</string>
2121
<key>CFBundleSignature</key>
2222
<string>????</string>
2323
<key>CFBundleVersion</key>
24-
<string>5.7.1</string>
24+
<string>5.8.0</string>
2525
<key>NSHumanReadableCopyright</key>
2626
<string>© 2010 - 2020 PubNub, Inc.</string>
2727
<key>NSPrincipalClass</key>

Framework/PubNub/PubNub-tvOS-Info.plist

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<key>CFBundleExecutable</key>
88
<string>PubNub</string>
99
<key>CFBundleGetInfoString</key>
10-
<string>5.7.1</string>
10+
<string>5.8.0</string>
1111
<key>CFBundleIdentifier</key>
1212
<string>com.pubnub.pubnub-objc</string>
1313
<key>CFBundleInfoDictionaryVersion</key>
@@ -17,11 +17,11 @@
1717
<key>CFBundlePackageType</key>
1818
<string>FMWK</string>
1919
<key>CFBundleShortVersionString</key>
20-
<string>5.7.1</string>
20+
<string>5.8.0</string>
2121
<key>CFBundleSignature</key>
2222
<string>????</string>
2323
<key>CFBundleVersion</key>
24-
<string>5.7.1</string>
24+
<string>5.8.0</string>
2525
<key>NSHumanReadableCopyright</key>
2626
<string>© 2010 - 2020 PubNub, Inc.</string>
2727
<key>NSPrincipalClass</key>

Framework/PubNub/PubNub-watchOS-Info.plist

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<key>CFBundleExecutable</key>
88
<string>PubNub</string>
99
<key>CFBundleGetInfoString</key>
10-
<string>5.7.1</string>
10+
<string>5.8.0</string>
1111
<key>CFBundleIdentifier</key>
1212
<string>com.pubnub.pubnub-objc</string>
1313
<key>CFBundleInfoDictionaryVersion</key>
@@ -17,11 +17,11 @@
1717
<key>CFBundlePackageType</key>
1818
<string>FMWK</string>
1919
<key>CFBundleShortVersionString</key>
20-
<string>5.7.1</string>
20+
<string>5.8.0</string>
2121
<key>CFBundleSignature</key>
2222
<string>????</string>
2323
<key>CFBundleVersion</key>
24-
<string>5.7.1</string>
24+
<string>5.8.0</string>
2525
<key>NSHumanReadableCopyright</key>
2626
<string>© 2010 - 2020 PubNub, Inc.</string>
2727
<key>NSPrincipalClass</key>

PubNub.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
Pod::Spec.new do |spec|
1111
spec.name = 'PubNub'
12-
spec.version = '5.7.1'
12+
spec.version = '5.8.0'
1313
spec.summary = 'The PubNub Real-Time Network. Build real-time apps quickly and scale them globally.'
1414
spec.homepage = 'https://github.com/pubnub/objective-c'
1515

PubNub/Data/Models/PNBaseAppContextObject.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,17 @@ NS_ASSUME_NONNULL_BEGIN
2222
/// > Note: Value will be `nil` for objects received through subscribe real-time updates.
2323
@property(strong, nullable, nonatomic, readonly) NSDate *updated;
2424

25+
///`App Context` object status.
26+
@property(copy, nullable, nonatomic, readonly) NSString *status;
27+
2528
/// `App Context` object version identifier.
2629
///
2730
/// > Note: Value will be `nil` for objects received through subscribe real-time updates.
2831
@property(copy, nullable, nonatomic, readonly) NSString *eTag;
2932

33+
/// `App Context` object type information.
34+
@property(copy, nullable, nonatomic, readonly) NSString *type;
35+
3036
#pragma mark -
3137

3238

PubNub/Data/Models/PNBaseAppContextObject.m

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,14 +36,16 @@ @implementation PNBaseAppContextObject
3636

3737
+ (NSDictionary<NSString *,NSString *> *)codingKeys {
3838
return @{
39+
@"status": @"status",
40+
@"type": @"type",
3941
@"custom": @"custom",
4042
@"updated": @"updated",
4143
@"eTag": @"eTag",
4244
};
4345
}
4446

4547
+ (NSArray<NSString *> *)optionalKeys {
46-
return @[@"custom", @"updated", @"eTag"];
48+
return @[@"custom", @"status", @"type", @"updated", @"eTag"];
4749
}
4850

4951

PubNub/Misc/PNConstants.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
#pragma mark General information constants
1616

1717
// Stores client library version number
18-
static NSString * const kPNLibraryVersion = @"5.7.1";
18+
static NSString * const kPNLibraryVersion = @"5.8.0";
1919

2020
// Stores information about SDK codebase
2121
static NSString * const kPNCommit = @"fd5c7ed678527fce07eaf7eb162935caf1bfd303";

0 commit comments

Comments
 (0)