Skip to content

Commit

Permalink
Updated from pipeline, Version : 25.5.1
Browse files Browse the repository at this point in the history
  • Loading branch information
AccelByte-Build committed Jun 5, 2024
1 parent e036a0d commit f5ede07
Show file tree
Hide file tree
Showing 17 changed files with 568 additions and 206 deletions.
13 changes: 6 additions & 7 deletions .variables
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
export DO_UPDATE=true
export LEVEL=CRITICAL
export REPO_NAME=justice-unreal-sdk-plugin
export WORKDIR=/tmp/pipelines/6915079927/1301229164/
export COMMIT_HASH=0fb03b7b5ca4fe075a087b327a432a3656fe47a7
export GIT_HASH=0fb03b7b5ca4fe075a087b327a432a3656fe47a7
export VERSION=25.5.0
export REVISION_ID=25.5.0
export WORKDIR=/tmp/pipelines/7027580338/1319821720/
export COMMIT_HASH=1f023f3896a54342c65a833389ac63aad67eabdb
export GIT_HASH=1f023f3896a54342c65a833389ac63aad67eabdb
export VERSION=25.5.1
export REVISION_ID=25.5.1
export [email protected]
export COMMIT_MESSAGE_BASE64='Y2hvcmUocmVsZWFzZSk6IDI1LjUuMCAtIGNvbW1pdGVkIGFuZCB0YWdnZWQgYnkgSmVua2luc2Fnc1ZlcnNpb246IjMuNzQuMCIKCg=='
export COMMIT_MESSAGE_BASE64='Y2hvcmUocmVsZWFzZSk6IDI1LjUuMSAtIGNvbW1pdGVkIGFuZCB0YWdnZWQgYnkgSmVua2lucwo='
4 changes: 2 additions & 2 deletions AccelByteUe4Sdk.uplugin
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"FileVersion": 3,
"Version": 68,
"VersionName": "25.5.0",
"Version": 69,
"VersionName": "25.5.1",
"FriendlyName": "AccelByte Unreal Engine SDK",
"Description": "Official AccelByte SDK for Unreal Engine 4",
"Category": "Online Platform",
Expand Down
17 changes: 17 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,23 @@

All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.

### [25.5.1](https://bitbucket.org/accelbyte/justice-unreal-sdk-plugin/branches/compare/25.5.1%0D25.5.0) (2024-06-05)


### Features

