diff --git a/CHANGELOG.md b/CHANGELOG.md index ba5b8b8..82d9544 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,10 @@ All notable changes to this package will be documented in this file. The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html). +## [4.1.0-pre.2] - 2021-07-26 +### Fixes +* More public API changes for [1343655](https://issuetracker.unity3d.com/product/unity/issues/guid/1343655/). + ## [4.1.0-pre.1] - 2021-07-09 ### Fixes * Fix [1343655](https://issuetracker.unity3d.com/product/unity/issues/guid/1343655/) by adding an API for getting all package metadata so that users can use the correct information when dealing with package metadata store. diff --git a/Editor/Metadata/XRPackageMetadataStore.cs b/Editor/Metadata/XRPackageMetadataStore.cs index 8e98822..949636a 100644 --- a/Editor/Metadata/XRPackageMetadataStore.cs +++ b/Editor/Metadata/XRPackageMetadataStore.cs @@ -223,7 +223,12 @@ public static IReadOnlyList GetAllPackageMetadataForBuildTarget(Buil return ret.ToList().AsReadOnly(); } - internal static IXRPackageMetadata GetMetadataForPackage(string packageId) + /// + /// Given a package id, return the metadata for that package. + /// + /// The package id to check for. + /// An instance of if the package has metadata or null. + public static IXRPackageMetadata GetMetadataForPackage(string packageId) { return s_Packages.Values. Select(x => x.metadata). @@ -246,7 +251,14 @@ internal static bool IsPackageInstallable(string package) return s_CachedMDStoreInformation.installablePackages?.Contains(package) ?? false; } - internal static bool IsLoaderAssigned(string loaderTypeName, BuildTargetGroup buildTargetGroup) + /// + /// Given a loader type and a build target group will return whether or not that loader + /// is currently assigned to be active for that build target. + /// + /// Loader type to check. + /// Build target group to check for assignment in. + /// + public static bool IsLoaderAssigned(string loaderTypeName, BuildTargetGroup buildTargetGroup) { var settings = XRGeneralSettingsPerBuildTarget.XRGeneralSettingsForBuildTarget(buildTargetGroup); diff --git a/ValidationExceptions.json b/ValidationExceptions.json deleted file mode 100644 index 653b5fa..0000000 --- a/ValidationExceptions.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "Exceptions": - [ - { - "ValidationTest": "API Validation", - "ExceptionError": "", - "PackageVersion": "4.0.5" - } - ] -} diff --git a/ValidationExceptions.json.meta b/ValidationExceptions.json.meta deleted file mode 100644 index b5887bf..0000000 --- a/ValidationExceptions.json.meta +++ /dev/null @@ -1,7 +0,0 @@ -fileFormatVersion: 2 -guid: 63eee5bec272620428c6c597db1eb2ff -TextScriptImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/package.json b/package.json index 792ea59..ce0882e 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "com.unity.xr.management", "displayName": "XR Plugin Management", - "version": "4.1.0-pre.1", + "version": "4.1.0-pre.2", "unity": "2019.4", "unityRelease": "15f1", "description": "Package that provides simple management of XR plug-ins. Manages and offers help with loading, initialization, settings, and build support for XR plug-ins.", @@ -24,10 +24,10 @@ "repository": { "url": "https://github.cds.internal.unity3d.com/unity/xr.sdk.management.git", "type": "git", - "revision": "9cab3b65f780e760a46b77e66f5c8030e3f3861e" + "revision": "dfcdcda96f32e3ce8642269e7adfc633bb0e57b0" }, "upmCi": { - "footprint": "2e960d8e2b79d4147f4e7048fe7c69b30eee63e7" + "footprint": "98c65deb81b1ee885bf7bf78f19f27f26ec4c056" }, "samples": [ {