Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/sdk-version-constant.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
io.livekit.livekit-sdk: patch
---

The SDK version reported to the server is now compiled into the SDK, so it is no longer `"unknown"` when the SDK is copied into `Assets/` or in the first Editor session of a project. The SDK no longer writes `Assets/Resources/LiveKitSdkVersionInfo.txt` into your project; you can delete that file.
31 changes: 0 additions & 31 deletions Editor/PackageVersionEmbedder.cs

This file was deleted.

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

This file was deleted.

7 changes: 5 additions & 2 deletions RELEASING.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,11 @@ This file holds what is specific to this repository.
Users install the package from its git URL and tag. The tag is the whole
release: there is no build job and no registry.

The version is in `package.json` and in the install instructions of
`README.md`. The release PR moves both. Never edit the version by hand.
The version is in `package.json`, in the install instructions of
`README.md`, and in `PackageVersion.Version`
(`Runtime/Scripts/Internal/PackageVersion.cs`), which is reported to the
server when a session connects. The release PR moves all three. Never edit
the version by hand.

## Workflows

Expand Down
11 changes: 4 additions & 7 deletions Runtime/Scripts/Internal/PackageVersion.cs
Original file line number Diff line number Diff line change
@@ -1,13 +1,10 @@
using UnityEngine;

namespace LiveKit.Internal
{
public static class PackageVersion
{
public static string Get()
{
var asset = Resources.Load<TextAsset>("LiveKitSdkVersionInfo");
return asset != null ? asset.text.Trim() : "unknown";
}
// Updated by verwalter on each release, together with package.json (see verwalter.toml).
public const string Version = "2.1.1";

public static string Get() => Version;
}
}
1 change: 1 addition & 0 deletions verwalter.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,5 @@ path = "."
versioning.files = [
"package.json",
{ path = "README.md", regex = '`#v(?<version>\d[^`]*)`' },
{ path = "Runtime/Scripts/Internal/PackageVersion.cs", regex = 'string Version\s*=\s*"(?<version>[^"]+)"' },
]
Loading