From 1c0cc55890a91a5a13775925759987bb874b32bf Mon Sep 17 00:00:00 2001 From: Umair Date: Sun, 13 Oct 2024 19:48:27 +0100 Subject: [PATCH] Makes an `ARTChannelProperties` initialiser public to allow for `attachSerial` and `channelSerial` to be set and tested in other SDKs e.g. chat-swift --- Source/PrivateHeaders/Ably/ARTRealtimeChannel+Private.h | 6 ------ Source/include/Ably/ARTRealtimeChannel.h | 3 +++ 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/Source/PrivateHeaders/Ably/ARTRealtimeChannel+Private.h b/Source/PrivateHeaders/Ably/ARTRealtimeChannel+Private.h index 03dbbc572..cecb367e3 100644 --- a/Source/PrivateHeaders/Ably/ARTRealtimeChannel+Private.h +++ b/Source/PrivateHeaders/Ably/ARTRealtimeChannel+Private.h @@ -96,10 +96,4 @@ NS_ASSUME_NONNULL_BEGIN @end -@interface ARTChannelProperties () - -- (instancetype)initWithAttachSerial:(nullable NSString *)attachSerial channelSerial:(nullable NSString *)channelSerial; - -@end - NS_ASSUME_NONNULL_END diff --git a/Source/include/Ably/ARTRealtimeChannel.h b/Source/include/Ably/ARTRealtimeChannel.h index b19efa083..804aa71e2 100644 --- a/Source/include/Ably/ARTRealtimeChannel.h +++ b/Source/include/Ably/ARTRealtimeChannel.h @@ -168,6 +168,9 @@ ART_EMBED_INTERFACE_EVENT_EMITTER(ARTChannelEvent, ARTChannelStateChange *) */ @property (nonatomic, readonly, nullable) NSString *channelSerial; // CP2b +// Exposed for mocking/testing purposes in conjuction with `ARTRealtimeChannelProtocol`. +- (instancetype)initWithAttachSerial:(nullable NSString *)attachSerial channelSerial:(nullable NSString *)channelSerial; + @end /**