// ───────────────────────────────────────────────────────────────────────────── // 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 { /// /// 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. /// /// Expected JSON response from the endpoint: /// /// { /// "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" } /// } /// } /// /// All fields except version are optional. /// private const string EndpointUrl = "https://your-mdm-endpoint.example.com/policies"; } } #endif