Skip to content

Compile the SDK version in as a constant managed by verwalter - #412

Merged
MaxHeimbrock merged 3 commits into
mainfrom
max/sdk-version-constant
Dec 2, 2026
Merged

MaxHeimbrock merged 3 commits into
mainfrom
max/sdk-version-constant

Conversation

@MaxHeimbrock

@MaxHeimbrock MaxHeimbrock commented Dec 1, 2026 •

Copy link
Copy Markdown
Contributor

Stacked on #413 (RELEASING.md). Merge that first.

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.Version is now a constant. Get() stays and returns it, so FfiClient is unchanged.
  • verwalter.toml lists PackageVersion.cs with a regex on the constant, so each release updates it together with package.json and README.md. If the files disagree, every verwalter command warns and names them, and the next release aligns them.
  • PackageVersionEmbedder is removed. Consumers can delete their leftover Assets/Resources/LiveKitSdkVersionInfo.txt; the changeset says so. The .gitignore entries 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) lists PackageVersion.Version as the third versioned file and says it is reported to the server.
  • Changeset: patch.

Testing

  • verwalter status shows no mismatch warning. Setting the constant to 2.0.0 produces warning: ... PackageVersion.cs says 2.0.0, package.json says 2.1.1.
  • verwalter branches in a throwaway clone (the 3 pending changesets → 2.2.0) changes PackageVersion.cs, package.json and README.md to 2.2.0.
  • Unity 2022.3.62f1 batch compile of Samples~/Basic: no errors, and no version file is generated.

🤖 Generated with Claude Code

@github-actions

github-actions Bot commented Dec 1, 2026

Copy link
Copy Markdown

This PR bumps

  • io.livekit.livekit-sdk: patch

@devin-ai-integration devin-ai-integration Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ Devin Review: No Issues Found

Devin Review analyzed this PR and found no bugs or issues to report.

Devin Review

@MaxHeimbrock
MaxHeimbrock force-pushed the max/sdk-version-constant branch from 864f683 to 3522a27 Compare December 1, 2026 13:14
@MaxHeimbrock
MaxHeimbrock changed the base branch from main to docs/releasing-md December 1, 2026 13:14
Base automatically changed from docs/releasing-md to main December 1, 2026 13:50
MaxHeimbrock and others added 2 commits December 1, 2026 15:23
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
MaxHeimbrock force-pushed the max/sdk-version-constant branch from 3522a27 to ed3f1e2 Compare December 1, 2026 14:24
Comment thread verwalter.toml Resolved
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>
@MaxHeimbrock
MaxHeimbrock merged commit 1ed3f83 into main Dec 2, 2026
27 of 29 checks passed
@MaxHeimbrock
MaxHeimbrock deleted the max/sdk-version-constant branch December 2, 2026 14:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants