Skip to content

Commit 36128db

Browse files
committed
PubNub Swift Chat SDK 0.30.2 release
1 parent da897bb commit 36128db

File tree

5 files changed

+29
-21
lines changed

5 files changed

+29
-21
lines changed

Package.swift

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ let package = Package(
1818
)
1919
],
2020
dependencies: [
21-
.package(url: "https://github.com/pubnub/kmp-chat", exact: "0.13.2-swift"),
21+
.package(url: "https://github.com/pubnub/kmp-chat", exact: "0.13.4-swift"),
2222
.package(url: "https://github.com/pubnub/swift", exact: "9.2.0")
2323
],
2424
targets: [
@@ -29,6 +29,9 @@ let package = Package(
2929
dependencies: [
3030
.product(name: "PubNubSDK", package: "swift"),
3131
.product(name: "PubNubChat", package: "kmp-chat")
32+
],
33+
resources: [
34+
.copy("PrivacyInfo.xcprivacy")
3235
]
3336
),
3437
.testTarget(

PrivacyInfo.xcprivacy

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3+
<plist version="1.0">
4+
<dict>
5+
<key>NSPrivacyAccessedAPITypes</key>
6+
<array>
7+
</array>
8+
<key>NSPrivacyCollectedDataTypes</key>
9+
<array>
10+
</array>
11+
</dict>
12+
</plist>

PubNubSwiftChatSDK.xcodeproj/project.pbxproj

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,7 @@
146146
3D043A792CA6AAA000F91C05 /* ThreadChannel.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ThreadChannel.swift; sourceTree = "<group>"; };
147147
3D043A7B2CAAABBD00F91C05 /* ThreadMessage.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ThreadMessage.swift; sourceTree = "<group>"; };
148148
3D043A7D2CAC190200F91C05 /* Constants.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Constants.swift; sourceTree = "<group>"; };
149+
3D0A0FE42DF9680D00AC926E /* PrivacyInfo.xcprivacy */ = {isa = PBXFileReference; lastKnownFileType = text.xml; path = PrivacyInfo.xcprivacy; sourceTree = "<group>"; };
149150
3D0F90D12D48DB4700986686 /* MutedUsersManagerInterface.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = MutedUsersManagerInterface.swift; sourceTree = "<group>"; };
150151
3D0F90D42D48DEC700986686 /* MutedUsersManagerInterface+AsyncAwait.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = "MutedUsersManagerInterface+AsyncAwait.swift"; sourceTree = "<group>"; };
151152
3D1C44A52C918A2200E68446 /* PubNubSwiftChatSDK_Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = PubNubSwiftChatSDK_Info.plist; sourceTree = "<group>"; };
@@ -331,6 +332,7 @@
331332
3DB739FD2C4FE13B007FE249 = {
332333
isa = PBXGroup;
333334
children = (
335+
3D0A0FE42DF9680D00AC926E /* PrivacyInfo.xcprivacy */,
334336
3DADCAED2C9896AF001B3DE2 /* Package.swift */,
335337
3DB73A232C4FE1E9007FE249 /* Sources */,
336338
3DB73A092C4FE13C007FE249 /* PubNubSwiftChatSDK */,
@@ -941,7 +943,6 @@
941943
"$(PROJECT_DIR)",
942944
);
943945
GENERATE_INFOPLIST_FILE = YES;
944-
INFOPLIST_FILE = Sources/PubNubSwiftChatSDK_Info.plist;
945946
INFOPLIST_KEY_NSHumanReadableCopyright = "";
946947
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
947948
IPHONEOS_DEPLOYMENT_TARGET = 14.0;
@@ -990,7 +991,6 @@
990991
"$(PROJECT_DIR)",
991992
);
992993
GENERATE_INFOPLIST_FILE = YES;
993-
INFOPLIST_FILE = Sources/PubNubSwiftChatSDK_Info.plist;
994994
INFOPLIST_KEY_NSHumanReadableCopyright = "";
995995
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
996996
IPHONEOS_DEPLOYMENT_TARGET = 14.0;
@@ -1113,7 +1113,7 @@
11131113
repositoryURL = "https://github.com/pubnub/kmp-chat";
11141114
requirement = {
11151115
kind = exactVersion;
1116-
version = "0.13.2-swift";
1116+
version = "0.13.4-swift";
11171117
};
11181118
};
11191119
3DCF7DFA2CD0FFCC00889326 /* XCRemoteSwiftPackageReference "swift" */ = {

Sources/Models/EventContent.swift

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@ public class EventContent {
2626
public let reportedMessageChannelId: String?
2727
/// The ID of the user being reported
2828
public let reportedUserId: String?
29+
/// The ID of the auto moderation rule that triggered the report, if applicable
30+
public let autoModerationId: String?
2931

3032
/// Initializes a new instance of `EventContent.Report` with the provided details.
3133
///
@@ -35,18 +37,21 @@ public class EventContent {
3537
/// - reportedMessageTimetoken: The timetoken of the message being reported
3638
/// - reportedMessageChannelId: The channel ID of the reported message, if applicable
3739
/// - reportedUserId: The ID of the user being reported
40+
/// - autoModerationId: The ID of the auto moderation rule that triggered the report, if applicable
3841
public init(
3942
text: String? = nil,
4043
reason: String,
4144
reportedMessageTimetoken: Timetoken? = nil,
4245
reportedMessageChannelId: String? = nil,
43-
reportedUserId: String? = nil
46+
reportedUserId: String? = nil,
47+
autoModerationId: String? = nil
4448
) {
4549
self.text = text
4650
self.reason = reason
4751
self.reportedMessageTimetoken = reportedMessageTimetoken
4852
self.reportedMessageChannelId = reportedMessageChannelId
4953
self.reportedUserId = reportedUserId
54+
self.autoModerationId = autoModerationId
5055
}
5156

5257
/// Extension to conform to `CustomStringConvertible` for custom string representation.
@@ -311,7 +316,8 @@ extension EventContent {
311316
reason: content.reason,
312317
reportedMessageTimetoken: content.reportedMessageTimetoken?.uint64Value,
313318
reportedMessageChannelId: content.reportedMessageChannelId,
314-
reportedUserId: content.reportedUserId
319+
reportedUserId: content.reportedUserId,
320+
autoModerationId: content.autoModerationId
315321
)
316322
case let conent as PubNubChat.EventContent.Receipt:
317323
EventContent.Receipt(
@@ -363,7 +369,8 @@ extension EventContent {
363369
reason: content.reason,
364370
reportedMessageTimetoken: content.reportedMessageTimetoken?.asKotlinLong(),
365371
reportedMessageChannelId: content.reportedMessageChannelId,
366-
reportedUserId: content.reportedUserId
372+
reportedUserId: content.reportedUserId,
373+
autoModerationId: content.autoModerationId
367374
)
368375
case let content as EventContent.Receipt:
369376
PubNubChat.EventContent.Receipt(

Sources/PubNubSwiftChatSDK_Info.plist

Lines changed: 0 additions & 14 deletions
This file was deleted.

0 commit comments

Comments
 (0)