Skip to content

Commit

Permalink
Feat: camera reel - passport integration (#2962)
Browse files Browse the repository at this point in the history
  • Loading branch information
lorenzo-ranciaffi authored Dec 16, 2024
1 parent aea01e8 commit 349917c
Show file tree
Hide file tree
Showing 61 changed files with 2,345 additions and 573 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,11 +47,6 @@ MonoBehaviour:
m_ReadOnly: 0
m_SerializedLabels: []
FlaggedDuringContentUpdateRestriction: 0
- m_GUID: 183d02953ce77467786739e7cfb2d766
m_Address: Assets/DCL/InWorldCamera/PhotoDetail/Assets/PhotoDetailUI.prefab
m_ReadOnly: 0
m_SerializedLabels: []
FlaggedDuringContentUpdateRestriction: 0
- m_GUID: 19373184c73f36042a55739551bb8298
m_Address: Avatar_CelShading
m_ReadOnly: 0
Expand All @@ -77,6 +72,11 @@ MonoBehaviour:
m_ReadOnly: 0
m_SerializedLabels: []
FlaggedDuringContentUpdateRestriction: 0
- m_GUID: 26a5616becdfd49b4abfbee07ba3cbf2
m_Address: Assets/DCL/InWorldCamera/PhotoDetail/Prefabs/PhotoDetailUI.prefab
m_ReadOnly: 0
m_SerializedLabels: []
FlaggedDuringContentUpdateRestriction: 0
- m_GUID: 2a58c49334237a24781cae8b1e3fa351
m_Address: EmbeddedEmotes
m_ReadOnly: 0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ public enum DecentralandUrl

CameraReelUsers,
CameraReelImages,
CameraReelPlaces,
CameraReelLink,
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,15 @@ public class DecentralandUrlsSource : IDecentralandUrlsSource
private readonly Dictionary<DecentralandUrl, string> cache = new ();
private readonly string environmentDomainLowerCase;
private readonly bool isLocalSceneDevelopment;


public string DecentralandDomain => environmentDomainLowerCase;

public DecentralandUrlsSource(DecentralandEnvironment environment, bool isLocalSceneDevelopment = false)
{
environmentDomainLowerCase = environment.ToString()!.ToLower();
this.isLocalSceneDevelopment = isLocalSceneDevelopment;

switch (environment)
{
case DecentralandEnvironment.Org:
Expand Down Expand Up @@ -100,6 +100,7 @@ private static string RawUrl(DecentralandUrl decentralandUrl) =>
DecentralandUrl.Badges => $"https://badges.decentraland.{ENV}",
DecentralandUrl.CameraReelUsers => $"https://camera-reel-service.decentraland.{ENV}/api/users",
DecentralandUrl.CameraReelImages => $"https://camera-reel-service.decentraland.{ENV}/api/images",
DecentralandUrl.CameraReelPlaces => $"https://camera-reel-service.decentraland.{ENV}/api/places",
DecentralandUrl.CameraReelLink => $"https://reels.decentraland.{ENV}",
_ => throw new ArgumentOutOfRangeException(nameof(decentralandUrl), decentralandUrl, null!)
};
Expand Down
Loading

0 comments on commit 349917c

Please sign in to comment.