Skip to content

Commit 8fd1446

Browse files
Updated from pipeline, Version : 12.2.0
1 parent b6dbf91 commit 8fd1446

25 files changed

+468
-82
lines changed

.variables

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
1+
export DO_UPDATE=true
12
export LEVEL=CRITICAL
23
export REPO_NAME=justice-unreal-sdk-plugin
3-
export WORKDIR=/tmp/pipelines/2525910796/551879339/
4-
export COMMIT_HASH=00301f87262a9538b4981b1d57ff604edc7c12fb
5-
export GIT_HASH=00301f87262a9538b4981b1d57ff604edc7c12fb
6-
export VERSION=12.1.2
7-
export REVISION_ID=12.1.2
4+
export WORKDIR=/tmp/pipelines/2548961204/556205868/
5+
export COMMIT_HASH=e55bd23c43981d22239b43bf2a85e05aa509c0bf
6+
export GIT_HASH=e55bd23c43981d22239b43bf2a85e05aa509c0bf
7+
export VERSION=12.2.0
8+
export REVISION_ID=12.2.0
89
9-
export COMMIT_MESSAGE_BASE64='Y2hvcmUocmVsZWFzZSk6IDEyLjEuMiAtIGNvbW1pdGVkIGFuZCB0YWdnZWQgYnkgSmVua2lucwo='
10+
export COMMIT_MESSAGE_BASE64='Y2hvcmUocmVsZWFzZSk6IDEyLjIuMCAtIGNvbW1pdGVkIGFuZCB0YWdnZWQgYnkgSmVua2lucwo='

CHANGELOG.md

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,33 @@
22

33
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.
44

