Repository navigation
Compile the SDK version in as a constant managed by verwalter - #412
Merged
Merged
Conversation
|
This PR bumps
|
MaxHeimbrock
marked this pull request as ready for review
December 1, 2026 13:07
MaxHeimbrock
requested review from
changt,
cloudwebrtc,
ladvoc and
xianshijing-lk
as code owners
December 1, 2026 13:07
MaxHeimbrock
force-pushed
the
max/sdk-version-constant
branch
from
December 1, 2026 13:14
864f683 to
3522a27
Compare
The version reported to the server came from a text asset that an Editor script wrote into the consumer's Assets/Resources on every domain reload. That was "unknown" for copies of the SDK placed in Assets/ (no package context) and for the first Editor session of a project (the asset import is deferred past the reload in which FFI initializes), and it wrote a generated file into every consumer project. PackageVersion.Version is now a constant that verwalter updates with package.json on each release; verwalter warns if the two disagree. PackageVersionEmbedder is removed. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ING.md Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
MaxHeimbrock
force-pushed
the
max/sdk-version-constant
branch
from
December 1, 2026 14:24
3522a27 to
ed3f1e2
Compare
xianshijing-lk
approved these changes
Dec 1, 2026
Match `string Version = "..."` with any whitespace around `=` and without requiring `const`, so a reformat or a switch to `static readonly` does not silently stop verwalter from bumping it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Background
The SDK version needed for telemetry used an Editor script and was not very robust.
The version is a fixed property of each release, so it now lives in the code and verwalter keeps it in step with
package.json.Changes
PackageVersion.Versionis now a constant.Get()stays and returns it, soFfiClientis unchanged.verwalter.tomllistsPackageVersion.cswith a regex on the constant, so each release updates it together withpackage.jsonandREADME.md. If the files disagree, every verwalter command warns and names them, and the next release aligns them.PackageVersionEmbedderis removed. Consumers can delete their leftoverAssets/Resources/LiveKitSdkVersionInfo.txt; the changeset says so. The.gitignoreentries for that file stay, so contributors' leftover sample copies don't show up as untracked.RELEASING.md(from Add RELEASING.md for the verwalter release flow #413) listsPackageVersion.Versionas the third versioned file and says it is reported to the server.patch.Testing
verwalter statusshows no mismatch warning. Setting the constant to2.0.0produceswarning: ... PackageVersion.cs says 2.0.0, package.json says 2.1.1.verwalter branchesin a throwaway clone (the 3 pending changesets →2.2.0) changesPackageVersion.cs,package.jsonandREADME.mdto2.2.0.Samples~/Basic: no errors, and no version file is generated.🤖 Generated with Claude Code