mirror of
https://github.com/flutter/flutter
synced 2024-10-13 11:42:54 +00:00
cf37a4721a
This patch reorganises flutter_driver's lib/src directory into three subdirectories: * driver: sources transitively imported/exported by flutter_driver.dart, which defines the API used by driver tests executed on the host machine. * extension: sources transitively imported/exported by driver_extension.dart, which defines the API used to instrument a Flutter app running on the target device for use with a driver test. * common: sources common to both driver and extension code. This makes rolling Flutter into repositories that use Bazel (or Bazel-like build systems) significantly more robust, due to the simpler glob patterns involved.
28 lines
1 KiB
Dart
28 lines
1 KiB
Dart
// Copyright 2016 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.
|
|
|
|
/// This library provides a Dart VM service extension that is required for
|
|
/// tests that use `package:flutter_driver` to drive applications from a
|
|
/// separate process, similar to Selenium (web), Espresso (Android) and UI
|
|
/// Automation (iOS).
|
|
///
|
|
/// The extension must be installed in the same process (isolate) with your
|
|
/// application.
|
|
///
|
|
/// To enable the extension call [enableFlutterDriverExtension] early in your
|
|
/// program, prior to running your application, e.g. before you call `runApp`.
|
|
///
|
|
/// Example:
|
|
///
|
|
/// import 'package:flutter/material.dart';
|
|
/// import 'package:flutter_driver/driver_extension.dart';
|
|
///
|
|
/// main() {
|
|
/// enableFlutterDriverExtension();
|
|
/// runApp(new ExampleApp());
|
|
/// }
|
|
library flutter_driver_extension;
|
|
|
|
export 'src/extension/extension.dart' show enableFlutterDriverExtension, DataHandler;
|