Skip to content

Commit

Permalink
populate a new 'serverRevision' field for the version response
Browse files Browse the repository at this point in the history
  • Loading branch information
devoncarew committed Dec 27, 2023
1 parent 16a54ac commit eb19f86
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkgs/dart_services/lib/src/common_server.dart
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

import 'dart:async';
import 'dart:convert';
import 'dart:io';

import 'package:logging/logging.dart';
import 'package:shelf/shelf.dart';
Expand Down Expand Up @@ -241,6 +242,7 @@ class CommonServerApi {
dartVersion: sdk.dartVersion,
flutterVersion: sdk.flutterVersion,
engineVersion: sdk.engineVersion,
serverRevision: Platform.environment['K_REVISION'],
experiments: sdk.experiments,
packages: packages,
);
Expand Down
2 changes: 2 additions & 0 deletions pkgs/dart_services/lib/src/shared/model.dart

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions pkgs/dart_services/lib/src/shared/model.g.dart

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions pkgs/dartpad_shared/lib/model.dart
Original file line number Diff line number Diff line change
Expand Up @@ -363,13 +363,15 @@ class VersionResponse {
final String dartVersion;
final String flutterVersion;
final String engineVersion;
final String? serverRevision;
final List<String> experiments;
final List<PackageInfo> packages;

VersionResponse({
required this.dartVersion,
required this.flutterVersion,
required this.engineVersion,
this.serverRevision,
required this.experiments,
required this.packages,
});
Expand Down
2 changes: 2 additions & 0 deletions pkgs/dartpad_shared/lib/model.g.dart

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit eb19f86

Please sign in to comment.