platform_view_ios__start_up.dart 865 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12
// Copyright 2018 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

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

import 'package:flutter_devicelab/framework/utils.dart';
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 15 16 17 18 19 20 21 22 23 24 25 26
  deviceOperatingSystem = DeviceOperatingSystem.ios;
  await task(() async {
    final Directory iosDirectory = dir(
      '${flutterDirectory.path}/examples/platform_view/ios',
    );
    await inDirectory(iosDirectory, () async {
      await exec('pod', <String>['install']);
    });

    final TaskFunction taskFunction = createPlatformViewStartupTest();
    return await taskFunction();
  });
}