flutter_view_ios__start_up.dart 970 Bytes
Newer Older
Ian Hickson's avatar
Ian Hickson committed
1
// Copyright 2014 The Flutter Authors. All rights reserved.
2 3 4 5
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

import 'dart:async';
6
import 'dart:io';
7

8
import 'package:flutter_devicelab/framework/utils.dart';
9 10 11 12
import 'package:flutter_devicelab/tasks/perf_tests.dart';
import 'package:flutter_devicelab/framework/adb.dart';
import 'package:flutter_devicelab/framework/framework.dart';

13
Future<void> main() async {
14
  deviceOperatingSystem = DeviceOperatingSystem.ios;
15 16 17 18 19
  await task(() async {
    final Directory iosDirectory = dir(
      '${flutterDirectory.path}/examples/flutter_view/ios',
    );
    await inDirectory(iosDirectory, () async {
20 21 22 23 24 25 26
      await exec(
        'pod',
        <String>['install'],
        environment: <String, String>{
          'LANG': 'en_US.UTF-8',
        },
      );
27 28 29 30
    });

    final TaskFunction taskFunction = createFlutterViewStartupTest();
    return await taskFunction();
31
  });
32
}