Skip to content

Commit a69f435

Browse files
Migration from C-Core to Unity SDK (#17)
* add C# SDK dependency, WIP new Chat initialization workflow * WIP on User entity migration * more WIP on User migration * add public channel creation and getting, fix wrong json keys in custom user data * implemented channel creation + associated required memberships logic * WIP message receiving * fully remove CPP interop logic for easier migration * working basic message sending and receiving, fixed missing status and type fields in metadata getters/setters * implement message draft * implement restrictions getting/setting, start conversion to returning ChatOperationResult in methods * implement events (both entity update callbacks and chat events) * update event related tests, implement minor fixes * implement thread channel and message, adapt more tests * implement WIP threads + history functionality * implement message forwarding and getting current user mentions * removed wrappers storage in chat entity, added unread messages functionality * implement message pinning and unpinning * finish implementing all methods * add .ConfigureAwait(false) to await statements * XML comments updates, some missing ChatOperationResult and ConfigureAwait(false) * add more leeway in GetMessage test * Update Unity project with API source code instead of CPP DLL * test add dependency statement * Test add asmdef reference * Remove misleading error logs * implement chat PNSDK logic * Update PNSDK generation, some codacy fixes * Add first batch of code snippets * Second batch of snippets * Update namespaces * Replace Console.WriteLine with Debug.Log in code snippets * Fix tests compilation with new namespace * Add codacy ignores * Remove Diff library from codacy analisys * Codacy fix - remove inline returns * Final batch of snippets * Minor codacy fixes * Final codacy fixes * Final final codacy fix * Update Unity SDK dependency * Update package dependency * PubNub SDK v1.0.0 release. * Formatting fix * Fix sample namespace usage * Snyk fix test * Add repository link to package.json * Small package.json format --------- Co-authored-by: PubNub Release Bot <120067856+pubnub-release-bot@users.noreply.github.com>
1 parent 4db3d9f commit a69f435

File tree

281 files changed

+22479
-5954
lines changed

Some content is hidden

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

281 files changed

+22479
-5954
lines changed

.codacy.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
---
2+
exclude_paths:
3+
- '**/PubNubChatConsoleExample/**'
4+
- '**/PubNubChatApi.Tests/**'
5+
- '**/Plugins/**'
6+
- '**/Snippets/**'
7+
- '**/DiffMatchPatch.cs'
8+

.github/workflows/release/versions.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,5 +21,11 @@
2121
"clearedPrefix": true,
2222
"clearedSuffix": false
2323
}
24+
],
25+
"unity-chat/PubnubChatUnity/Assets/PubnubChat/Runtime/UnityChatPNSDKSource.cs": [
26+
{
27+
"pattern": "^\\s{2,}private const string build = \"(v?(\\.?\\d+){2,}([a-zA-Z0-9-]+(\\.?\\d+)?)?)\";",
28+
"cleared": true
29+
}
2430
]
2531
}

.pubnub.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,15 @@
11
---
2-
version: v0.4.4
2+
version: v1.0.0
33
changelog:
4+
- date: 2025-10-02
5+
version: v1.0.0
6+
changes:
7+
- type: feature
8+
text: "Added WebGL build support because of the migration from C-Core to Unity SDK."
9+
- type: improvement
10+
text: "Changed the underlying SDK used by the Chat from C-Core to Unity SDK."
11+
- type: improvement
12+
text: "Added ChatOperationResult and ChatOperationResult<T> as a return types for async network operations with additional debug and error data on potential failure."
413
- date: 2025-05-12
514
version: v0.4.4
615
changes:

0 commit comments

Comments
 (0)