From 4007c672f27f52b173496e15ffb887a083e04c42 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dino=20Fejzagi=C4=87?= Date: Fri, 10 May 2024 22:21:06 +0200 Subject: [PATCH] Fix path finder and clean up --- .npmignore | 3 - CHANGELOG.md | 4 +- ...toolkit.spatialpersistence.arfoundation.md | 3 - Editor/AssemblyInfo.cs.meta | 11 ++- ...tialPersistence.ARFoundation.Editor.asmdef | 3 +- ...ersistence_ARFoundationPackageInstaller.cs | 13 +-- ...tence_ARFoundationPackageInstaller.cs.meta | 2 +- ...RFoundationPackageModulesInstaller.cs.meta | 2 +- ...sistence_ARFoundationPackagePathFinder.cs} | 0 ...nce_ARFoundationPackagePathFinder.cs.meta} | 2 +- LICENSE.md | 2 +- Runtime/AssemblyInfo.cs.meta | 11 ++- Tests.meta | 8 -- Tests/Editor.meta | 8 -- Tests/Editor/AssemblyInfo.cs | 9 -- Tests/Editor/AssemblyInfo.cs.meta | 2 - Tests/Editor/EditorExampleTest.cs | 96 ------------------- Tests/Editor/EditorExampleTest.cs.meta | 11 --- ...rsistence_ARFoundation.Editor.Tests.asmdef | 23 ----- ...ence_ARFoundation.Editor.Tests.asmdef.meta | 7 -- Tests/Runtime.meta | 8 -- Tests/Runtime/AssemblyInfo.cs | 9 -- Tests/Runtime/AssemblyInfo.cs.meta | 2 - ...atialPersistence_ARFoundation.Tests.asmdef | 20 ---- ...Persistence_ARFoundation.Tests.asmdef.meta | 7 -- Tests/Runtime/RuntimeExampleTest.cs | 96 ------------------- Tests/Runtime/RuntimeExampleTest.cs.meta | 11 --- Third Party Notices.md | 16 ---- Third Party Notices.md.meta | 7 -- package.json | 20 ++-- 30 files changed, 49 insertions(+), 367 deletions(-) delete mode 100644 .npmignore delete mode 100644 Documentation~/com.realitytoolkit.spatialpersistence.arfoundation.md rename Editor/{SpatialPersistence_ARFoundationPathFinder.cs => SpatialPersistence_ARFoundationPackagePathFinder.cs} (100%) rename Editor/{SpatialPersistence_ARFoundationPathFinder.cs.meta => SpatialPersistence_ARFoundationPackagePathFinder.cs.meta} (74%) delete mode 100644 Tests.meta delete mode 100644 Tests/Editor.meta delete mode 100644 Tests/Editor/AssemblyInfo.cs delete mode 100644 Tests/Editor/AssemblyInfo.cs.meta delete mode 100644 Tests/Editor/EditorExampleTest.cs delete mode 100644 Tests/Editor/EditorExampleTest.cs.meta delete mode 100644 Tests/Editor/RealityToolkit.SpatialPersistence_ARFoundation.Editor.Tests.asmdef delete mode 100644 Tests/Editor/RealityToolkit.SpatialPersistence_ARFoundation.Editor.Tests.asmdef.meta delete mode 100644 Tests/Runtime.meta delete mode 100644 Tests/Runtime/AssemblyInfo.cs delete mode 100644 Tests/Runtime/AssemblyInfo.cs.meta delete mode 100644 Tests/Runtime/RealityToolkit.SpatialPersistence_ARFoundation.Tests.asmdef delete mode 100644 Tests/Runtime/RealityToolkit.SpatialPersistence_ARFoundation.Tests.asmdef.meta delete mode 100644 Tests/Runtime/RuntimeExampleTest.cs delete mode 100644 Tests/Runtime/RuntimeExampleTest.cs.meta delete mode 100644 Third Party Notices.md delete mode 100644 Third Party Notices.md.meta diff --git a/.npmignore b/.npmignore deleted file mode 100644 index 7f1a1c7..0000000 --- a/.npmignore +++ /dev/null @@ -1,3 +0,0 @@ -.github/ -Tests/ -Tests.meta diff --git a/CHANGELOG.md b/CHANGELOG.md index 1bdfbc4..c63bdc0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1 +1,3 @@ -Placeholder to be replaced by root [changelog](../../../CHANGELOG.md) during build +# Changelog + +Please refer to the package's [Releases GitHub Page](https://github.com/realitycollective/com.realitytoolkit.spatial-persistence.arfoundation/releases) for the changelog. \ No newline at end of file diff --git a/Documentation~/com.realitytoolkit.spatialpersistence.arfoundation.md b/Documentation~/com.realitytoolkit.spatialpersistence.arfoundation.md deleted file mode 100644 index 9dabb2a..0000000 --- a/Documentation~/com.realitytoolkit.spatialpersistence.arfoundation.md +++ /dev/null @@ -1,3 +0,0 @@ - - -This file will be opened on `View Documentation` button click in the [Package Manager Window](https://docs.unity3d.com/Manual/upm-ui.html) diff --git a/Editor/AssemblyInfo.cs.meta b/Editor/AssemblyInfo.cs.meta index 22b3eb9..bafdf88 100644 --- a/Editor/AssemblyInfo.cs.meta +++ b/Editor/AssemblyInfo.cs.meta @@ -1,2 +1,11 @@ fileFormatVersion: 2 -guid: 7940e30e14a2b954388973a8687b895d \ No newline at end of file +guid: 7940e30e14a2b954388973a8687b895d +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {fileID: 2800000, guid: 8ac5213854cf4dbabd140decf8df1946, type: 3} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Editor/RealityToolkit.SpatialPersistence.ARFoundation.Editor.asmdef b/Editor/RealityToolkit.SpatialPersistence.ARFoundation.Editor.asmdef index a20eb8b..6d29403 100644 --- a/Editor/RealityToolkit.SpatialPersistence.ARFoundation.Editor.asmdef +++ b/Editor/RealityToolkit.SpatialPersistence.ARFoundation.Editor.asmdef @@ -8,7 +8,8 @@ "GUID:9753fcbb5b1feaf459f435ac95e51baa", "GUID:b2d046948d6452a4b8485efc9ce0f88c", "GUID:2a3f0ca4e21332c44bfdce311ea8943e", - "GUID:c148ca4f0506aba4bb7c9e15a44bf2e3" + "GUID:c148ca4f0506aba4bb7c9e15a44bf2e3", + "GUID:4ddd23ea56a3a40f0aa0036d1624a53e" ], "includePlatforms": [ "Editor" diff --git a/Editor/SpatialPersistence_ARFoundationPackageInstaller.cs b/Editor/SpatialPersistence_ARFoundationPackageInstaller.cs index 4c0794b..9907fb5 100644 --- a/Editor/SpatialPersistence_ARFoundationPackageInstaller.cs +++ b/Editor/SpatialPersistence_ARFoundationPackageInstaller.cs @@ -1,34 +1,35 @@ -// 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 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; -using UnityEngine; namespace RealityToolkit.SpatialPersistence.ARFoundation.Editor { [InitializeOnLoad] internal static class SpatialPersistence_ARFoundationPackageInstaller { - private static readonly string destinationPath = Application.dataPath + "/RealityToolkit.Generated/SpatialPersistence_ARFoundation"; - private static readonly string sourcePath = Path.GetFullPath($"{PathFinderUtility.ResolvePath(typeof(SpatialPersistence_ARFoundationPackagePathFinder)).ForwardSlashes()}{Path.DirectorySeparatorChar}{"Assets~"}"); + private static readonly string destinationPath = Path.Combine(RealityToolkitEditorSettings.Instance.AssetImportPath, "SpatialPersistence_ARFoundation"); + private static readonly string sourcePath = Path.GetFullPath($"{PathFinderUtility.ResolvePath(typeof(SpatialPersistence_ARFoundationPackagePathFinder)).ForwardSlashes()}{Path.DirectorySeparatorChar}{RealityToolkitPreferences.HIDDEN_PACKAGE_ASSETS_PATH}"); static SpatialPersistence_ARFoundationPackageInstaller() { EditorApplication.delayCall += CheckPackage; } - [MenuItem(ServiceFrameworkPreferences.Editor_Menu_Keyword + "/Reality Toolkit/Packages/Install SpatialPersistence_ARFoundation Package Assets...", true)] + [MenuItem(RealityToolkitPreferences.Editor_Menu_Keyword + "/Packages / Install SpatialPersistence_ARFoundation Package Assets...", true)] private static bool ImportPackageAssetsValidation() { return !Directory.Exists($"{destinationPath}{Path.DirectorySeparatorChar}"); } - [MenuItem(ServiceFrameworkPreferences.Editor_Menu_Keyword + "/Reality Toolkit/Packages/Install SpatialPersistence_ARFoundation Package Assets...")] + [MenuItem(RealityToolkitPreferences.Editor_Menu_Keyword + "/Packages / Install SpatialPersistence_ARFoundation Package Assets...")] private static void ImportPackageAssets() { EditorPreferences.Set($"{nameof(SpatialPersistence_ARFoundationPackageInstaller)}.Assets", false); diff --git a/Editor/SpatialPersistence_ARFoundationPackageInstaller.cs.meta b/Editor/SpatialPersistence_ARFoundationPackageInstaller.cs.meta index 7668590..d784bb2 100644 --- a/Editor/SpatialPersistence_ARFoundationPackageInstaller.cs.meta +++ b/Editor/SpatialPersistence_ARFoundationPackageInstaller.cs.meta @@ -5,7 +5,7 @@ MonoImporter: serializedVersion: 2 defaultReferences: [] executionOrder: 0 - icon: {instanceID: 0} + icon: {fileID: 2800000, guid: 8ac5213854cf4dbabd140decf8df1946, type: 3} userData: assetBundleName: assetBundleVariant: diff --git a/Editor/SpatialPersistence_ARFoundationPackageModulesInstaller.cs.meta b/Editor/SpatialPersistence_ARFoundationPackageModulesInstaller.cs.meta index e19e7fd..0cf7cf7 100644 --- a/Editor/SpatialPersistence_ARFoundationPackageModulesInstaller.cs.meta +++ b/Editor/SpatialPersistence_ARFoundationPackageModulesInstaller.cs.meta @@ -5,7 +5,7 @@ MonoImporter: serializedVersion: 2 defaultReferences: [] executionOrder: 0 - icon: {instanceID: 0} + icon: {fileID: 2800000, guid: 8ac5213854cf4dbabd140decf8df1946, type: 3} userData: assetBundleName: assetBundleVariant: diff --git a/Editor/SpatialPersistence_ARFoundationPathFinder.cs b/Editor/SpatialPersistence_ARFoundationPackagePathFinder.cs similarity index 100% rename from Editor/SpatialPersistence_ARFoundationPathFinder.cs rename to Editor/SpatialPersistence_ARFoundationPackagePathFinder.cs diff --git a/Editor/SpatialPersistence_ARFoundationPathFinder.cs.meta b/Editor/SpatialPersistence_ARFoundationPackagePathFinder.cs.meta similarity index 74% rename from Editor/SpatialPersistence_ARFoundationPathFinder.cs.meta rename to Editor/SpatialPersistence_ARFoundationPackagePathFinder.cs.meta index 50c84f2..5606200 100644 --- a/Editor/SpatialPersistence_ARFoundationPathFinder.cs.meta +++ b/Editor/SpatialPersistence_ARFoundationPackagePathFinder.cs.meta @@ -5,7 +5,7 @@ MonoImporter: serializedVersion: 2 defaultReferences: [] executionOrder: 0 - icon: {instanceID: 0} + icon: {fileID: 2800000, guid: 8ac5213854cf4dbabd140decf8df1946, type: 3} userData: assetBundleName: assetBundleVariant: diff --git a/LICENSE.md b/LICENSE.md index 7578f20..55596fe 100644 --- a/LICENSE.md +++ b/LICENSE.md @@ -1,6 +1,6 @@ MIT License -Copyright (c) 2022 Reality Collective +Copyright (c) 2022-2024 Reality Collective Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/Runtime/AssemblyInfo.cs.meta b/Runtime/AssemblyInfo.cs.meta index 9bf097b..f0721e4 100644 --- a/Runtime/AssemblyInfo.cs.meta +++ b/Runtime/AssemblyInfo.cs.meta @@ -1,2 +1,11 @@ fileFormatVersion: 2 -guid: be10d9467c19c004680e41165d4e8169 \ No newline at end of file +guid: be10d9467c19c004680e41165d4e8169 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {fileID: 2800000, guid: 8ac5213854cf4dbabd140decf8df1946, type: 3} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Tests.meta b/Tests.meta deleted file mode 100644 index 1219285..0000000 --- a/Tests.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: bea0305c8f8c16e4bb50befe9104e54a -folderAsset: yes -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Tests/Editor.meta b/Tests/Editor.meta deleted file mode 100644 index 5de563e..0000000 --- a/Tests/Editor.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: f2034dc92b3a1374a99b0edf1f833d50 -folderAsset: yes -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Tests/Editor/AssemblyInfo.cs b/Tests/Editor/AssemblyInfo.cs deleted file mode 100644 index f7fab4f..0000000 --- a/Tests/Editor/AssemblyInfo.cs +++ /dev/null @@ -1,9 +0,0 @@ -// 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.spatialpersistence_arfoundation.editor.tests")] -[assembly: AssemblyCompany("Reality Collective")] -[assembly: AssemblyCopyright("Copyright (c) Reality Collective. All rights reserved.")] diff --git a/Tests/Editor/AssemblyInfo.cs.meta b/Tests/Editor/AssemblyInfo.cs.meta deleted file mode 100644 index 46d82dc..0000000 --- a/Tests/Editor/AssemblyInfo.cs.meta +++ /dev/null @@ -1,2 +0,0 @@ -fileFormatVersion: 2 -guid: 573f843bb5d192c4f9f94398652aac57 \ No newline at end of file diff --git a/Tests/Editor/EditorExampleTest.cs b/Tests/Editor/EditorExampleTest.cs deleted file mode 100644 index 5e600ec..0000000 --- a/Tests/Editor/EditorExampleTest.cs +++ /dev/null @@ -1,96 +0,0 @@ -// ----------------------------------------------------------------------------- -// Package Editor Tests. -// Test Framework -// https://docs.unity3d.com/Manual/com.unity.test-framework.html -// -// For embedded packages you don’t need to explicitly enable tests because embedded packages are in development. -// However, for other types of dependencies, you need to add the `testables` attribute to the Project `manifest.json` -// ----------------------------------------------------------------------------- - -using UnityEngine.TestTools; -using NUnit.Framework; -using System.Collections; -using UnityEngine; - -namespace RealityToolkit.SpatialPersistence_ARFoundation.Editor.Tests -{ - class EditorExampleTest - { - [SetUp] - public void Setup() - { - // Called before each test method is called. - } - - [OneTimeSetUp] - public void OneTimeSetUp() - { - // Called once prior to executing any of the tests in a fixture - } - - [UnitySetUp] - public IEnumerator UnitySetUp() - { - // Identical to the standard SetUp. - yield return null; - } - - [TearDown] - public void TearDown() - { - // Called after each test method. - } - - [OneTimeTearDown] - public void OneTimeTearDown() - { - // Called once after executing any of the tests in a fixture. - } - - [UnityTearDown] - public IEnumerator UnityTearDown() - { - // Identical to the standard TearDown. - yield return null; - } - - [Test] - public void SimpleTest() - { - // Simple Test - Assert.That(1, Is.EqualTo(1)); - } - - [Test] - [UnityPlatform(RuntimePlatform.WindowsPlayer, RuntimePlatform.Android)] - public void TestMethod() - { - // Run test only for defined platforms - Assert.AreEqual(Application.platform, RuntimePlatform.WindowsPlayer); - } - - [Test] - [TestCase("Alex", 101)] - [TestCase("Pavel", 777)] - [TestCase("Stan", 707)] - public void TestMethod(string name, int id) - { - // TestCase sample. - } - - [Test, Ignore("Described the reason why ignored")] - public void IgnoredTest() - { - // Ignore test example. - } - - [UnityTest] - public IEnumerator EditorSampleTestWithEnumeratorPasses() - { - // A UnityTest behaves like a coroutine in PlayMode - // and allows you to yield null to skip a frame in EditMode - yield return null; - Assert.That(1, Is.EqualTo(1)); - } - } -} diff --git a/Tests/Editor/EditorExampleTest.cs.meta b/Tests/Editor/EditorExampleTest.cs.meta deleted file mode 100644 index 2e258f3..0000000 --- a/Tests/Editor/EditorExampleTest.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 9de82fb365eec614aa214c6988071f6a -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Tests/Editor/RealityToolkit.SpatialPersistence_ARFoundation.Editor.Tests.asmdef b/Tests/Editor/RealityToolkit.SpatialPersistence_ARFoundation.Editor.Tests.asmdef deleted file mode 100644 index b7ab087..0000000 --- a/Tests/Editor/RealityToolkit.SpatialPersistence_ARFoundation.Editor.Tests.asmdef +++ /dev/null @@ -1,23 +0,0 @@ -{ - "name": "RealityToolkit.SpatialPersistence_ARFoundation.Editor.Tests", - "references": [ - "UnityEngine.TestRunner", - "UnityEditor.TestRunner", - "RealityToolkit.SpatialPersistence_ARFoundation" - ], - "includePlatforms": [ - "Editor" - ], - "excludePlatforms": [], - "allowUnsafeCode": false, - "overrideReferences": true, - "precompiledReferences": [ - "nunit.framework.dll" - ], - "autoReferenced": false, - "defineConstraints": [ - "UNITY_INCLUDE_TESTS" - ], - "versionDefines": [], - "noEngineReferences": false -} diff --git a/Tests/Editor/RealityToolkit.SpatialPersistence_ARFoundation.Editor.Tests.asmdef.meta b/Tests/Editor/RealityToolkit.SpatialPersistence_ARFoundation.Editor.Tests.asmdef.meta deleted file mode 100644 index 4c83363..0000000 --- a/Tests/Editor/RealityToolkit.SpatialPersistence_ARFoundation.Editor.Tests.asmdef.meta +++ /dev/null @@ -1,7 +0,0 @@ -fileFormatVersion: 2 -guid: df124a98fd73a0c42a38b9ae45ada84d -AssemblyDefinitionImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Tests/Runtime.meta b/Tests/Runtime.meta deleted file mode 100644 index c39e676..0000000 --- a/Tests/Runtime.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: aef0009b078151749af1e0f6919ea5de -folderAsset: yes -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Tests/Runtime/AssemblyInfo.cs b/Tests/Runtime/AssemblyInfo.cs deleted file mode 100644 index 0e113ce..0000000 --- a/Tests/Runtime/AssemblyInfo.cs +++ /dev/null @@ -1,9 +0,0 @@ -// 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.spatialpersistence_arfoundation.tests")] -[assembly: AssemblyCompany("Reality Collective")] -[assembly: AssemblyCopyright("Copyright (c) Reality Collective. All rights reserved.")] diff --git a/Tests/Runtime/AssemblyInfo.cs.meta b/Tests/Runtime/AssemblyInfo.cs.meta deleted file mode 100644 index bd002bf..0000000 --- a/Tests/Runtime/AssemblyInfo.cs.meta +++ /dev/null @@ -1,2 +0,0 @@ -fileFormatVersion: 2 -guid: 162f97cc20e5bbe41aeb07c7643e88ec \ No newline at end of file diff --git a/Tests/Runtime/RealityToolkit.SpatialPersistence_ARFoundation.Tests.asmdef b/Tests/Runtime/RealityToolkit.SpatialPersistence_ARFoundation.Tests.asmdef deleted file mode 100644 index a8b86c9..0000000 --- a/Tests/Runtime/RealityToolkit.SpatialPersistence_ARFoundation.Tests.asmdef +++ /dev/null @@ -1,20 +0,0 @@ -{ - "name": "RealityToolkit.SpatialPersistence_ARFoundation.Tests", - "references": [ - "UnityEngine.TestRunner", - "UnityEditor.TestRunner" - ], - "includePlatforms": [], - "excludePlatforms": [], - "allowUnsafeCode": false, - "overrideReferences": true, - "precompiledReferences": [ - "nunit.framework.dll" - ], - "autoReferenced": false, - "defineConstraints": [ - "UNITY_INCLUDE_TESTS" - ], - "versionDefines": [], - "noEngineReferences": false -} diff --git a/Tests/Runtime/RealityToolkit.SpatialPersistence_ARFoundation.Tests.asmdef.meta b/Tests/Runtime/RealityToolkit.SpatialPersistence_ARFoundation.Tests.asmdef.meta deleted file mode 100644 index bb3f12d..0000000 --- a/Tests/Runtime/RealityToolkit.SpatialPersistence_ARFoundation.Tests.asmdef.meta +++ /dev/null @@ -1,7 +0,0 @@ -fileFormatVersion: 2 -guid: 45492b8b1713523499bec497313d34e4 -AssemblyDefinitionImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Tests/Runtime/RuntimeExampleTest.cs b/Tests/Runtime/RuntimeExampleTest.cs deleted file mode 100644 index 32026d7..0000000 --- a/Tests/Runtime/RuntimeExampleTest.cs +++ /dev/null @@ -1,96 +0,0 @@ -// ----------------------------------------------------------------------------- -// Package Runtime Tests. -// Test Framework -// https://docs.unity3d.com/Manual/com.unity.test-framework.html -// -// For embedded packages you don’t need to explicitly enable tests because embedded packages are in development. -// However, for other types of dependencies, you need to add the `testables` attribute to the Project `manifest.json` -// ----------------------------------------------------------------------------- - -using UnityEngine.TestTools; -using NUnit.Framework; -using System.Collections; -using UnityEngine; - -namespace RealityToolkit.SpatialPersistence_ARFoundation.Tests -{ - class RuntimeExampleTest - { - [SetUp] - public void Setup() - { - // Called before each test method is called. - } - - [OneTimeSetUp] - public void OneTimeSetUp() - { - // Called once prior to executing any of the tests in a fixture - } - - [UnitySetUp] - public IEnumerator UnitySetUp() - { - // Identical to the standard SetUp. - yield return null; - } - - [TearDown] - public void TearDown() - { - // Called after each test method. - } - - [OneTimeTearDown] - public void OneTimeTearDown() - { - // Called once after executing any of the tests in a fixture. - } - - [UnityTearDown] - public IEnumerator UnityTearDown() - { - // Identical to the standard TearDown. - yield return null; - } - - [Test] - public void SimpleTest() - { - // Simple Test - Assert.That(1, Is.EqualTo(1)); - } - - [Test] - [UnityPlatform(RuntimePlatform.WindowsPlayer, RuntimePlatform.Android)] - public void TestMethod() - { - // Run test only for defined platforms - Assert.AreEqual(Application.platform, RuntimePlatform.WindowsPlayer); - } - - [Test] - [TestCase("Alex", 101)] - [TestCase("Pavel", 777)] - [TestCase("Stan", 707)] - public void TestMethod(string name, int id) - { - // TestCase sample. - } - - [Test, Ignore("Described the reason why ignored")] - public void IgnoredTest() - { - // Ignore test example. - } - - [UnityTest] - public IEnumerator EditorSampleTestWithEnumeratorPasses() - { - // A UnityTest behaves like a coroutine in PlayMode - // and allows you to yield null to skip a frame in EditMode - yield return null; - Assert.That(1, Is.EqualTo(1)); - } - } -} diff --git a/Tests/Runtime/RuntimeExampleTest.cs.meta b/Tests/Runtime/RuntimeExampleTest.cs.meta deleted file mode 100644 index 0764564..0000000 --- a/Tests/Runtime/RuntimeExampleTest.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 7d8a2656ca6c1a144869a999082fedfa -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Third Party Notices.md b/Third Party Notices.md deleted file mode 100644 index b1245bd..0000000 --- a/Third Party Notices.md +++ /dev/null @@ -1,16 +0,0 @@ - - -This package contains third-party software components governed by the license(s) indicated below: - -Component Name: Semver - -License Type: "MIT" - -[SemVer License](https://github.com/myusername/semver/blob/master/License.txt) - - -Component Name: MyComponent - -License Type: "MyLicense" - -[MyComponent License](https://www.mycompany.com/licenses/License.txt) diff --git a/Third Party Notices.md.meta b/Third Party Notices.md.meta deleted file mode 100644 index 95e08b2..0000000 --- a/Third Party Notices.md.meta +++ /dev/null @@ -1,7 +0,0 @@ -fileFormatVersion: 2 -guid: 327029c3eb2d4c74a86d58c7411e9e5d -TextScriptImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/package.json b/package.json index b861f93..29d0222 100644 --- a/package.json +++ b/package.json @@ -1,29 +1,35 @@ { - "name": "com.realitytoolkit.spatialpersistence.arfoundation", + "name": "com.realitytoolkit.spatial-persistence.arfoundation", "displayName": "RealityToolkit.SpatialPersistence.ARFoundation", - "description": "The Spatial Persistence ARFoundation module for the Reality Toolkit by the Reality Collective", + "description": "The Spatial Persistence ARFoundation module for the Reality Toolkit by the Reality Collective.", + "version": "1.0.0-pre.5", + "documentationUrl": "https://realitytoolkit.io", + "changelogUrl": "https://github.com/realitycollective/com.realitytoolkit.spatial-persistence.arfoundation/releases", + "licensesUrl": "https://github.com/realitycollective/com.realitytoolkit.spatial-persistence.arfoundation/blob/main/LICENSE.md", "keywords": [ "VR", "AR", "XR", "Mixed Reality" ], - "version": "1.0.0-pre.5", "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.spatial-persistence.arfoundation/issues" }, "license": "MIT", "repository": { "type": "git", - "url": "git+https://github.com/realitycollective/com.realitytoolkit.spatialpersistence.arfoundation" + "url": "git+https://github.com/realitycollective/com.realitytoolkit.spatial-persistence.arfoundation" }, "author": { "name": "Reality Collective", "email": "realitycollectivedev@gmail.com", "url": "https://github.com/realitycollective" }, + "publishConfig": { + "registry": "https://package.openupm.com" + }, "dependencies": { "com.unity.xr.arfoundation": "5.1.0", "com.realitytoolkit.spatial-persistence": "1.0.1" @@ -34,4 +40,4 @@ "path": "Assets~/" } ] -} +} \ No newline at end of file