5+
## [12.2.0](https://bitbucket.org/accelbyte/justice-unreal-sdk-plugin/branches/compare/12.2.0%0D12.1.2) (2022-06-06)
6+
7+
8+
### Features
9+
10+
* **iam:** Account linking handling ([3bd4bb7](https://bitbucket.org/accelbyte/justice-unreal-sdk-plugin/commits/3bd4bb78bfbd794413e7d5710db5606f50b2a7ef))
11+
* **iam:** Include platformUserIds field when bulk gets users' basic info ([9bcf223](https://bitbucket.org/accelbyte/justice-unreal-sdk-plugin/commits/9bcf22340432a9c88b06a248c540b735cc518927))
12+
* **iam:** Need an adjustment to the SDK for the updated Public Search User V3 API, adding offset and limit. ([7609c93](https://bitbucket.org/accelbyte/justice-unreal-sdk-plugin/commits/7609c93c04597faca6b19e7b26b6b6db9ba275f0))
13+
* **lobby:** implement add friend with public id ([9dc358e](https://bitbucket.org/accelbyte/justice-unreal-sdk-plugin/commits/9dc358e0e53154285079ebf2ba0a2b9aab77b77b))
14+
* **lobby:** implement set party size limit ([80fa3d0](https://bitbucket.org/accelbyte/justice-unreal-sdk-plugin/commits/80fa3d04d2ccc19f1e96ef433ccf3011a52a5302))
15+
16+
17+
### Bug Fixes
18+
19+
* **blueprint:** missing Group blueprint object initialization in the ApiClient Blueprint ([a71e5ad](https://bitbucket.org/accelbyte/justice-unreal-sdk-plugin/commits/a71e5adc3f88ddc398a7d329ba8c2de0767680fa))
20+
* **blueprints:** resolve conflict for hotfix 12.1.1 ([8462e83](https://bitbucket.org/accelbyte/justice-unreal-sdk-plugin/commits/8462e8328f5cde82cfa694d02ef3bac97a8214fa))
21+
* Fix ambiguous function overloads ([c988024](https://bitbucket.org/accelbyte/justice-unreal-sdk-plugin/commits/c98802461cd005779d22b3450020eaf97a28873a))
22+
* remove pragma once from cpp files ([20ead97](https://bitbucket.org/accelbyte/justice-unreal-sdk-plugin/commits/20ead97b32b434017a7f6f2b8a99e15cb4c6b41d))
23+
* **test:** add wait 60s for lobby to refresh mm game mode cache ([b504617](https://bitbucket.org/accelbyte/justice-unreal-sdk-plugin/commits/b5046170711241be6ec3632c3e9468832c8ff9d6))
24+
* **websocket:** properly clean up websocket object on destroy ([ba56887](https://bitbucket.org/accelbyte/justice-unreal-sdk-plugin/commits/ba568873f6b2827dab83ac0eae93ae71172e855b))
25+
26+
27+
### Tests
28+
29+
* **lobby:** commented lobby channel chat tests ([b40d5e4](https://bitbucket.org/accelbyte/justice-unreal-sdk-plugin/commits/b40d5e4097036c92854f7d24fdd865bb75608d11))
30+
* **reporting:** make exception if objectId was empty and use dummy objectId following the UUID v4 without hyphen format ([a70a3f4](https://bitbucket.org/accelbyte/justice-unreal-sdk-plugin/commits/a70a3f48453023121b93df280539741b8a990239))
31+
532
### [12.1.2](https://bitbucket.org/accelbyte/justice-unreal-sdk-plugin/branches/compare/12.1.2%0D12.1.1) (2022-05-31)
633

734

Content/CompatibilityMap.json

Lines changed: 26 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,58 +1,58 @@
11
{
22
"iam": {
3-
"minVersion": "5.9.0",
4-
"maxVersion": "5.9.0"
3+
"minVersion": "5.10.0",
4+
"maxVersion": "5.10.0"
55
},
66
"agreement": {
77
"minVersion": "1.22.2",
88
"maxVersion": "1.22.2"
99
},
1010
"basic": {
11-
"minVersion": "1.36.2",
12-
"maxVersion": "1.36.2"
11+
"minVersion": "1.36.3",
12+
"maxVersion": "1.36.3"
1313
},
1414
"platform": {
15-
"minVersion": "4.9.0",
16-
"maxVersion": "4.9.0"
15+
"minVersion": "4.10.0",
16+
"maxVersion": "4.10.0"
1717
},
1818
"social": {
19-
"minVersion": "1.29.1",
20-
"maxVersion": "1.29.1"
19+
"minVersion": "1.29.2",
20+
"maxVersion": "1.29.2"
2121
},
2222
"leaderboard": {
23-
"minVersion": "2.15.4",
24-
"maxVersion": "2.15.4"
23+
"minVersion": "2.15.5",
24+
"maxVersion": "2.15.5"
2525
},
2626
"achievement": {
27-
"minVersion": "2.10.5",
28-
"maxVersion": "2.10.5"
27+
"minVersion": "2.10.6",
28+
"maxVersion": "2.10.6"
2929
},
3030
"cloudsave": {
31-
"minVersion": "3.0.0",
32-
"maxVersion": "3.0.0"
31+
"minVersion": "3.0.1",
32+
"maxVersion": "3.0.1"
3333
},
3434
"ugc": {
35-
"minVersion": "2.0.0",
36-
"maxVersion": "2.0.0"
35+
"minVersion": "2.1.0",
36+
"maxVersion": "2.1.0"
3737
},
3838
"lobby": {
39-
"minVersion": "3.9.0",
40-
"maxVersion": "3.9.0"
39+
"minVersion": "3.10.0",
40+
"maxVersion": "3.10.0"
4141
},
4242
"group": {
43-
"minVersion": "2.11.4",
44-
"maxVersion": "2.11.4"
43+
"minVersion": "2.11.5",
44+
"maxVersion": "2.11.5"
4545
},
4646
"qosm": {
47-
"minVersion": "1.13.3",
48-
"maxVersion": "1.13.3"
47+
"minVersion": "1.14.0",
48+
"maxVersion": "1.14.0"
4949
},
5050
"dsmcontroller": {
51-
"minVersion": "3.1.1",
52-
"maxVersion": "3.1.1"
51+
"minVersion": "3.2.0",
52+
"maxVersion": "3.2.0"
5353
},
5454
"game-telemetry": {
55-
"minVersion": "1.7.0",
56-
"maxVersion": "1.7.0"
55+
"minVersion": "1.7.1",
56+
"maxVersion": "1.7.1"
5757
}
5858
}

Source/AccelByteUe4Sdk/Private/Api/AccelByteLobbyApi.cpp

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ namespace Api
6161

6262
// Friends
6363
const FString RequestFriends = TEXT("requestFriendsRequest");
64+
const FString RequestFriendsByPublicId = TEXT("requestFriendsByPublicIDRequest");
6465
const FString Unfriend = TEXT("unfriendRequest");
6566
const FString ListOutgoingFriends = TEXT("listOutgoingFriendsRequest");
6667
const FString CancelFriends = TEXT("cancelFriendsRequest");
@@ -146,6 +147,7 @@ namespace Api
146147

147148
// Friends
148149
const FString RequestFriends = TEXT("requestFriendsResponse");
150+
const FString RequestFriendsByPublicId = TEXT("requestFriendsByPublicIDResponse");
149151
const FString Unfriend = TEXT("unfriendResponse");
150152
const FString ListOutgoingFriends = TEXT("listOutgoingFriendsResponse");
151153
const FString CancelFriends = TEXT("cancelFriendsResponse");
@@ -243,6 +245,7 @@ namespace Api
243245

244246
// Friends
245247
RequestFriends,
248+
RequestFriendsByPublicId,
246249
Unfriend,
247250
ListOutgoingFriends,
248251
CancelFriends,
@@ -352,6 +355,7 @@ namespace Api
352355
FORM_STRING_ENUM_PAIR(Response,MatchmakingCancel),
353356
FORM_STRING_ENUM_PAIR(Response,ReadyConsent),
354357
FORM_STRING_ENUM_PAIR(Response,RequestFriends),
358+
FORM_STRING_ENUM_PAIR(Response,RequestFriendsByPublicId),
355359
FORM_STRING_ENUM_PAIR(Response,Unfriend),
356360
FORM_STRING_ENUM_PAIR(Response,ListOutgoingFriends),
357361
FORM_STRING_ENUM_PAIR(Response,CancelFriends),
@@ -639,6 +643,37 @@ FString Lobby::SendPartyPromoteLeaderRequest(const FString& UserId)
639643
, FString::Printf(TEXT("newLeaderUserId: %s\n"), *UserId))
640644
}
641645

646+
void Lobby::SetPartySizeLimit(const FString& PartyId, const int32 Limit, const FVoidHandler& OnSuccess, const FErrorHandler& OnError) const
647+
{
648+
if(Limit <= 0)
649+
{
650+
FReport::Log("Party size limit should be above 0");
651+
return;
652+
}
653+
654+
FString Authorization = FString::Printf(TEXT("Bearer %s"), *CredentialsRef.GetAccessToken());
655+
FString Url = FString::Printf(TEXT("%s/lobby/v1/public/party/namespaces/%s/parties/%s/limit"), *SettingsRef.BaseUrl, *CredentialsRef.GetNamespace(), *PartyId);
656+
FString Verb = TEXT("PUT");
657+
FString ContentType = TEXT("application/json");
658+
FString Accept = TEXT("application/json");
659+
660+
FAccelByteModelsPartySetLimitRequest Content;
661+
Content.Limit = Limit;
662+
663+
FString ContentString;
664+
FJsonObjectConverter::UStructToJsonObjectString(Content, ContentString);
665+
666+
FHttpRequestPtr Request = FHttpModule::Get().CreateRequest();
667+
Request->SetURL(Url);
668+
Request->SetHeader(TEXT("Authorization"), Authorization);
669+
Request->SetVerb(Verb);
670+
Request->SetHeader(TEXT("Content-Type"), ContentType);
671+
Request->SetHeader(TEXT("Accept"), Accept);
672+
Request->SetContentAsString(ContentString);
673+
674+
HttpRef.ProcessRequest(Request, CreateHttpResultHandler(OnSuccess, OnError), FPlatformTime::Seconds());
675+
}
676+
642677
//-------------------------------------------------------------------------------------------------
643678
// Presence
644679
//-------------------------------------------------------------------------------------------------
@@ -876,6 +911,14 @@ void Lobby::RequestFriend(FString UserId)
876911
FString::Printf(TEXT("friendId: %s"), *UserId));
877912
}
878913

914+
void Lobby::RequestFriendByPublicId(FString PublicId)
915+
{
916+
FReport::Log(FString(__FUNCTION__));
917+
918+
SEND_RAW_REQUEST_CACHED_RESPONSE(RequestFriendsByPublicId, Friends,
919+
FString::Printf(TEXT("friendPublicId: %s"), *PublicId));
920+
}
921+
879922
void Lobby::Unfriend(FString UserId)
880923
{
881924
FReport::Log(FString(__FUNCTION__));
@@ -1272,6 +1315,7 @@ void Lobby::UnbindFriendResponseEvents()
12721315
SetUserPresenceResponse.Unbind();
12731316
GetAllFriendsStatusResponse.Unbind();
12741317
RequestFriendsResponse.Unbind();
1318+
RequestFriendsByPublicIdResponse.Unbind();
12751319
UnfriendResponse.Unbind();
12761320
ListOutgoingFriendsResponse.Unbind();
12771321
CancelFriendsResponse.Unbind();
@@ -1751,6 +1795,7 @@ void Lobby::HandleMessageResponse(const FString& ReceivedMessageType, const FStr
17511795
CASE_RESPONSE_MESSAGE_ID_DELEGATE_TYPE(CreateDS , FAccelByteModelsLobbyBaseResponse, FBaseResponse);
17521796
// Friends
17531797
CASE_RESPONSE_MESSAGE_ID(RequestFriends , FAccelByteModelsRequestFriendsResponse);
1798+
CASE_RESPONSE_MESSAGE_ID_DELEGATE_TYPE(RequestFriendsByPublicId , FAccelByteModelsRequestFriendsResponse, FRequestFriendsResponse);
17541799
CASE_RESPONSE_MESSAGE_ID(Unfriend , FAccelByteModelsUnfriendResponse);
17551800
CASE_RESPONSE_MESSAGE_ID(ListOutgoingFriends, FAccelByteModelsListOutgoingFriendsResponse);
17561801
CASE_RESPONSE_MESSAGE_ID(CancelFriends , FAccelByteModelsCancelFriendsResponse);

Source/AccelByteUe4Sdk/Private/Api/AccelByteReportingApi.cpp

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,19 @@ void Reporting::SubmitReport(const FAccelByteModelsReportingSubmitData ReportDat
3535
FString Content;
3636

3737
FJsonObjectConverter::UStructToJsonObjectString(ReportData, Content);
38+
39+
if(ReportData.ObjectId.IsEmpty())
40+
{
41+
OnError.ExecuteIfBound(404, TEXT("ObjectID is Empty, You Should Fill it with UUID v4 without hyphen format"));
42+
return;
43+
}
3844

45+
if(ReportData.ObjectId.Contains("-"))
46+
{
47+
OnError.ExecuteIfBound(404, TEXT("ObjectId doesn't follow the UUID V4 without hyphen format, You Should Fill it with UUID v4 without hyphen format"));
48+
return;
49+
}
50+
3951
FHttpRequestPtr Request = FHttpModule::Get().CreateRequest();
4052
Request->SetURL(Url);
4153
Request->SetHeader(TEXT("Authorization"), Authorization);

0 commit comments

Comments
 (0)