41 lines
1.9 KiB
C#
41 lines
1.9 KiB
C#
// ─────────────────────────────────────────────────────────────────────────────
|
|
// ManagedPolicyEndpointConfig.cs
|
|
//
|
|
// Edit the URL constant below before building with the DEV_ENDPOINT scripting
|
|
// define symbol enabled. This file is intentionally separate from
|
|
// ManagedPolicyHandler.cs so you only need to change one simple value.
|
|
//
|
|
// To enable managed-policy support:
|
|
// Unity → Project Settings → Player → Other Settings → Scripting Define Symbols
|
|
// Add "DEV_ENDPOINT" (no quotes) and rebuild.
|
|
// ─────────────────────────────────────────────────────────────────────────────
|
|
|
|
#if DEV_ENDPOINT
|
|
namespace QuestAppLauncher
|
|
{
|
|
public static partial class ManagedPolicyHandler
|
|
{
|
|
/// <summary>
|
|
/// The HTTP(S) URL that is contacted on startup to retrieve managed policies.
|
|
/// Change this value before building and then add the DEV_ENDPOINT scripting
|
|
/// define symbol to your Unity Player Settings.
|
|
///
|
|
/// <para>Expected JSON response from the endpoint:</para>
|
|
/// <code>
|
|
/// {
|
|
/// "version": 1,
|
|
/// "hiddenApps": ["com.example.app1", "com.example.app2"],
|
|
/// "wallpaperUrl": "https://example.com/wallpaper.jpg",
|
|
/// "disableSettings": false,
|
|
/// "appNames": {
|
|
/// "com.example.app1": { "name": "Friendly Name", "category": "Education" }
|
|
/// }
|
|
/// }
|
|
/// </code>
|
|
/// All fields except <c>version</c> are optional.
|
|
/// </summary>
|
|
private const string EndpointUrl = "https://your-mdm-endpoint.example.com/policies";
|
|
}
|
|
}
|
|
#endif
|