Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

release v0.1.4 #25

Merged
merged 6 commits into from
Sep 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions .pubnub.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,16 @@ version: 0.1.0
schema: 1
scm: github.com/pubnub/unreal-engine
changelog:
- date: 2024-09-16
version: 0.1.4
changes:
- type: feature
text: "Add proper MacOS static library"
- date: 2024-09-13
version: 0.1.3
changes:
- type: feature
text: "fixes custom version of the C-core library"
- date: 2024-09-11
version: 0.1.2
changes:
Expand Down
4 changes: 2 additions & 2 deletions PubnubLibrary.uplugin
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"FileVersion": 3,
"Version": 4,
"VersionName": "0.1.3",
"Version": 5,
"VersionName": "0.1.4",
"FriendlyName": "Pubnub Unreal SDK",
"Description": "Quickly add interactive features to your game that scale without building your backend infrastructure.",
"Category": "Code",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,13 @@


#include "Threads/PubnubFunctionThread.h"
#if PLATFORM_WINDOWS
#include "Windows/WindowsPlatformProcess.h"
#elif PLATFORM_MAC
#include "Mac/MacPlatformProcess.h"
#else
#error "Platform not supported"
#endif


bool FPubnubFunctionThread::Init()
Expand Down Expand Up @@ -56,4 +62,4 @@ void FPubnubFunctionThread::AddFunctionToQueue(TFunction<void()> InFunction)
Mutex.Lock();
PubnubAsyncFunctionsBuffer.Add(InFunction);
Mutex.Unlock();
}
}
7 changes: 7 additions & 0 deletions Source/PubnubLibrary/Private/Threads/PubnubLoopingThread.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,14 @@


#include "Threads/PubnubLoopingThread.h"
#if PLATFORM_WINDOWS
#include "Windows/WindowsPlatformProcess.h"
#elif PLATFORM_MAC
#include "Mac/MacPlatformProcess.h"
#else
#error "Platform not supported"
#endif



bool FPubnubLoopingThread::Init()
Expand Down
5 changes: 3 additions & 2 deletions Source/ThirdParty/sdk/PubNubModule/PubNubModule.Build.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,17 +16,20 @@ public PubNubModule(ReadOnlyTargetRules Target) : base(Target)
string extention = null;
string PlatformLib = null;
string binary = null;
string BuildLocation = null;
if(Target.Platform == UnrealTargetPlatform.Win64)
{
extention = StaticLink ? "lib" : "dll";
PlatformLib = OpenSsl ? "openssl" : "windows";
binary = $"pubnub.{extention}";
BuildLocation = "Lib/win64";
}
else if(Target.Platform == UnrealTargetPlatform.Mac)
{
extention = StaticLink ? "a" : "dylib";
PlatformLib = OpenSsl ? "openssl" : "posix";
binary = $"libpubnub.{extention}";
BuildLocation = "Lib/MacOS";
}
else
{
Expand All @@ -41,8 +44,6 @@ public PubNubModule(ReadOnlyTargetRules Target) : base(Target)

var SDKPath = Path.Combine(new string[] { ModuleDirectory, ".." });

//TODO: Read library location depending on platform
string BuildLocation = "Lib/win64";


PublicAdditionalLibraries.Add(Path.Combine(SDKPath, BuildLocation, binary));
Expand Down
Binary file added Source/ThirdParty/sdk/lib/MacOS/libpubnub.a
Binary file not shown.
Loading