Skip to content

Commit

Permalink
release v0.1.4 (#25)
Browse files Browse the repository at this point in the history
  • Loading branch information
Xavrax authored Sep 25, 2024
1 parent bf5f2b5 commit 9c2ba34
Show file tree
Hide file tree
Showing 6 changed files with 29 additions and 5 deletions.
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.

0 comments on commit 9c2ba34

Please sign in to comment.