-
Notifications
You must be signed in to change notification settings - Fork 135
/
Copy pathAndroidManifestPatcher.cs
34 lines (32 loc) · 1.01 KB
/
AndroidManifestPatcher.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
// Copyright (c) Mixed Reality Toolkit Contributors
// Licensed under the BSD 3-Clause
using System;
using System.Collections.Generic;
using Unity.XR.Management.AndroidManifest.Editor;
using UnityEngine.XR.OpenXR;
/// <summary>
/// Adds a required manifest entry to use the virtual keyboard on Quest.
/// </summary>
internal class AndroidManifestPatcher : IAndroidManifestRequirementProvider
{
/// <inheritdoc/>
ManifestRequirement IAndroidManifestRequirementProvider.ProvideManifestRequirement() => new()
{
SupportedXRLoaders = new HashSet<Type>()
{
typeof(OpenXRLoader)
},
NewElements = new List<ManifestElement>()
{
new()
{
ElementPath = new List<string> { "manifest", "uses-feature" },
Attributes = new Dictionary<string, string>
{
{ "name", "oculus.software.overlay_keyboard" },
{ "required", "false" }
}
}
},
};
}