diff --git a/Source/PubnubLibrary/Private/FunctionLibraries/PubnubUtilities.cpp b/Source/PubnubLibrary/Private/FunctionLibraries/PubnubUtilities.cpp index ba22a96..19625ad 100644 --- a/Source/PubnubLibrary/Private/FunctionLibraries/PubnubUtilities.cpp +++ b/Source/PubnubLibrary/Private/FunctionLibraries/PubnubUtilities.cpp @@ -2,6 +2,7 @@ #include "FunctionLibraries/PubnubUtilities.h" +#include "Runtime/Launch/Resources/Version.h" #include "Json.h" @@ -22,5 +23,10 @@ FString UPubnubUtilities::PubnubCharMemBlockToString(const pubnub_char_mem_block return ""; } +#if ENGINE_MINOR_VERSION <= 3 + //This constructor is deprecated since 5.4 + return FString(PnChar.size, PnChar.ptr); +#else return FString::ConstructFromPtrSize(PnChar.ptr, PnChar.size); +#endif } \ No newline at end of file diff --git a/Source/ThirdParty/sdk/lib/arm64/libpubnub.a b/Source/ThirdParty/sdk/lib/arm64/libpubnub.a index cf59190..40fdfc5 100644 Binary files a/Source/ThirdParty/sdk/lib/arm64/libpubnub.a and b/Source/ThirdParty/sdk/lib/arm64/libpubnub.a differ