-
Notifications
You must be signed in to change notification settings - Fork 103
Commit
* update packaging scripts to build the deprecated packages too * Start building up the deprecated packages * Update repo URLs in packages * Update license in package.json * Update deprecated package descriptions * Update asmdefs, package.json, warnings * Add meta files for the deprecated packages * Revert url issue references in PressbleButtonTests.cs
- Loading branch information
There are no files selected for viewing
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 |
---|---|---|
@@ -0,0 +1,40 @@ | ||
// Copyright (c) Mixed Reality Toolkit Contributors | ||
// Licensed under the BSD 3-Clause | ||
|
||
using UnityEditor; | ||
using UnityEngine; | ||
|
||
namespace MixedReality.Toolkit.Accessibility.Deprecated | ||
{ | ||
/// <summary> | ||
/// This class shows a warning that com.microsoft.mrtk.* packages are now deprecated. | ||
/// </summary> | ||
class DeprecatedWarning | ||
{ | ||
const string k_Title = "Deprecated: The com.microsoft.mrtk.* packages"; | ||
const string k_Message = "all com.microsoft.mrtk.* packages has been deprecated. The new packages are org.mixedrealitytoolkit.* See https://github.com/MixedRealityToolkit/MixedRealityToolkit-Unity"; | ||
const string k_HideWarningKey = "HideOldMRTKPackageDeprecatedWarning"; | ||
|
||
[InitializeOnLoadMethod] | ||
static void ShowWarning() | ||
{ | ||
if (Application.isBatchMode) | ||
{ | ||
return; | ||
} | ||
|
||
if (EditorUserSettings.GetConfigValue(k_HideWarningKey)?.Equals("true") ?? false) | ||
{ | ||
return; | ||
} | ||
|
||
var hideWarning = !EditorUtility.DisplayDialog( | ||
k_Title, | ||
k_Message, | ||
"Understood", | ||
"Don't warn me again for this project" | ||
); | ||
EditorUserSettings.SetConfigValue(k_HideWarningKey, hideWarning.ToString().ToLower()); | ||
} | ||
} | ||
} |
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 |
---|---|---|
@@ -0,0 +1,16 @@ | ||
{ | ||
"name": "MixedReality.Toolkit.Accessibility.Deprecated.Editor", | ||
"rootNamespace": "MixedReality.Toolkit.Accessibility.Deprecated.Editor", | ||
"references": [], | ||
"includePlatforms": [ | ||
"Editor" | ||
], | ||
"excludePlatforms": [], | ||
"allowUnsafeCode": false, | ||
"overrideReferences": false, | ||
"precompiledReferences": [], | ||
"autoReferenced": true, | ||
"defineConstraints": [], | ||
"versionDefines": [], | ||
"noEngineReferences": false | ||
} |
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 |
---|---|---|
@@ -0,0 +1,28 @@ | ||
BSD 3-Clause License | ||
|
||
Copyright (c) 2023, Mixed Reality Toolkit Contributors | ||
|
||
Redistribution and use in source and binary forms, with or without | ||
modification, are permitted provided that the following conditions are met: | ||
|
||
1. Redistributions of source code must retain the above copyright notice, this | ||
list of conditions and the following disclaimer. | ||
|
||
2. Redistributions in binary form must reproduce the above copyright notice, | ||
this list of conditions and the following disclaimer in the documentation | ||
and/or other materials provided with the distribution. | ||
|
||
3. Neither the name of the copyright holder nor the names of its | ||
contributors may be used to endorse or promote products derived from | ||
this software without specific prior written permission. | ||
|
||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" | ||
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE | ||
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE | ||
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE | ||
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL | ||
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR | ||
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER | ||
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, | ||
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | ||
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
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 |
---|---|---|
@@ -0,0 +1,20 @@ | ||
{ | ||
"name": "com.microsoft.mrtk.accessibility", | ||
"version": "1.0.0-development", | ||
"description": "This package has been deprecated", | ||
"displayName": "MRTK Accessibility Early Preview (deprecated)", | ||
"msftFeatureCategory": "MRTK3", | ||
"author": "Microsoft", | ||
"license": "BSD 3-Clause", | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/MixedRealityToolkit/MixedRealityToolkit-Unity.git" | ||
}, | ||
"bugs": { | ||
"url": "https://github.com/MixedRealityToolkit/MixedRealityToolkit-Unity/issues" | ||
}, | ||
"unity": "2021.3", | ||
"dependencies": { | ||
"org.mixedrealitytoolkit.accessibility": "1.0.0" | ||
} | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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 |
---|---|---|
@@ -0,0 +1,40 @@ | ||
// Copyright (c) Mixed Reality Toolkit Contributors | ||
// Licensed under the BSD 3-Clause | ||
|
||
using UnityEditor; | ||
using UnityEngine; | ||
|
||
namespace MixedReality.Toolkit.Audio.Deprecated | ||
{ | ||
/// <summary> | ||
/// This class shows a warning that com.microsoft.mrtk.* packages are now deprecated. | ||
/// </summary> | ||
class DeprecatedWarning | ||
{ | ||
const string k_Title = "Deprecated: The com.microsoft.mrtk.* packages"; | ||
const string k_Message = "all com.microsoft.mrtk.* packages has been deprecated. The new packages are org.mixedrealitytoolkit.* See https://github.com/MixedRealityToolkit/MixedRealityToolkit-Unity"; | ||
const string k_HideWarningKey = "HideOldMRTKPackageDeprecatedWarning"; | ||
|
||
[InitializeOnLoadMethod] | ||
static void ShowWarning() | ||
{ | ||
if (Application.isBatchMode) | ||
{ | ||
return; | ||
} | ||
|
||
if (EditorUserSettings.GetConfigValue(k_HideWarningKey)?.Equals("true") ?? false) | ||
{ | ||
return; | ||
} | ||
|
||
var hideWarning = !EditorUtility.DisplayDialog( | ||
k_Title, | ||
k_Message, | ||
"Understood", | ||
"Don't warn me again for this project" | ||
); | ||
EditorUserSettings.SetConfigValue(k_HideWarningKey, hideWarning.ToString().ToLower()); | ||
} | ||
} | ||
} |
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 |
---|---|---|
@@ -0,0 +1,16 @@ | ||
{ | ||
"name": "MixedReality.Toolkit.Audio.Deprecated.Editor", | ||
"rootNamespace": "", | ||
"references": [], | ||
"includePlatforms": [ | ||
"Editor" | ||
], | ||
"excludePlatforms": [], | ||
"allowUnsafeCode": false, | ||
"overrideReferences": false, | ||
"precompiledReferences": [], | ||
"autoReferenced": true, | ||
"defineConstraints": [], | ||
"versionDefines": [], | ||
"noEngineReferences": false | ||
} |
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 |
---|---|---|
@@ -0,0 +1,28 @@ | ||
BSD 3-Clause License | ||
|
||
Copyright (c) 2023, Mixed Reality Toolkit Contributors | ||
|
||
Redistribution and use in source and binary forms, with or without | ||
modification, are permitted provided that the following conditions are met: | ||
|
||
1. Redistributions of source code must retain the above copyright notice, this | ||
list of conditions and the following disclaimer. | ||
|
||
2. Redistributions in binary form must reproduce the above copyright notice, | ||
this list of conditions and the following disclaimer in the documentation | ||
and/or other materials provided with the distribution. | ||
|
||
3. Neither the name of the copyright holder nor the names of its | ||
contributors may be used to endorse or promote products derived from | ||
this software without specific prior written permission. | ||
|
||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" | ||
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE | ||
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE | ||
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE | ||
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL | ||
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR | ||
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER | ||
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, | ||
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | ||
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
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 |
---|---|---|
@@ -0,0 +1,20 @@ | ||
{ | ||
"name": "com.microsoft.mrtk.audio", | ||
"version": "3.0.0-development", | ||
"description": "This package has been deprecated", | ||
"displayName": "MRTK Audio Effects (deprecated)", | ||
"msftFeatureCategory": "MRTK3", | ||
"author": "Microsoft", | ||
"license": "BSD 3-Clause", | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/MixedRealityToolkit/MixedRealityToolkit-Unity.git" | ||
}, | ||
"bugs": { | ||
"url": "https://github.com/MixedRealityToolkit/MixedRealityToolkit-Unity/issues" | ||
}, | ||
"unity": "2021.3", | ||
"dependencies": { | ||
"org.mixedrealitytoolkit.audio": "3.0.0" | ||
} | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.