Skip to content

Commit ff8d445

Browse files
authored
Merge pull request #6405 from decentraland/release/2025-12-10
release: 2025-12-10
2 parents 7072544 + 3636486 commit ff8d445

311 files changed

Lines changed: 13604 additions & 3173 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

Explorer/Assets/AddressableAssetsData/AssetGroups/Essentials.asset

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,11 @@ MonoBehaviour:
1515
m_GroupName: Essentials
1616
m_GUID: 47f803e1e9c5079449bd106df98a0b7d
1717
m_SerializeEntries:
18+
- m_GUID: 000895e935900fa43b53faf506ee15fa
19+
m_Address: Assets/DCL/AvatarRendering/Emotes/SocialEmotesSettings.asset
20+
m_ReadOnly: 0
21+
m_SerializedLabels: []
22+
FlaggedDuringContentUpdateRestriction: 0
1823
- m_GUID: 00657accebbe6c348b5208e385e5ec73
1924
m_Address: Assets/DCL/AvatarRendering/AvatarShape/Assets/Avatar_Facial_Features.mat
2025
m_ReadOnly: 0
@@ -140,6 +145,11 @@ MonoBehaviour:
140145
m_ReadOnly: 0
141146
m_SerializedLabels: []
142147
FlaggedDuringContentUpdateRestriction: 0
148+
- m_GUID: 79f752bc43a65384bab431cb6a44d8bd
149+
m_Address: Assets/DCL/AvatarRendering/Emotes/UI/SocialEmoteOutcomesContextMenuSettings.asset
150+
m_ReadOnly: 0
151+
m_SerializedLabels: []
152+
FlaggedDuringContentUpdateRestriction: 0
143153
- m_GUID: 7f09a2d0d9adc4e43b67879ab9cdf360
144154
m_Address: LightSourcePrefab
145155
m_ReadOnly: 0

Explorer/Assets/AddressableAssetsData/AssetGroups/Localization-Assets-English (en).asset

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,12 @@ MonoBehaviour:
9393
m_SerializedLabels:
9494
- Locale-en
9595
FlaggedDuringContentUpdateRestriction: 0
96+
- m_GUID: f1aad3eec061f4269aa7811d2c37283e
97+
m_Address: FestiveTrail_LoadingScreen
98+
m_ReadOnly: 1
99+
m_SerializedLabels:
100+
- Locale-en
101+
FlaggedDuringContentUpdateRestriction: 0
96102
m_ReadOnly: 1
97103
m_Settings: {fileID: 11400000, guid: fc8a9d2b539788c47a5b305639fa8b34, type: 2}
98104
m_SchemaSet:

Explorer/Assets/AddressableAssetsData/AssetGroups/UI.asset

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -565,6 +565,11 @@ MonoBehaviour:
565565
m_ReadOnly: 0
566566
m_SerializedLabels: []
567567
FlaggedDuringContentUpdateRestriction: 0
568+
- m_GUID: a0f8bf40b1a14c54384029def9ea0582
569+
m_Address: SocialEmotePin
570+
m_ReadOnly: 0
571+
m_SerializedLabels: []
572+
FlaggedDuringContentUpdateRestriction: 0
568573
- m_GUID: a1d5d4f99234041159f0c215eef3eff3
569574
m_Address: NewNotificationPanel
570575
m_ReadOnly: 0

Explorer/Assets/DCL/AssetsProvision/CodeResolver/JsCodeResolver.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
using AssetManagement;
22
using CommunicationData.URLHelpers;
33
using Cysharp.Threading.Tasks;
4+
using DCL.Utility.Types;
45
using DCL.WebRequests;
56
using System.Collections.Generic;
67
using System.Threading;
8+
using DownloadedCodeContent = UnityEngine.Networking.DownloadHandler;
79

810
namespace DCL.AssetsProvision.CodeResolver
911
{
@@ -19,7 +21,8 @@ public JsCodeResolver(IWebRequestController webRequestController)
1921
};
2022
}
2123

22-
public UniTask<string> GetCodeContent(URLAddress contentUrl, CancellationToken ct) =>
24+
public UniTask<Result<DownloadedCodeContent>> GetCodeContent(
25+
URLAddress contentUrl, CancellationToken ct) =>
2326
providers[AssetSource.WEB].GetJsCodeAsync(contentUrl, ct);
2427
}
2528
}

Explorer/Assets/DCL/AssetsProvision/CodeResolver/WebJsCodeProvider.cs

Lines changed: 22 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
11
using CommunicationData.URLHelpers;
22
using Cysharp.Threading.Tasks;
33
using DCL.Diagnostics;
4+
using DCL.Utility.Types;
45
using DCL.WebRequests;
6+
using System;
57
using System.Threading;
8+
using DownloadedCodeContent = UnityEngine.Networking.DownloadHandler;
69

710
namespace DCL.AssetsProvision.CodeResolver
811
{
@@ -15,10 +18,26 @@ public WebJsCodeProvider(IWebRequestController webRequestController)
1518
this.webRequestController = webRequestController;
1619
}
1720

18-
public async UniTask<string> GetJsCodeAsync(URLAddress url, CancellationToken cancellationToken = default)
21+
public async UniTask<Result<DownloadedCodeContent>> GetJsCodeAsync(
22+
URLAddress url, CancellationToken cancellationToken = default)
1923
{
20-
string text = await webRequestController.GetAsync(new CommonArguments(url), cancellationToken, ReportCategory.SCENE_LOADING).StoreTextAsync();
21-
return text;
24+
var request = webRequestController.GetAsync(
25+
new CommonArguments(url), cancellationToken,
26+
ReportCategory.SCENE_LOADING);
27+
28+
string? contentType = await request.GetResponseHeaderAsync(
29+
"Content-Type");
30+
31+
if (contentType != null
32+
&& contentType.Contains("charset",
33+
StringComparison.InvariantCultureIgnoreCase)
34+
&& !contentType.Contains("utf-8",
35+
StringComparison.InvariantCultureIgnoreCase))
36+
return Result<DownloadedCodeContent>.ErrorResult(
37+
$"Can't handle content type {contentType}");
38+
39+
return Result<DownloadedCodeContent>.SuccessResult(
40+
await request.ExposeDownloadHandlerAsync());
2241
}
2342
}
2443
}

0 commit comments

Comments
 (0)