mirror of
https://github.com/dart-lang/sdk
synced 2024-09-16 04:37:12 +00:00
Automatically set correct Observatory analytics version
R=turnidge@google.com Review URL: https://codereview.chromium.org//1352493002 .
This commit is contained in:
parent
13e0a49d47
commit
eb3fe78200
|
@ -7,7 +7,7 @@ part of app;
|
|||
class Analytics {
|
||||
static final _UA = 'UA-26406144-17';
|
||||
static final _name = 'Observatory';
|
||||
static final _version = '1.11';
|
||||
static final _version = const String.fromEnvironment('OBS_VER');
|
||||
static final _googleAnalytics = new AnalyticsHtml(_UA, _name, _version);
|
||||
|
||||
static initialize() {
|
||||
|
|
|
@ -139,7 +139,9 @@ def ExecuteCommand(options, args):
|
|||
options.pub_executable,
|
||||
options.pub_snapshot,
|
||||
options.package_root,
|
||||
['build', '--output', args[0]],
|
||||
['build',
|
||||
'-DOBS_VER=' + utils.GetVersion(),
|
||||
'--output', args[0]],
|
||||
options.silent)
|
||||
elif (cmd == 'deploy'):
|
||||
Deploy('build', 'deployed')
|
||||
|
|
Loading…
Reference in a new issue