* add new request header to identify DS based on its ID during Server Authentication ([4e4bc56](https://bitbucket.org/accelbyte/justice-unreal-sdk-plugin/commits/4e4bc567bc216264aa88e208c0e68ad8fb34feb3))
* **NewProfanityFilter:** add new endpoint for validate user input ([a2db017](https://bitbucket.org/accelbyte/justice-unreal-sdk-plugin/commits/a2db01776c7ecaf9a3ede253eb6d17f603b081f8))
* **user:** add logout api and deprecate revoke api ([fb3a7b5](https://bitbucket.org/accelbyte/justice-unreal-sdk-plugin/commits/fb3a7b5cec7b30242b62f17ea119107d0202abe3))


### Bug Fixes

* add missing Flight ID and additional information to the request headers for Login APIs ([160723f](https://bitbucket.org/accelbyte/justice-unreal-sdk-plugin/commits/160723f1464e937c17819eb833b58ca87a1d75ec))
* **challenge:** update goal progress requirement model ([daa76d8](https://bitbucket.org/accelbyte/justice-unreal-sdk-plugin/commits/daa76d8c5d765b1eea80648d1f52848027b0399d))
* fix unreachable code on shipping build ([a22c943](https://bitbucket.org/accelbyte/justice-unreal-sdk-plugin/commits/a22c94358782bb26b28024e2f7776f0377bbc5be))
* skip http flush if shutdown called in game thread and engine exit is not requested ([4788c38](https://bitbucket.org/accelbyte/justice-unreal-sdk-plugin/commits/4788c3887c4006811016498ae4ca41feb1bdff86))

## [25.5.0](https://bitbucket.org/accelbyte/justice-unreal-sdk-plugin/branches/compare/25.5.0%0D25.4.1) (2024-05-22)


Expand Down
14 changes: 14 additions & 0 deletions Source/AccelByteUe4Sdk/Private/Api/AccelByteLobbyApi.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2018,25 +2018,33 @@ void Lobby::UnbindChatResponseEvents()

void Lobby::UnbindBlockNotifEvents()
{
FReport::Log(FString(__FUNCTION__));

BlockPlayerNotif.Unbind();
UnblockPlayerNotif.Unbind();
}

void Lobby::UnbindBlockResponseEvents()
{
FReport::Log(FString(__FUNCTION__));

OnBlockPlayerError.Unbind();
OnUnblockPlayerError.Unbind();
}

void Lobby::UnbindSessionAttributeEvents()
{
FReport::Log(FString(__FUNCTION__));

OnGetSessionAttributeError.Unbind();
OnSetSessionAttributeError.Unbind();
OnGetAllSessionAttributeError.Unbind();
}

void Lobby::UnbindV2PartyEvents()
{
FReport::Log(FString(__FUNCTION__));

V2PartyInvitedNotif.Unbind();
V2PartyInviteTimeoutNotif.Unbind();
V2PartyJoinedNotif.Unbind();
Expand All @@ -2048,6 +2056,8 @@ void Lobby::UnbindV2PartyEvents()

void Lobby::UnbindV2GameSessionEvents()
{
FReport::Log(FString(__FUNCTION__));

V2GameSessionInvitedNotif.Unbind();
V2GameSessionInviteTimeoutNotif.Unbind();
V2GameSessionJoinedNotif.Unbind();
Expand All @@ -2061,11 +2071,15 @@ void Lobby::UnbindV2GameSessionEvents()

void Lobby::UnbindV2SessionGeneralEvents()
{
FReport::Log(FString(__FUNCTION__));

V2SessionStorageChangedNotif.Unbind();
}

void Lobby::UnbindV2MatchmakingEvents()
{
FReport::Log(FString(__FUNCTION__));

V2MatchmakingMatchFoundNotif.Unbind();
V2MatchmakingExpiredNotif.Unbind();
V2MatchmakingStartNotif.Unbind();
Expand Down
46 changes: 46 additions & 0 deletions Source/AccelByteUe4Sdk/Private/Api/AccelByteUserApi.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1273,6 +1273,8 @@ FAccelByteTaskWPtr User::Logout(FVoidHandler const& OnSuccess
, FErrorHandler const& OnError)
{
FReport::Log(FString(__FUNCTION__));
FReport::LogDeprecated(FString(__FUNCTION__),
TEXT("Logout by directly revoking token is deprecated, please use LogoutV3."));

return Oauth2::RevokeToken(UserCredentialsRef->GetOAuthClientId()
, UserCredentialsRef->GetOAuthClientSecret()
Expand All @@ -1289,6 +1291,26 @@ FAccelByteTaskWPtr User::Logout(FVoidHandler const& OnSuccess
, SettingsRef.IamServerUrl);
}

FAccelByteTaskWPtr User::LogoutV3(FVoidHandler const& OnSuccess, FErrorHandler const& OnError)
{
FReport::Log(FString(__FUNCTION__));

const FString Url = FString::Printf(TEXT("%s/v3/logout") , *SettingsRef.IamServerUrl);

TMap<FString, FString> Headers = {
{TEXT("Accept"), TEXT("application/json")},
{TEXT("Authorization"), FString::Printf(TEXT("Bearer %s"), *CredentialsRef->GetAccessToken())}
};

return HttpClient.Request(TEXT("POST"), Url, FString(), Headers, FVoidHandler::CreateLambda(
[OnSuccess, this]()
{
UserCredentialsRef->OnLogoutSuccess().Broadcast();
UserCredentialsRef->ForgetAll();
OnSuccess.ExecuteIfBound();
}), OnError);
}

void User::ForgetAllCredentials()
{
FReport::Log(FString(__FUNCTION__));
Expand Down Expand Up @@ -2323,6 +2345,30 @@ FAccelByteTaskWPtr User::GetInputValidations(FString const& LanguageCode

return HttpClient.Request(TEXT("GET"), Url, QueryParams, Headers, OnSuccess, OnError);
}

FAccelByteTaskWPtr User::ValidateUserInput(FUserInputValidationRequest const& UserInputValidationRequest
, THandler<FUserInputValidationResponse> const& OnSuccess
, FErrorHandler const& OnError)
{
FReport::Log(FString(__FUNCTION__));

const FString Url = FString::Printf(TEXT("%s/v3/public/namespaces/%s/users/input/validation")
, *SettingsRef.IamServerUrl
, *SettingsRef.Namespace);

const TMap<FString, FString> Headers = {
{TEXT("Content-Type"), TEXT("application/json")},
{TEXT("Accept"), TEXT("application/json")}
};

FString Content;
const TSharedPtr<FJsonObject> Json = FJsonObjectConverter::UStructToJsonObject(UserInputValidationRequest);
FAccelByteUtilities::RemoveEmptyFieldsFromJson(Json);
TSharedRef<TJsonWriter<>> const Writer = TJsonWriterFactory<>::Create(&Content);
FJsonSerializer::Serialize(Json.ToSharedRef(), Writer);

return HttpClient.Request(TEXT("POST"), Url, Content, Headers, OnSuccess, OnError);
}

FAccelByteTaskWPtr User::Enable2FaBackupCode(THandler<FUser2FaBackupCode> const& OnSuccess
, FErrorHandler const& OnError)
Expand Down
17 changes: 17 additions & 0 deletions Source/AccelByteUe4Sdk/Private/Blueprints/ABUser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -984,4 +984,21 @@ void UABUser::GetUserOtherPlatformBasicPublicInfo(const FPlatformAccountInfoRequ
}));
}

void UABUser::ValidateUserInput(FUserInputValidationRequest const& UserInputValidationRequest
, FDUserInputValidationResponse OnSuccess
, FDErrorHandler OnError)
{
ApiClientPtr->User.ValidateUserInput(UserInputValidationRequest
, THandler<FUserInputValidationResponse>::CreateLambda(
[OnSuccess](FUserInputValidationResponse const& Response)
{
OnSuccess.ExecuteIfBound(Response);
})
, FErrorHandler::CreateLambda(
[OnError](int Code, FString const& Message)
{
OnError.ExecuteIfBound(Code, Message);
}));
}

#pragma endregion
Original file line number Diff line number Diff line change
Expand Up @@ -321,6 +321,13 @@ void FHttpRetryScheduler::Shutdown()
// flush http requests
if (!TaskQueue.IsEmpty())
{
// Don't flush if we're on the game thread, and we're not exiting, as it causes stutters.
if (IsInGameThread() && !IsEngineExitRequested())
{
TaskQueue.Empty();
return;
}

double MaxFlushTimeSeconds = -1.0;
GConfig->GetDouble(TEXT("HTTP"), TEXT("MaxFlushTimeSeconds"), MaxFlushTimeSeconds, GEngineIni);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ namespace AccelByte
{
#if !UE_EDITOR && !UE_BUILD_DEVELOPMENT
return false;
#endif
#else
if(!bEnabled)
{
return false;
Expand All @@ -119,6 +119,7 @@ namespace AccelByte
}

return bShouldFail;
#endif
}

void FAccelByteNetworkConditioner::SetRandomSeed(const int32 Seed)
Expand Down
Loading

0 comments on commit f5ede07

Please sign in to comment.