Repository URL to install this package:
Version:
1.3.1 ▾
|
#if UNITY_EDITOR
using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using Fluctio.FluctioSim.EditorUtils.Http;
using IdentityModel.Client;
using IdentityModel.OidcClient;
using JetBrains.Annotations;
using UnityEditor.PackageManager;
namespace Fluctio.FluctioSim.Common.Configuration
{
public static partial class Config
{
#region Package info
// ReSharper disable once ConvertToConstant.Global
#if FLUCTIO_DEBUG
public static readonly bool IsDebug = true;
#else
public static readonly bool IsDebug = false;
#endif
private static readonly Lazy<PackageInfo> LazyPackageInfo =
new(() => PackageInfo.FindForAssembly(Assembly.GetExecutingAssembly()));
public static PackageInfo PackageInfo => LazyPackageInfo.Value;
#endregion
#region Versions
public static readonly Version MujocoVersion =
new(PackageInfo.dependencies.Single(dependency => dependency.name == "org.mujoco.mujoco").version);
public static readonly Version SuggestedPythonVersion = new(3, 10, 11);
public static bool IsPythonVersionSupported(Version version)
{
return version >= new Version(3, 10, 1) && version < new Version(3, 10, 12);
}
#endregion
#region OAuth
public static readonly OidcClientOptions AuthOptions = new()
{
Authority = "https://auth.fluctio.ai/",
ClientId = "Siicq3ICW2UNTAkqZlbPlKZILrQIb13M",
Scope = "openid offline_access profile email fluctio-api",
};
[CanBeNull] public static Parameters AuthLoginParams = new(new Dictionary<string, string>
{
["audience"] = "fluctio-api",
});
public static readonly Func<int?> AuthCallbackPort = PortFinders.FromList(Enumerable.Range(51234, 20));
public static readonly Uri ApiBaseUrl = new("https://api.fluctio.ai/");
#endregion
#region Folder guids
public static string PrefabsFolderGuid = "e86b88b7dc70abf40b3ec52c5f1b489a";
public static string IconsFolderGuid = "30850910cd8d30c438e25adb6ce5ce9b";
public static string PhysicsMaterialsFolderGuid = "92fc3b70a4d9bbb4e8fe58cc4bc1b236";
#endregion
}
}
#endif