Skip to content

Commit

Permalink
v1.0.11 (#58)
Browse files Browse the repository at this point in the history
* Prep for release

* Auto increment pre-release version to 1.0.1 [skip ci]

* disable tagging for development upversion

* Apply V2 workflows (#19)

Co-authored-by: Simon Jackson <[email protected]>

* Auto increment pre-release version to 1.0.1-pre-release.1 [skip ci]

* Auto increment pre-release version to 1.0.2 [skip ci]

* Fix prefab attribute does not render label (#21)

* Auto increment pre-release version to 1.0.2-pre.1 [skip ci]

* Auto increment pre-release version to 1.0.3 [skip ci]

* Updated Rest features (#23)

* Updating Rest utilities, added cancellation token to all calls. Plus clean up
* Added Unit Tests to Rest functionality
* Standardised overload options into a new RestArgs struct
* Rationalised implementations for standards
* Added overloaded Download function to return a byte[] or file string contents
* Fix new script icon
* Update workflow to multi-version for test
* Updated PostForm following 2022 testing
* Include uGUI dependency for the UI extensions in the package
* Extract Canvas dependencies from the utility package
* Final review and cleanup
* Update Readme

---------

Co-authored-by: Simon Jackson <[email protected]>

* Auto increment pre-release version to 1.0.3-pre.1 [skip ci]

* Auto increment pre-release version to 1.0.4 [skip ci]

* Next release updates (#27)

* Initial commit for next round of updates

- Changed fixed use of verbs to use the constants from UnityWebRequest definition.
- #26 Added additional exception handling to log instead of throw, returns a Failed response instead
- #25 Added the ability to set global override parameters
- Added the ability to set a preferred download location, either globally or per call.  Default is Temp

* Auto increment pre-release version to 1.0.4-pre.1 [skip ci]

* Add CODEOWNERS

* Update for 1.0.4 release (#29)

* Auto increment pre-release version to 1.0.4-pre.2 [skip ci]

* Address comments

* Auto increment pre-release version to 1.0.5 [skip ci]

* Added logging utilities for projects (#31)

* Added logging utilities for projects

* Address review comments

* Auto increment pre-release version to 1.0.5-pre.1 [skip ci]

* Extended the Unity File helper with an additional option to get all files and not just Unity's own files. (#32)

Updated the GuidRegenerator to use all files as it should not be limited when working with a path.

* Auto increment pre-release version to 1.0.5-pre.2 [skip ci]

* Fix ambiguous call (#34)

Co-authored-by: Dino Fejzagic <[email protected]>

* Auto increment pre-release version to 1.0.5-pre.3 [skip ci]

* Added a new Calculate Bounds extension and updated documentation for all (#35)

* Auto increment pre-release version to 1.0.5-pre.4 [skip ci]

* Update docs and readme for release (#36)

* Auto increment pre-release version to 1.0.5-pre.5 [skip ci]

* Auto increment pre-release version to 1.0.6 [skip ci]

* Added audio streaming (#38)

* Added audio streaming

---------

Authored-by: Rony Portelli <[email protected]>

* Auto increment pre-release version to 1.0.7 [skip ci]

* Deprecate the Rest utilities as this is not providing value to the toolkit (#42)

* Update readme, remove mention of rest

* Remove Rest classes and folders

* Clean up Rest Tests

---------

Co-authored-by: Dino Fejzagić <[email protected]>

* Auto increment pre-release version to 1.0.7-pre.1 [skip ci]

* Auto increment pre-release version to 1.0.8 [skip ci]

* Update Editor menus (#45)

* Updating Channel packer tool to fit under the asset store version of the Reality Toolkit

* Remove Channel package from Utilities
* Remove editor preferences static, as each package has its own root

* Auto increment pre-release version to 1.0.8-pre.1 [skip ci]

* Remove warning and remove redundant type lookup (#46)

* Auto increment pre-release version to 1.0.8-pre.2 [skip ci]

* Auto increment pre-release version to 1.0.9 [skip ci]

* Migrated all Service-Framework only components to the ServiceFramework (#50)

* Auto increment pre-release version to 1.0.9-pre.1 [skip ci]

* Auto increment pre-release version to 1.0.10 [skip ci]

* Fix assembly info pre processor (#53)

* Fix assembly info pre processor

* Generate assembly infos

* Auto increment pre-release version to 1.0.10-pre.1 [skip ci]

* Backporting 2020 fix for recent update (#54)

* Auto increment pre-release version to 1.0.10-pre.2 [skip ci]

* Auto increment pre-release version to 1.0.11 [skip ci]

* Feature/ImprovedBoundsExtension (#55)

* Migrated new functionality for bounds, needs sanitising
* Modified the bounds extension to achieve the correct behaviour

---------

Co-authored-by: Rony Portelli <[email protected]>

* Auto increment pre-release version to 1.0.11-pre.1 [skip ci]

* Cleaned up utilities package, removed duplicates between SF and Utilities/Toolkit (#56)

* Update package json with missing fields

* Clear icons and fix extensions and attributes namespace

* Progress

* Finish

* Auto increment pre-release version to 1.0.11-pre.2 [skip ci]

* Migrate @Cangi s work on the MatrixExtensions (#57)

Co-authored-by: Dino Fejzagić <[email protected]>

* Auto increment pre-release version to 1.0.11-pre.3 [skip ci]

* Added new TryGet component search methods (#59)

* Added new TryGet component search methods

* Address feedback

* Update readme with latest contents and banner

* Auto increment pre-release version to 1.0.11-pre.4 [skip ci]

---------

Co-authored-by: Simon (Darkside) Jackson <[email protected]>
Co-authored-by: realitycollectivebuildbot <[email protected]>
Co-authored-by: Simon Jackson <[email protected]>
Co-authored-by: Dino Fejzagic <[email protected]>
Co-authored-by: Rony Portelli <[email protected]>
Co-authored-by: Rony Portelli <[email protected]>
  • Loading branch information
7 people authored May 6, 2024
1 parent 566d609 commit ebacd59
Show file tree
Hide file tree
Showing 184 changed files with 829 additions and 1,446 deletions.
3 changes: 0 additions & 3 deletions .npmignore

This file was deleted.

4 changes: 3 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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.utilities/releases) for the changelog.
76 changes: 0 additions & 76 deletions Documentation~/com.realitycollective.utilities.md

This file was deleted.

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

using RealityCollective.Utilities.Extensions;
using System;
using System.IO;
using System.Linq;
using UnityEditor;
using UnityEditor.Compilation;
using UnityEditorInternal;
using UnityEngine;
using RealityCollective.Extensions;

namespace RealityCollective.Editor.Utilities
namespace RealityCollective.Utilities.Editor
{
public static class AssemblyDefinitionEditorExtension
{
Expand Down

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

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

using System;
using System.IO;
using System.Text.RegularExpressions;
using UnityEditor;
using UnityEngine;

namespace RealityCollective.Utilities.Editor
{
internal class AssemblyDefinitionPostprocessor : AssetPostprocessor
{
[Serializable]
private class PackageInfo
{
[SerializeField]
private string name;

public string Name => name;

[SerializeField]
private string version;

public string Version => version;
}

private const string VersionRegexPattern = "\\[assembly: AssemblyVersion\\(\"(.*)\"\\)\\]";

private void OnPreprocessAsset()
{
if (assetPath.Contains("package.json") && !Application.isBatchMode)
{
if (Path.GetFullPath(assetPath).Contains("PackageCache"))
{
return;
}

var text = File.ReadAllText(assetPath);
var packageJson = JsonUtility.FromJson<PackageInfo>(text);

if (!packageJson.Name.Contains("com.realitycollective") &&
!packageJson.Name.Contains("com.realitytoolkit"))
{
return;
}

var packageVersion = packageJson.Version;

if (packageVersion.Contains("-pre."))
{
#if UNITY_2021_1_OR_NEWER
packageVersion = packageVersion[..packageVersion.IndexOf("-", StringComparison.Ordinal)];
#else
packageVersion = packageVersion.Substring(0, packageVersion.IndexOf("-", StringComparison.Ordinal));
#endif
}

var newVersion = $"[assembly: AssemblyVersion(\"{packageVersion}\")]";
var asmdefs = Directory.GetFiles(assetPath.Replace("package.json", string.Empty), "*.asmdef", SearchOption.AllDirectories);

foreach (var assembly in asmdefs)
{
var assemblyName = Path.GetFileNameWithoutExtension(assembly).ToLower();
var directory = Path.GetDirectoryName(assembly);
var assemblyInfoPath = $"{directory}/AssemblyInfo.cs";
var fileText = !File.Exists(assemblyInfoPath)
? $@"// 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(""0.0.0"")]
[assembly: AssemblyTitle(""com.{assemblyName}"")]
[assembly: AssemblyCompany(""Reality Collective"")]
[assembly: AssemblyCopyright(""Copyright (c) Reality Collective. All rights reserved."")]
"
: File.ReadAllText(assemblyInfoPath);

if (!fileText.Contains("AssemblyVersion"))
{
fileText += "\nusing System.Reflection;\n\n[assembly: AssemblyVersion(\"0.0.0\")]\n";
}

if (!fileText.Contains("AssemblyTitle"))
{
fileText += $"[assembly: AssemblyTitle(\"com.{assemblyName}\")]\n";
}

File.WriteAllText(assemblyInfoPath, Regex.Replace(fileText, VersionRegexPattern, newVersion));
}

AssetDatabase.Refresh(ImportAssetOptions.Default);
}
}
}
}

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

2 changes: 1 addition & 1 deletion Editor/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

using System.Reflection;

[assembly: AssemblyVersion("1.0.10")]
[assembly: AssemblyVersion("1.0.11")]
[assembly: AssemblyTitle("com.realitycollective.utilities.editor")]
[assembly: AssemblyCompany("Reality Collective")]
[assembly: AssemblyCopyright("Copyright (c) Reality Collective. All rights reserved.")]
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
using UnityEditor;
using UnityEngine;

namespace RealityCollective.Editor.Utilities
namespace RealityCollective.Utilities.Editor
{
/// <summary>
/// Convenience class for setting Editor Preferences with <see cref="Application.productName"/> as key prefix.
Expand Down

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,11 +1,11 @@
// Copyright (c) Reality Collective. All rights reserved.
// Licensed under the MIT License. See LICENSE in the project root for license information.

using RealityCollective.Attributes;
using RealityCollective.Utilities.Attributes;
using UnityEditor;
using UnityEngine;

namespace RealityCollective.Editor.PropertyDrawers
namespace RealityCollective.Utilities.Editor
{
/// <summary>
/// Renders enum flags on fields with the attribute.
Expand Down

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

8 changes: 0 additions & 8 deletions Editor/Extensions.meta

This file was deleted.

32 changes: 0 additions & 32 deletions Editor/Extensions/EditorGUILayoutExtensions.cs

This file was deleted.

57 changes: 0 additions & 57 deletions Editor/Extensions/SerializedPropertyExtensions.cs

This file was deleted.

11 changes: 0 additions & 11 deletions Editor/Extensions/SerializedPropertyExtensions.cs.meta

This file was deleted.

Loading

0 comments on commit ebacd59

Please sign in to comment.