Skip to content

Commit

Permalink
post release maintenance (#16)
Browse files Browse the repository at this point in the history
  • Loading branch information
techwritermat authored Aug 14, 2024
1 parent b82c6a2 commit a1763ca
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion PubnubLibrary.uplugin
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"FileVersion": 3,
"Version": 1,
"VersionName": "1.0",
"VersionName": "0.1.0",
"FriendlyName": "PubnubLibrary",
"Description": "",
"Category": "Other",
Expand Down
8 changes: 4 additions & 4 deletions Source/PubnubLibrary/Private/PubnubLibrary.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ void FPubnubLibraryModule::StartupModule()
LibraryPath = FPaths::Combine(*BaseDir, TEXT("Source/ThirdParty/sdk/lib/macos/libpubnub-chat.dylib"));


ChatSDKLibraryHandle = !LibraryPath.IsEmpty() ? FPlatformProcess::GetDllHandle(*LibraryPath) : nullptr;
PubnubLibraryHandle = !LibraryPath.IsEmpty() ? FPlatformProcess::GetDllHandle(*LibraryPath) : nullptr;

if (!ChatSDKLibraryHandle)
if (!PubnubLibraryHandle)
{
FMessageDialog::Open(EAppMsgType::Ok, LOCTEXT("ChatSDKModuleHandle", "Failed to load pubnub third party library"));
}
Expand All @@ -26,8 +26,8 @@ void FPubnubLibraryModule::StartupModule()
void FPubnubLibraryModule::ShutdownModule()
{
#if PLATFORM_MAC
FPlatformProcess::FreeDllHandle(ChatSDKLibraryHandle);
ChatSDKLibraryHandle = nullptr;
FPlatformProcess::FreeDllHandle(PubnubLibraryHandle);
PubnubLibraryHandle = nullptr;
#endif
}

Expand Down
Binary file added Source/ThirdParty/sdk/lib/MacOS/libpubnub.dylib
Binary file not shown.

0 comments on commit a1763ca

Please sign in to comment.