Skip to content

Commit c47dfbd

Browse files
committed
Merge branch 'main' into features/webgl-metamask
2 parents 79bdb13 + 31f7183 commit c47dfbd

19 files changed

+10
-11454
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525

2626
# Visual Studio cache directory
2727
.vs/
28+
.vscode/
2829

2930
# Gradle cache directory
3031
.gradle/

Assembly-CSharp-Editor.csproj

Lines changed: 0 additions & 812 deletions
This file was deleted.

Assembly-CSharp.Player.csproj

Lines changed: 0 additions & 1976 deletions
This file was deleted.

Assembly-CSharp.csproj

Lines changed: 0 additions & 2010 deletions
This file was deleted.

Assets/MoralisWeb3ApiSdk/Moralis/Moralis.WebGL/MoralisDotNet/Platform/EnvironmentData.cs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
using System;
2-
using System.Runtime.InteropServices;
32
using Moralis.WebGL.Platform.Abstractions;
43

54
namespace Moralis.WebGL.Platform
@@ -15,8 +14,8 @@ public class EnvironmentData : IEnvironmentData
1514
public static EnvironmentData Inferred => new EnvironmentData
1615
{
1716
TimeZone = TimeZoneInfo.Local.StandardName,
18-
OSVersion = RuntimeInformation.OSDescription != null ? RuntimeInformation.OSDescription : Environment.OSVersion.ToString(),
19-
Platform = RuntimeInformation.FrameworkDescription != null ? RuntimeInformation.FrameworkDescription : ".NET"
17+
OSVersion = "unknown", // WebGL doesn't know the OS
18+
Platform = ".NET"
2019
};
2120

2221
/// <summary>

Assets/MoralisWeb3ApiSdk/MoralisController.cs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,13 @@ public class MoralisController : MonoBehaviour
5555
public string ApplicationUrl;
5656

5757
public WalletConnect walletConnect;
58-
58+
private void OnValidate()
59+
{
60+
if (MoralisServerURI == "SERVER URI" || string.IsNullOrWhiteSpace(MoralisServerURI) || MoralisApplicationId == "APPLICATION ID" || string.IsNullOrWhiteSpace(MoralisApplicationId))
61+
{
62+
Debug.LogError("Setup your Moralis Server URI and Application Id before running. For more help read the Quick Start on: https://github.com/ethereum-boilerplate/ethereum-unity-boilerplate#-quick-start");
63+
}
64+
}
5965

6066
#if UNITY_WEBGL
6167
public async UniTask Initialize()

LeanCommon.Player.csproj

Lines changed: 0 additions & 661 deletions
This file was deleted.

LeanCommon.csproj

Lines changed: 0 additions & 727 deletions
This file was deleted.

LeanGUI.Player.csproj

Lines changed: 0 additions & 674 deletions
This file was deleted.

LeanGUI.csproj

Lines changed: 0 additions & 740 deletions
This file was deleted.

0 commit comments

Comments
 (0)