Skip to content

Commit

Permalink
Core compatibility restored (#39)
Browse files Browse the repository at this point in the history
Co-authored-by: Simon (Darkside) Jackson <[email protected]>
  • Loading branch information
FejZa and SimonDarksideJ authored May 7, 2024
1 parent fd270d2 commit 44e4d60
Show file tree
Hide file tree
Showing 24 changed files with 101 additions and 30 deletions.
9 changes: 9 additions & 0 deletions Editor/AssemblyInfo.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
// Copyright (c) Reality Collective. All rights reserved.
// Licensed under the MIT License. See LICENSE in the project root for license information.

using System.Reflection;

[assembly: AssemblyVersion("1.0.0")]
[assembly: AssemblyTitle("com.realitytoolkit.metaplatform.editor")]
[assembly: AssemblyCompany("Reality Collective")]
[assembly: AssemblyCopyright("Copyright (c) Reality Collective. All rights reserved.")]
11 changes: 11 additions & 0 deletions Editor/AssemblyInfo.cs.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 9 additions & 0 deletions Editor/BuildPipeline/AssemblyInfo.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
// Copyright (c) Reality Collective. All rights reserved.
// Licensed under the MIT License. See LICENSE in the project root for license information.

using System.Reflection;

[assembly: AssemblyVersion("1.0.0")]
[assembly: AssemblyTitle("com.realitytoolkit.metaplatform.editor.buildpipeline")]
[assembly: AssemblyCompany("Reality Collective")]
[assembly: AssemblyCopyright("Copyright (c) Reality Collective. All rights reserved.")]
11 changes: 11 additions & 0 deletions Editor/BuildPipeline/AssemblyInfo.cs.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Editor/MetaHandControllerServiceModuleProfileInspector.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Copyright (c) Reality Collective. All rights reserved.
// Licensed under the MIT License. See LICENSE in the project root for license information.

using RealityCollective.Editor.Extensions;
using RealityCollective.ServiceFramework.Editor.Utilities;
using RealityToolkit.Editor.Profiles.Input.Controllers;
using RealityToolkit.MetaPlatform.InputService.Profiles;
using RealityToolkit.MetaPlatform.Plugins;
Expand Down
7 changes: 4 additions & 3 deletions Editor/MetaPackageInstaller.cs
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
// Copyright (c) Reality Collective. All rights reserved.
// Licensed under the MIT License. See LICENSE in the project root for license information.

using RealityCollective.Editor.Utilities;
using RealityCollective.Extensions;
using RealityCollective.ServiceFramework.Editor;
using RealityCollective.ServiceFramework.Editor.Packages;
using RealityCollective.Utilities.Editor;
using RealityCollective.Utilities.Extensions;
using RealityToolkit.Editor;
using RealityToolkit.Editor.Settings;
using System.IO;
using UnityEditor;

Expand All @@ -14,7 +15,7 @@ namespace RealityToolkit.MetaPlatform.Editor
[InitializeOnLoad]
internal static class MetaPackageInstaller
{
private static readonly string destinationPath = $"{RealityToolkitPreferences.ProfileGenerationPath}Meta";
private static readonly string destinationPath = Path.Combine(RealityToolkitEditorSettings.Instance.AssetImportPath, "Meta");
private static readonly string sourcePath = Path.GetFullPath($"{PathFinderUtility.ResolvePath<IPathFinder>(typeof(MetaPackagePathFinder)).BackSlashes()}{Path.DirectorySeparatorChar}{RealityToolkitPreferences.HIDDEN_PACKAGE_ASSETS_PATH}");

static MetaPackageInstaller()
Expand Down
3 changes: 2 additions & 1 deletion Editor/RealityToolkit.MetaPlatform.Editor.asmdef
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@
"GUID:b2d046948d6452a4b8485efc9ce0f88c",
"GUID:2a3f0ca4e21332c44bfdce311ea8943e",
"GUID:13703f41b24bb904cb2305abe6317e3d",
"GUID:9753fcbb5b1feaf459f435ac95e51baa"
"GUID:9753fcbb5b1feaf459f435ac95e51baa",
"GUID:4ddd23ea56a3a40f0aa0036d1624a53e"
],
"includePlatforms": [
"Editor"
Expand Down
9 changes: 9 additions & 0 deletions Runtime/AssemblyInfo.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
// Copyright (c) Reality Collective. All rights reserved.
// Licensed under the MIT License. See LICENSE in the project root for license information.

using System.Reflection;

[assembly: AssemblyVersion("1.0.0")]
[assembly: AssemblyTitle("com.realitytoolkit.metaplatform")]
[assembly: AssemblyCompany("Reality Collective")]
[assembly: AssemblyCopyright("Copyright (c) Reality Collective. All rights reserved.")]
11 changes: 11 additions & 0 deletions Runtime/AssemblyInfo.cs.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Runtime/InputService/BaseMetaController.cs
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
// Copyright (c) Reality Collective. All rights reserved.
// Licensed under the MIT License. See LICENSE in the project root for license information.

using RealityCollective.Definitions.Utilities;
using RealityToolkit.Definitions.Controllers;
using RealityToolkit.Definitions.Devices;
using RealityToolkit.Input.Controllers;
using RealityToolkit.Input.Definitions;
using RealityToolkit.Input.Extensions;
using RealityToolkit.Input.Interfaces.Modules;
using RealityToolkit.MetaPlatform.Plugins;
Expand Down
4 changes: 2 additions & 2 deletions Runtime/InputService/Extensions/HandednessExtensions.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Copyright (c) Reality Collective. All rights reserved.
// Licensed under the MIT License. See LICENSE in the project root for license information.

using RealityCollective.Definitions.Utilities;
using RealityToolkit.Input.Definitions;
using RealityToolkit.MetaPlatform.Plugins;
using UnityEngine;

Expand All @@ -10,7 +10,7 @@ namespace RealityToolkit.MetaPlatform.InputService.Extensions
public static class HandednessExtensions
{
/// <summary>
/// Converts an <see cref="OculusApi.Controller"/> mask to a XRTK <see cref="Handedness"/>.
/// Converts an <see cref="OculusApi.Controller"/> mask to a Reality Toolkit <see cref="Handedness"/>.
/// </summary>
/// <param name="controller">Controller mask.</param>
/// <returns>Handedness.</returns>
Expand Down
1 change: 0 additions & 1 deletion Runtime/InputService/MetaHandControllerServiceModule.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
// Copyright (c) Reality Collective. All rights reserved.
// Licensed under the MIT License. See LICENSE in the project root for license information.

using RealityCollective.Definitions.Utilities;
using RealityCollective.ServiceFramework.Attributes;
using RealityCollective.ServiceFramework.Services;
using RealityToolkit.Definitions.Devices;
Expand Down
2 changes: 1 addition & 1 deletion Runtime/InputService/MetaRemoteController.cs
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
// Copyright (c) Reality Collective. All rights reserved.
// Licensed under the MIT License. See LICENSE in the project root for license information.

using RealityCollective.Definitions.Utilities;
using RealityToolkit.Definitions.Controllers;
using RealityToolkit.Definitions.Devices;
using RealityToolkit.Input.Definitions;
using RealityToolkit.Input.Interfaces.Modules;
using RealityToolkit.MetaPlatform.Plugins;

Expand Down
2 changes: 1 addition & 1 deletion Runtime/InputService/MetaTouchController.cs
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
// Copyright (c) Reality Collective. All rights reserved.
// Licensed under the MIT License. See LICENSE in the project root for license information.

using RealityCollective.Definitions.Utilities;
using RealityToolkit.Definitions.Controllers;
using RealityToolkit.Definitions.Devices;
using RealityToolkit.Input.Definitions;
using RealityToolkit.Input.Interfaces.Modules;
using RealityToolkit.MetaPlatform.Plugins;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// Licensed under the MIT License. See LICENSE in the project root for license information.

using RealityToolkit.Definitions.Controllers;
using RealityCollective.Definitions.Utilities;
using RealityToolkit.Input.Definitions;

namespace RealityToolkit.MetaPlatform.InputService.Profiles
{
Expand Down
8 changes: 4 additions & 4 deletions Runtime/InputService/Utilities/MetaHandDataConverter.cs
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
// Copyright (c) Reality Collective. All rights reserved.
// Licensed under the MIT License. See LICENSE in the project root for license information.

using RealityCollective.Definitions.Utilities;
using RealityCollective.Extensions;
using RealityCollective.ServiceFramework.Services;
using RealityCollective.Utilities.Extensions;
using RealityToolkit.Definitions.Devices;
using RealityToolkit.Input.Definitions;
using RealityToolkit.Input.Hands;
using RealityToolkit.Input.Hands.Utilities;
using RealityToolkit.MetaPlatform.InputService.Extensions;
using RealityToolkit.MetaPlatform.Plugins;
using RealityToolkit.Player.Interfaces;
using RealityToolkit.Player;
using System;
using System.Collections.Generic;
using UnityEngine;
Expand Down Expand Up @@ -153,7 +153,7 @@ private Pose[] GetJointPoses(Handedness handedness)
private Pose GetJointPose(Handedness handedness, OculusApi.Bone bone)
{
// The Pinky/Thumb 1+ bones depend on the Pinky/Thumb 0 bone
// to be available, which the XRTK hand tracking does not use. We still have to compute them to
// to be available, which the Reality Toolkit hand tracking does not use. We still have to compute them to
// be able to resolve pose relation dependencies.
if (bone.Id == OculusApi.BoneId.Hand_Thumb1)
{
Expand Down
2 changes: 1 addition & 1 deletion Runtime/MetaPlatform.cs
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
// Copyright (c) Reality Collective. All rights reserved.
// Licensed under the MIT License. See LICENSE in the project root for license information.

using RealityCollective.Extensions;
using RealityCollective.ServiceFramework.Definitions.Platforms;
using RealityCollective.ServiceFramework.Interfaces;
using RealityCollective.Utilities.Extensions;
using RealityToolkit.MetaPlatform.Plugins;
using System.Linq;
using Unity.XR.Oculus;
Expand Down
File renamed without changes.
8 changes: 8 additions & 0 deletions Runtime/Player/Rigs.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
// Copyright (c) Reality Collective. All rights reserved.
// Copyright (c) Reality Collective. All rights reserved.
// Licensed under the MIT License. See LICENSE in the project root for license information.

using RealityToolkit.Player.Interfaces;
using RealityToolkit.Player.Rigs;

namespace RealityToolkit.MetaPlatform.PlayerService
namespace RealityToolkit.MetaPlatform.Player.Rigs
{
/// <summary>
/// Fully qualifies the <see cref="MetaPlatform"/> specific implementation of <see cref="IPlayerRigServiceModule"/>.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,10 @@

using RealityCollective.ServiceFramework.Attributes;
using RealityToolkit.MetaPlatform.Plugins;
using RealityToolkit.Player.Definitions;
using RealityToolkit.Player.Interfaces;
using RealityToolkit.Player.Modules;
using RealityToolkit.Player;
using RealityToolkit.Player.Rigs;

namespace RealityToolkit.MetaPlatform.PlayerService
namespace RealityToolkit.MetaPlatform.Player.Rigs
{
[RuntimePlatform(typeof(MetaPlatform))]
[System.Runtime.InteropServices.Guid("83EFF552-ADF4-47C8-AD53-DF7406856D3F")]
Expand Down
15 changes: 9 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"name": "com.realitytoolkit.metaplatform",
"displayName": "RealityToolkit.MetaPlatform",
"description": "The Meta platform module for the Reality Toolkit by the Reality Collective.",
"version": "1.0.0-pre.13",
"documentationUrl": "https://www.realitytoolkit.io/",
"changelogUrl": "https://github.com/realitycollective/com.realitytoolkit.metaplatform/releases",
"licensesUrl": "https://github.com/realitycollective/com.realitytoolkit.metaplatform/blob/main/LICENSE.md",
Expand All @@ -17,11 +18,10 @@
"oculus",
"quest"
],
"version": "1.0.0-pre.13",
"unity": "2022.3",
"homepage": "https://github.com/realitycollective",
"homepage": "https://realitytoolkit.io",
"bugs": {
"url": "https://github.com/realitycollective/realitytoolkit.dev/issues"
"url": "https://github.com/realitycollective/com.realitytoolkit.metaplatform/issues"
},
"license": "MIT",
"repository": {
Expand All @@ -33,9 +33,12 @@
"email": "[email protected]",
"url": "https://github.com/realitycollective"
},
"publishConfig": {
"registry": "https://package.openupm.com"
},
"dependencies": {
"com.realitytoolkit.core": "1.0.0-pre.47",
"com.realitytoolkit.player": "1.0.4-pre.3",
"com.realitytoolkit.core": "1.0.0-pre.48",
"com.realitytoolkit.player": "1.0.4",
"com.realitytoolkit.boundary": "1.0.0-pre.2",
"com.unity.xr.oculus": "4.2.0"
},
Expand All @@ -45,4 +48,4 @@
"path": "Assets~/"
}
]
}
}

0 comments on commit 44e4d60

Please sign in to comment.