Automatically set correct Observatory analytics version

R=turnidge@google.com

Review URL: https://codereview.chromium.org//1352493002 .
This commit is contained in:
John McCutchan 2015-09-16 10:47:19 -07:00
parent 13e0a49d47
commit eb3fe78200
2 changed files with 4 additions and 2 deletions

View file

@ -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() {

View file

@ -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')