File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed
Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -46,6 +46,7 @@ class _Path {
4646 static const version = '.version' ;
4747 static const changelog = 'CHANGELOG.md' ;
4848 static const pubspec = 'pubspec.yaml' ;
49+ static const readme = 'README.md' ;
4950 static const livekitVersion = 'lib/src/livekit.dart' ;
5051 static const iosPodspec = 'ios/livekit_client.podspec' ;
5152 static const macosPodspec = 'macos/livekit_client.podspec' ;
@@ -287,6 +288,13 @@ void updateVersionFiles(SemanticVersion version) {
287288 RegExp (r"s\.version\s*=\s*'[^']*'" ),
288289 "s.version = '$version '" ,
289290 );
291+
292+ // Update README.md installation snippet
293+ replaceVersionInFile (
294+ _Path .readme,
295+ RegExp (r'^\s*livekit_client:\s+.*$' , multiLine: true ),
296+ ' livekit_client: ^$version ' ,
297+ );
290298}
291299
292300void cleanupChangesDirectory () {
You can’t perform that action at this time.
0 commit comments