Skip to content
Merged
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
8 changes: 8 additions & 0 deletions scripts/create_version.dart
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ class _Path {
static const version = '.version';
static const changelog = 'CHANGELOG.md';
static const pubspec = 'pubspec.yaml';
static const readme = 'README.md';
static const livekitVersion = 'lib/src/livekit.dart';
static const iosPodspec = 'ios/livekit_client.podspec';
static const macosPodspec = 'macos/livekit_client.podspec';
Expand Down Expand Up @@ -287,6 +288,13 @@ void updateVersionFiles(SemanticVersion version) {
RegExp(r"s\.version\s*=\s*'[^']*'"),
"s.version = '$version'",
);

// Update README.md installation snippet
replaceVersionInFile(
_Path.readme,
RegExp(r'^\s*livekit_client:\s+.*$', multiLine: true),
' livekit_client: ^$version',
);
}

void cleanupChangesDirectory() {
Expand Down
Loading