Make all of the driver interface public. (#45733)

We keep finding things that we've accidentally not made public. The
pattern we use elsewhere in the platform is to just export everything,
to avoid encouraging people from importing `src/` files directly.
This commit is contained in:
Ian Hickson 2019-11-27 16:26:05 -08:00 committed by GitHub
parent a78fb87dfe
commit f2445002b2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 22 additions and 39 deletions

View file

@ -24,4 +24,4 @@
/// }
library flutter_driver_extension;
export 'src/extension/extension.dart' show enableFlutterDriverExtension, DataHandler;
export 'src/extension/extension.dart';

View file

@ -11,39 +11,22 @@
/// Protractor (Angular), Espresso (Android) or Earl Gray (iOS).
library flutter_driver;
export 'src/common/error.dart' show
DriverError,
LogLevel,
LogRecord,
flutterDriverLog;
export 'src/common/find.dart' show
SerializableFinder;
export 'src/common/health.dart' show
Health,
HealthStatus;
export 'src/common/message.dart' show
Command,
Result;
export 'src/common/render_tree.dart' show
RenderTree;
export 'src/common/wait.dart' show
CombinedCondition,
FirstFrameRasterized,
NoPendingFrame,
NoPendingPlatformMessages,
NoTransientCallbacks,
SerializableWaitCondition;
export 'src/driver/common.dart' show
testOutputsDirectory;
export 'src/driver/driver.dart' show
find,
CommonFinders,
EvaluatorFunction,
FlutterDriver,
TimelineStream;
export 'src/driver/timeline.dart' show
Timeline,
TimelineEvent;
export 'src/driver/timeline_summary.dart' show
TimelineSummary,
kBuildBudget;
export 'src/common/diagnostics_tree.dart';
export 'src/common/enum_util.dart';
export 'src/common/error.dart';
export 'src/common/find.dart';
export 'src/common/frame_sync.dart';
export 'src/common/fuchsia_compat.dart';
export 'src/common/geometry.dart';
export 'src/common/gesture.dart';
export 'src/common/health.dart';
export 'src/common/message.dart';
export 'src/common/render_tree.dart';
export 'src/common/request_data.dart';
export 'src/common/semantics.dart';
export 'src/common/text.dart';
export 'src/common/wait.dart';
export 'src/driver/common.dart';
export 'src/driver/driver.dart';
export 'src/driver/timeline.dart';
export 'src/driver/timeline_summary.dart';

View file

@ -1248,5 +1248,5 @@ class DriverOffset {
}
@override
int get hashCode => dx.hashCode + dy.hashCode;
int get hashCode => dx.hashCode ^ dy.hashCode;
}

View file

@ -5,7 +5,7 @@
import 'dart:async';
import 'dart:core';
import 'package:flutter_driver/flutter_driver.dart';
import 'package:flutter_driver/flutter_driver.dart' hide Logger;
import 'package:fuchsia_remote_debug_protocol/fuchsia_remote_debug_protocol.dart';
import 'package:fuchsia_remote_debug_protocol/logging.dart';