From e3e3172b11f2b82ef28aabceb841d0a3b360aedf Mon Sep 17 00:00:00 2001 From: cdhanna <3848374+cdhanna@users.noreply.github.com> Date: Fri, 11 Sep 2026 16:21:42 +0000 Subject: [PATCH] syncing Unity SDK from CLI --- .../Commands/BeamBundleAclCommandOutput.cs | 1 - ...mandOutput.cs => BeamBundleReleaseInfo.cs} | 6 +- ....cs.meta => BeamBundleReleaseInfo.cs.meta} | 2 +- .../BeamBundleReleasesCommandOutput.cs | 13 ++ ...> BeamBundleReleasesCommandOutput.cs.meta} | 2 +- .../BeamCli/Commands/BeamBundleSummaryInfo.cs | 18 +++ .../Commands/BeamBundleSummaryInfo.cs.meta | 11 ++ .../Editor/BeamCli/Commands/BeamBundlesAcl.cs | 10 +- .../BeamCli/Commands/BeamBundlesPublish.cs | 2 +- ...ndlesHistory.cs => BeamBundlesReleases.cs} | 21 ++- .../Commands/BeamBundlesReleases.cs.meta | 11 ++ .../Commands/BeamGetBundleCommandOutput.cs | 1 + .../Commands/BeamListBundlesCommandOutput.cs | 2 +- .../Commands/BeamProjectGenerateProperties.cs | 128 +++++++++--------- .../BeamPublishBundleCommandOutput.cs | 1 + .../Commands/BeamUnityVerifyPackageMetas.cs | 55 ++++++++ .../BeamUnityVerifyPackageMetas.cs.meta | 11 ++ .../BeamVerifyPackageMetasCommandOutput.cs | 13 ++ ...eamVerifyPackageMetasCommandOutput.cs.meta | 11 ++ 19 files changed, 236 insertions(+), 83 deletions(-) rename client/Packages/com.beamable/Editor/BeamCli/Commands/{BeamBundleHistoryCommandOutput.cs => BeamBundleReleaseInfo.cs} (53%) rename client/Packages/com.beamable/Editor/BeamCli/Commands/{BeamBundleHistoryCommandOutput.cs.meta => BeamBundleReleaseInfo.cs.meta} (83%) create mode 100644 client/Packages/com.beamable/Editor/BeamCli/Commands/BeamBundleReleasesCommandOutput.cs rename client/Packages/com.beamable/Editor/BeamCli/Commands/{BeamBundlesHistory.cs.meta => BeamBundleReleasesCommandOutput.cs.meta} (83%) create mode 100644 client/Packages/com.beamable/Editor/BeamCli/Commands/BeamBundleSummaryInfo.cs create mode 100644 client/Packages/com.beamable/Editor/BeamCli/Commands/BeamBundleSummaryInfo.cs.meta rename client/Packages/com.beamable/Editor/BeamCli/Commands/{BeamBundlesHistory.cs => BeamBundlesReleases.cs} (66%) create mode 100644 client/Packages/com.beamable/Editor/BeamCli/Commands/BeamBundlesReleases.cs.meta create mode 100644 client/Packages/com.beamable/Editor/BeamCli/Commands/BeamUnityVerifyPackageMetas.cs create mode 100644 client/Packages/com.beamable/Editor/BeamCli/Commands/BeamUnityVerifyPackageMetas.cs.meta create mode 100644 client/Packages/com.beamable/Editor/BeamCli/Commands/BeamVerifyPackageMetasCommandOutput.cs create mode 100644 client/Packages/com.beamable/Editor/BeamCli/Commands/BeamVerifyPackageMetasCommandOutput.cs.meta diff --git a/client/Packages/com.beamable/Editor/BeamCli/Commands/BeamBundleAclCommandOutput.cs b/client/Packages/com.beamable/Editor/BeamCli/Commands/BeamBundleAclCommandOutput.cs index b5995cd9d2..846b425523 100644 --- a/client/Packages/com.beamable/Editor/BeamCli/Commands/BeamBundleAclCommandOutput.cs +++ b/client/Packages/com.beamable/Editor/BeamCli/Commands/BeamBundleAclCommandOutput.cs @@ -8,7 +8,6 @@ namespace Beamable.Editor.BeamCli.Commands public partial class BeamBundleAclCommandOutput { public string name; - public string checksum; public string scope; } } diff --git a/client/Packages/com.beamable/Editor/BeamCli/Commands/BeamBundleHistoryCommandOutput.cs b/client/Packages/com.beamable/Editor/BeamCli/Commands/BeamBundleReleaseInfo.cs similarity index 53% rename from client/Packages/com.beamable/Editor/BeamCli/Commands/BeamBundleHistoryCommandOutput.cs rename to client/Packages/com.beamable/Editor/BeamCli/Commands/BeamBundleReleaseInfo.cs index a9d692e0f2..b1b2735c51 100644 --- a/client/Packages/com.beamable/Editor/BeamCli/Commands/BeamBundleHistoryCommandOutput.cs +++ b/client/Packages/com.beamable/Editor/BeamCli/Commands/BeamBundleReleaseInfo.cs @@ -5,8 +5,10 @@ namespace Beamable.Editor.BeamCli.Commands using Beamable.Common.BeamCli; [System.SerializableAttribute()] - public partial class BeamBundleHistoryCommandOutput + public partial class BeamBundleReleaseInfo { - public BeamBundleInfo[] history; + public long version; + public string checksum; + public long publishedAt; } } diff --git a/client/Packages/com.beamable/Editor/BeamCli/Commands/BeamBundleHistoryCommandOutput.cs.meta b/client/Packages/com.beamable/Editor/BeamCli/Commands/BeamBundleReleaseInfo.cs.meta similarity index 83% rename from client/Packages/com.beamable/Editor/BeamCli/Commands/BeamBundleHistoryCommandOutput.cs.meta rename to client/Packages/com.beamable/Editor/BeamCli/Commands/BeamBundleReleaseInfo.cs.meta index dccb12aa6b..3946ddf0f4 100644 --- a/client/Packages/com.beamable/Editor/BeamCli/Commands/BeamBundleHistoryCommandOutput.cs.meta +++ b/client/Packages/com.beamable/Editor/BeamCli/Commands/BeamBundleReleaseInfo.cs.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: e035e590ae3b437ac0bc82dfeaff88cc +guid: 043ae550a649061eda725baf15cad9f7 MonoImporter: externalObjects: {} serializedVersion: 2 diff --git a/client/Packages/com.beamable/Editor/BeamCli/Commands/BeamBundleReleasesCommandOutput.cs b/client/Packages/com.beamable/Editor/BeamCli/Commands/BeamBundleReleasesCommandOutput.cs new file mode 100644 index 0000000000..0840634fe8 --- /dev/null +++ b/client/Packages/com.beamable/Editor/BeamCli/Commands/BeamBundleReleasesCommandOutput.cs @@ -0,0 +1,13 @@ + +namespace Beamable.Editor.BeamCli.Commands +{ + using Beamable.Common; + using Beamable.Common.BeamCli; + + [System.SerializableAttribute()] + public partial class BeamBundleReleasesCommandOutput + { + public BeamBundleReleaseInfo[] releases; + public Beamable.Common.BeamCli.Contracts.BundleTagInfo[] tags; + } +} diff --git a/client/Packages/com.beamable/Editor/BeamCli/Commands/BeamBundlesHistory.cs.meta b/client/Packages/com.beamable/Editor/BeamCli/Commands/BeamBundleReleasesCommandOutput.cs.meta similarity index 83% rename from client/Packages/com.beamable/Editor/BeamCli/Commands/BeamBundlesHistory.cs.meta rename to client/Packages/com.beamable/Editor/BeamCli/Commands/BeamBundleReleasesCommandOutput.cs.meta index 2851a571b1..a962ca36bc 100644 --- a/client/Packages/com.beamable/Editor/BeamCli/Commands/BeamBundlesHistory.cs.meta +++ b/client/Packages/com.beamable/Editor/BeamCli/Commands/BeamBundleReleasesCommandOutput.cs.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: 70c924d95bf2c6b780597044e121b1f1 +guid: 21b8e863704de5a8fed730eb1608566b MonoImporter: externalObjects: {} serializedVersion: 2 diff --git a/client/Packages/com.beamable/Editor/BeamCli/Commands/BeamBundleSummaryInfo.cs b/client/Packages/com.beamable/Editor/BeamCli/Commands/BeamBundleSummaryInfo.cs new file mode 100644 index 0000000000..cfb2796a46 --- /dev/null +++ b/client/Packages/com.beamable/Editor/BeamCli/Commands/BeamBundleSummaryInfo.cs @@ -0,0 +1,18 @@ + +namespace Beamable.Editor.BeamCli.Commands +{ + using Beamable.Common; + using Beamable.Common.BeamCli; + + [System.SerializableAttribute()] + public partial class BeamBundleSummaryInfo + { + public string name; + public string acl; + public string ownerCid; + public string latestChecksum; + public long latestVersion; + public Beamable.Common.BeamCli.Contracts.BundleTagInfo[] tags; + public long updatedAt; + } +} diff --git a/client/Packages/com.beamable/Editor/BeamCli/Commands/BeamBundleSummaryInfo.cs.meta b/client/Packages/com.beamable/Editor/BeamCli/Commands/BeamBundleSummaryInfo.cs.meta new file mode 100644 index 0000000000..d50764aa70 --- /dev/null +++ b/client/Packages/com.beamable/Editor/BeamCli/Commands/BeamBundleSummaryInfo.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 15a9c65bfb8d1efa12ed13283cab3846 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/client/Packages/com.beamable/Editor/BeamCli/Commands/BeamBundlesAcl.cs b/client/Packages/com.beamable/Editor/BeamCli/Commands/BeamBundlesAcl.cs index b7bc3a4599..a5f6216649 100644 --- a/client/Packages/com.beamable/Editor/BeamCli/Commands/BeamBundlesAcl.cs +++ b/client/Packages/com.beamable/Editor/BeamCli/Commands/BeamBundlesAcl.cs @@ -6,17 +6,17 @@ namespace Beamable.Editor.BeamCli.Commands public partial class BundlesAclArgs : Beamable.Common.BeamCli.IBeamCommandArgs { - /// The bundle reference: , @, or @sha256: (a name or tag resolves to its checksum; a bare name means @latest). Optionally namespaced as @/ - public string bundleRef; - /// Visibility tier to widen to (each tier is a superset of the previous, not a list of realms): 'realm' = only this realm; 'org' = every realm in your customer; 'public' = every realm in every customer. A literal . / / * is also accepted + /// The bundle to widen, optionally namespaced as @/. Visibility applies to the whole name, so no tag or checksum is accepted + public string bundleName; + /// Visibility tier to widen to (each tier is a superset of the previous, not a list of realms): 'realm' = only this realm; 'org' = every realm in your customer; 'public' = every realm in every customer. '*' is also accepted as an alias for 'public' public string scope; /// Serializes the arguments for command line usage. public virtual string Serialize() { // Create a list of arguments for the command System.Collections.Generic.List genBeamCommandArgs = new System.Collections.Generic.List(); - // Add the bundleRef value to the list of args. - genBeamCommandArgs.Add(this.bundleRef.ToString()); + // Add the bundleName value to the list of args. + genBeamCommandArgs.Add(this.bundleName.ToString()); // If the scope value was not default, then add it to the list of args. if ((this.scope != default(string))) { diff --git a/client/Packages/com.beamable/Editor/BeamCli/Commands/BeamBundlesPublish.cs b/client/Packages/com.beamable/Editor/BeamCli/Commands/BeamBundlesPublish.cs index 5b584a01ff..3df4974c41 100644 --- a/client/Packages/com.beamable/Editor/BeamCli/Commands/BeamBundlesPublish.cs +++ b/client/Packages/com.beamable/Editor/BeamCli/Commands/BeamBundlesPublish.cs @@ -39,7 +39,7 @@ public partial class BundlesPublishArgs : Beamable.Common.BeamCli.IBeamCommandAr public bool fromLatestPlan; /// An additional tag to advance to the published checksum public string tag; - /// Widen the published checksum's visibility tier (each tier is a superset of the previous, not a list of realms): 'realm' = only this realm; 'org' = every realm in your customer; 'public' = every realm in every customer. A literal . / / * is also accepted + /// Widen the bundle's visibility tier (each tier is a superset of the previous, not a list of realms): 'realm' = only this realm; 'org' = every realm in your customer; 'public' = every realm in every customer. '*' is also accepted as an alias for 'public' public string scope; /// Serializes the arguments for command line usage. public virtual string Serialize() diff --git a/client/Packages/com.beamable/Editor/BeamCli/Commands/BeamBundlesHistory.cs b/client/Packages/com.beamable/Editor/BeamCli/Commands/BeamBundlesReleases.cs similarity index 66% rename from client/Packages/com.beamable/Editor/BeamCli/Commands/BeamBundlesHistory.cs rename to client/Packages/com.beamable/Editor/BeamCli/Commands/BeamBundlesReleases.cs index 214b083738..49e759275a 100644 --- a/client/Packages/com.beamable/Editor/BeamCli/Commands/BeamBundlesHistory.cs +++ b/client/Packages/com.beamable/Editor/BeamCli/Commands/BeamBundlesReleases.cs @@ -4,10 +4,12 @@ namespace Beamable.Editor.BeamCli.Commands using Beamable.Common; using Beamable.Common.BeamCli; - public partial class BundlesHistoryArgs : Beamable.Common.BeamCli.IBeamCommandArgs + public partial class BundlesReleasesArgs : Beamable.Common.BeamCli.IBeamCommandArgs { /// The bundle name, optionally namespaced as @/ public string bundleName; + /// Stop after this many releases, newest first. 0 (the default) walks the whole log + public int limit; /// Serializes the arguments for command line usage. public virtual string Serialize() { @@ -15,6 +17,11 @@ public virtual string Serialize() System.Collections.Generic.List genBeamCommandArgs = new System.Collections.Generic.List(); // Add the bundleName value to the list of args. genBeamCommandArgs.Add(this.bundleName.ToString()); + // If the limit value was not default, then add it to the list of args. + if ((this.limit != default(int))) + { + genBeamCommandArgs.Add(("--limit=" + this.limit)); + } string genBeamCommandStr = ""; // Join all the args with spaces genBeamCommandStr = string.Join(" ", genBeamCommandArgs); @@ -23,30 +30,30 @@ public virtual string Serialize() } public partial class BeamCommands { - public virtual BundlesHistoryWrapper BundlesHistory(BundlesHistoryArgs historyArgs) + public virtual BundlesReleasesWrapper BundlesReleases(BundlesReleasesArgs releasesArgs) { // Create a list of arguments for the command System.Collections.Generic.List genBeamCommandArgs = new System.Collections.Generic.List(); genBeamCommandArgs.Add("beam"); genBeamCommandArgs.Add(defaultBeamArgs.Serialize()); genBeamCommandArgs.Add("bundles"); - genBeamCommandArgs.Add("history"); - genBeamCommandArgs.Add(historyArgs.Serialize()); + genBeamCommandArgs.Add("releases"); + genBeamCommandArgs.Add(releasesArgs.Serialize()); // Create an instance of an IBeamCommand Beamable.Common.BeamCli.IBeamCommand command = this._factory.Create(); // Join all the command paths and args into one string string genBeamCommandStr = string.Join(" ", genBeamCommandArgs); // Configure the command with the command string command.SetCommand(genBeamCommandStr); - BundlesHistoryWrapper genBeamCommandWrapper = new BundlesHistoryWrapper(); + BundlesReleasesWrapper genBeamCommandWrapper = new BundlesReleasesWrapper(); genBeamCommandWrapper.Command = command; // Return the command! return genBeamCommandWrapper; } } - public partial class BundlesHistoryWrapper : Beamable.Common.BeamCli.BeamCommandWrapper + public partial class BundlesReleasesWrapper : Beamable.Common.BeamCli.BeamCommandWrapper { - public virtual BundlesHistoryWrapper OnStreamBundleHistoryCommandOutput(System.Action> cb) + public virtual BundlesReleasesWrapper OnStreamBundleReleasesCommandOutput(System.Action> cb) { this.Command.On("stream", cb); return this; diff --git a/client/Packages/com.beamable/Editor/BeamCli/Commands/BeamBundlesReleases.cs.meta b/client/Packages/com.beamable/Editor/BeamCli/Commands/BeamBundlesReleases.cs.meta new file mode 100644 index 0000000000..4785f2aca0 --- /dev/null +++ b/client/Packages/com.beamable/Editor/BeamCli/Commands/BeamBundlesReleases.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: e92265315b5f9dea580c0748d960b7c5 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/client/Packages/com.beamable/Editor/BeamCli/Commands/BeamGetBundleCommandOutput.cs b/client/Packages/com.beamable/Editor/BeamCli/Commands/BeamGetBundleCommandOutput.cs index 65f12c316c..402384615e 100644 --- a/client/Packages/com.beamable/Editor/BeamCli/Commands/BeamGetBundleCommandOutput.cs +++ b/client/Packages/com.beamable/Editor/BeamCli/Commands/BeamGetBundleCommandOutput.cs @@ -9,5 +9,6 @@ public partial class BeamGetBundleCommandOutput { public BeamBundleInfo bundle; public Beamable.Common.BeamCli.Contracts.BundleTagInfo[] tags; + public long version; } } diff --git a/client/Packages/com.beamable/Editor/BeamCli/Commands/BeamListBundlesCommandOutput.cs b/client/Packages/com.beamable/Editor/BeamCli/Commands/BeamListBundlesCommandOutput.cs index be99f12c5b..2e024d6fab 100644 --- a/client/Packages/com.beamable/Editor/BeamCli/Commands/BeamListBundlesCommandOutput.cs +++ b/client/Packages/com.beamable/Editor/BeamCli/Commands/BeamListBundlesCommandOutput.cs @@ -7,7 +7,7 @@ namespace Beamable.Editor.BeamCli.Commands [System.SerializableAttribute()] public partial class BeamListBundlesCommandOutput { - public BeamBundleInfo[] published; + public BeamBundleSummaryInfo[] published; public BeamBundleInfo[] local; } } diff --git a/client/Packages/com.beamable/Editor/BeamCli/Commands/BeamProjectGenerateProperties.cs b/client/Packages/com.beamable/Editor/BeamCli/Commands/BeamProjectGenerateProperties.cs index 55fecc3e44..06eb9efa85 100644 --- a/client/Packages/com.beamable/Editor/BeamCli/Commands/BeamProjectGenerateProperties.cs +++ b/client/Packages/com.beamable/Editor/BeamCli/Commands/BeamProjectGenerateProperties.cs @@ -1,67 +1,67 @@ -namespace Beamable.Editor.BeamCli.Commands -{ - using Beamable.Common; - using Beamable.Common.BeamCli; - - public partial class ProjectGeneratePropertiesArgs : Beamable.Common.BeamCli.IBeamCommandArgs - { - /// Where the file will be created - public string output; - /// Beam path to be used. Use BEAM_SOLUTION_DIR to template in $(SolutionDir) - public string beamPath; +namespace Beamable.Editor.BeamCli.Commands +{ + using Beamable.Common; + using Beamable.Common.BeamCli; + + public partial class ProjectGeneratePropertiesArgs : Beamable.Common.BeamCli.IBeamCommandArgs + { + /// Where the file will be created + public string output; + /// Beam path to be used. Use BEAM_SOLUTION_DIR to template in $(SolutionDir) + public string beamPath; /// The solution path to be used. ///The following values have special meaning and are not treated as paths... - ///- "DIR.PROPS" = $([System.IO.Path]::GetDirectoryName(`$(DirectoryBuildPropsPath)`)) - public string solutionDir; - /// A path relative to the given solution directory, that will be used to store the projects /bin and /obj directories. Note: the given path will have the project's assembly name and the bin or obj folder appended - public string buildDir; - /// Serializes the arguments for command line usage. - public virtual string Serialize() - { - // Create a list of arguments for the command - System.Collections.Generic.List genBeamCommandArgs = new System.Collections.Generic.List(); - // Add the output value to the list of args. - genBeamCommandArgs.Add(this.output.ToString()); - // Add the beamPath value to the list of args. - genBeamCommandArgs.Add(this.beamPath.ToString()); - // Add the solutionDir value to the list of args. - genBeamCommandArgs.Add(this.solutionDir.ToString()); - // If the buildDir value was not default, then add it to the list of args. - if ((this.buildDir != default(string))) - { - genBeamCommandArgs.Add(("--build-dir=" + this.buildDir)); - } - string genBeamCommandStr = ""; - // Join all the args with spaces - genBeamCommandStr = string.Join(" ", genBeamCommandArgs); - return genBeamCommandStr; - } - } - public partial class BeamCommands - { - public virtual ProjectGeneratePropertiesWrapper ProjectGenerateProperties(ProjectGeneratePropertiesArgs generatePropertiesArgs) - { - // Create a list of arguments for the command - System.Collections.Generic.List genBeamCommandArgs = new System.Collections.Generic.List(); - genBeamCommandArgs.Add("beam"); - genBeamCommandArgs.Add(defaultBeamArgs.Serialize()); - genBeamCommandArgs.Add("project"); - genBeamCommandArgs.Add("generate-properties"); - genBeamCommandArgs.Add(generatePropertiesArgs.Serialize()); - // Create an instance of an IBeamCommand - Beamable.Common.BeamCli.IBeamCommand command = this._factory.Create(); - // Join all the command paths and args into one string - string genBeamCommandStr = string.Join(" ", genBeamCommandArgs); - // Configure the command with the command string - command.SetCommand(genBeamCommandStr); - ProjectGeneratePropertiesWrapper genBeamCommandWrapper = new ProjectGeneratePropertiesWrapper(); - genBeamCommandWrapper.Command = command; - // Return the command! - return genBeamCommandWrapper; - } - } - public partial class ProjectGeneratePropertiesWrapper : Beamable.Common.BeamCli.BeamCommandWrapper - { - } -} + ///- "DIR.PROPS" = $([System.IO.Path]::GetDirectoryName(`$(DirectoryBuildPropsPath)`)) + public string solutionDir; + /// A path relative to the given solution directory, that will be used to store the projects /bin and /obj directories. Note: the given path will have the project's assembly name and the bin or obj folder appended + public string buildDir; + /// Serializes the arguments for command line usage. + public virtual string Serialize() + { + // Create a list of arguments for the command + System.Collections.Generic.List genBeamCommandArgs = new System.Collections.Generic.List(); + // Add the output value to the list of args. + genBeamCommandArgs.Add(this.output.ToString()); + // Add the beamPath value to the list of args. + genBeamCommandArgs.Add(this.beamPath.ToString()); + // Add the solutionDir value to the list of args. + genBeamCommandArgs.Add(this.solutionDir.ToString()); + // If the buildDir value was not default, then add it to the list of args. + if ((this.buildDir != default(string))) + { + genBeamCommandArgs.Add(("--build-dir=" + this.buildDir)); + } + string genBeamCommandStr = ""; + // Join all the args with spaces + genBeamCommandStr = string.Join(" ", genBeamCommandArgs); + return genBeamCommandStr; + } + } + public partial class BeamCommands + { + public virtual ProjectGeneratePropertiesWrapper ProjectGenerateProperties(ProjectGeneratePropertiesArgs generatePropertiesArgs) + { + // Create a list of arguments for the command + System.Collections.Generic.List genBeamCommandArgs = new System.Collections.Generic.List(); + genBeamCommandArgs.Add("beam"); + genBeamCommandArgs.Add(defaultBeamArgs.Serialize()); + genBeamCommandArgs.Add("project"); + genBeamCommandArgs.Add("generate-properties"); + genBeamCommandArgs.Add(generatePropertiesArgs.Serialize()); + // Create an instance of an IBeamCommand + Beamable.Common.BeamCli.IBeamCommand command = this._factory.Create(); + // Join all the command paths and args into one string + string genBeamCommandStr = string.Join(" ", genBeamCommandArgs); + // Configure the command with the command string + command.SetCommand(genBeamCommandStr); + ProjectGeneratePropertiesWrapper genBeamCommandWrapper = new ProjectGeneratePropertiesWrapper(); + genBeamCommandWrapper.Command = command; + // Return the command! + return genBeamCommandWrapper; + } + } + public partial class ProjectGeneratePropertiesWrapper : Beamable.Common.BeamCli.BeamCommandWrapper + { + } +} diff --git a/client/Packages/com.beamable/Editor/BeamCli/Commands/BeamPublishBundleCommandOutput.cs b/client/Packages/com.beamable/Editor/BeamCli/Commands/BeamPublishBundleCommandOutput.cs index 79054b88b1..bee5c32510 100644 --- a/client/Packages/com.beamable/Editor/BeamCli/Commands/BeamPublishBundleCommandOutput.cs +++ b/client/Packages/com.beamable/Editor/BeamCli/Commands/BeamPublishBundleCommandOutput.cs @@ -10,6 +10,7 @@ public partial class BeamPublishBundleCommandOutput public string name; public string checksum; public bool isNew; + public long version; public BeamBundleDiffResult diff; } } diff --git a/client/Packages/com.beamable/Editor/BeamCli/Commands/BeamUnityVerifyPackageMetas.cs b/client/Packages/com.beamable/Editor/BeamCli/Commands/BeamUnityVerifyPackageMetas.cs new file mode 100644 index 0000000000..f1c85fd8e7 --- /dev/null +++ b/client/Packages/com.beamable/Editor/BeamCli/Commands/BeamUnityVerifyPackageMetas.cs @@ -0,0 +1,55 @@ + +namespace Beamable.Editor.BeamCli.Commands +{ + using Beamable.Common; + using Beamable.Common.BeamCli; + + public partial class UnityVerifyPackageMetasArgs : Beamable.Common.BeamCli.IBeamCommandArgs + { + /// the path to the Unity package folder to verify + public string packagePath; + /// Serializes the arguments for command line usage. + public virtual string Serialize() + { + // Create a list of arguments for the command + System.Collections.Generic.List genBeamCommandArgs = new System.Collections.Generic.List(); + // Add the packagePath value to the list of args. + genBeamCommandArgs.Add(this.packagePath.ToString()); + string genBeamCommandStr = ""; + // Join all the args with spaces + genBeamCommandStr = string.Join(" ", genBeamCommandArgs); + return genBeamCommandStr; + } + } + public partial class BeamCommands + { + public virtual UnityVerifyPackageMetasWrapper UnityVerifyPackageMetas(UnityVerifyPackageMetasArgs verifyPackageMetasArgs) + { + // Create a list of arguments for the command + System.Collections.Generic.List genBeamCommandArgs = new System.Collections.Generic.List(); + genBeamCommandArgs.Add("beam"); + genBeamCommandArgs.Add(defaultBeamArgs.Serialize()); + genBeamCommandArgs.Add("unity"); + genBeamCommandArgs.Add("verify-package-metas"); + genBeamCommandArgs.Add(verifyPackageMetasArgs.Serialize()); + // Create an instance of an IBeamCommand + Beamable.Common.BeamCli.IBeamCommand command = this._factory.Create(); + // Join all the command paths and args into one string + string genBeamCommandStr = string.Join(" ", genBeamCommandArgs); + // Configure the command with the command string + command.SetCommand(genBeamCommandStr); + UnityVerifyPackageMetasWrapper genBeamCommandWrapper = new UnityVerifyPackageMetasWrapper(); + genBeamCommandWrapper.Command = command; + // Return the command! + return genBeamCommandWrapper; + } + } + public partial class UnityVerifyPackageMetasWrapper : Beamable.Common.BeamCli.BeamCommandWrapper + { + public virtual UnityVerifyPackageMetasWrapper OnStreamVerifyPackageMetasCommandOutput(System.Action> cb) + { + this.Command.On("stream", cb); + return this; + } + } +} diff --git a/client/Packages/com.beamable/Editor/BeamCli/Commands/BeamUnityVerifyPackageMetas.cs.meta b/client/Packages/com.beamable/Editor/BeamCli/Commands/BeamUnityVerifyPackageMetas.cs.meta new file mode 100644 index 0000000000..df23b984e0 --- /dev/null +++ b/client/Packages/com.beamable/Editor/BeamCli/Commands/BeamUnityVerifyPackageMetas.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 9ad4c61ff58aff3eca1dd1df54f0c16f +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/client/Packages/com.beamable/Editor/BeamCli/Commands/BeamVerifyPackageMetasCommandOutput.cs b/client/Packages/com.beamable/Editor/BeamCli/Commands/BeamVerifyPackageMetasCommandOutput.cs new file mode 100644 index 0000000000..3b5fe1512b --- /dev/null +++ b/client/Packages/com.beamable/Editor/BeamCli/Commands/BeamVerifyPackageMetasCommandOutput.cs @@ -0,0 +1,13 @@ + +namespace Beamable.Editor.BeamCli.Commands +{ + using Beamable.Common; + using Beamable.Common.BeamCli; + + [System.SerializableAttribute()] + public partial class BeamVerifyPackageMetasCommandOutput + { + public System.Collections.Generic.List directoriesMissingMetaFiles; + public int directoriesChecked; + } +} diff --git a/client/Packages/com.beamable/Editor/BeamCli/Commands/BeamVerifyPackageMetasCommandOutput.cs.meta b/client/Packages/com.beamable/Editor/BeamCli/Commands/BeamVerifyPackageMetasCommandOutput.cs.meta new file mode 100644 index 0000000000..794d7fc436 --- /dev/null +++ b/client/Packages/com.beamable/Editor/BeamCli/Commands/BeamVerifyPackageMetasCommandOutput.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: b24c6e704ee350bf7c4479d872b416a5 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: