Skip to content
This repository was archived by the owner on Feb 22, 2023. It is now read-only.
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix tests
  • Loading branch information
collinjackson committed Aug 27, 2019
commit c3a1a800664618efd5aab23eb57e334fbc1eedcc
2 changes: 1 addition & 1 deletion packages/instrumentation_adapter/example/lib/main.dart
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import 'package:flutter/material.dart';
import 'dart:async';
import 'package:flutter/material.dart';

import 'package:flutter/services.dart';
import 'package:instrumentation_adapter/instrumentation_adapter.dart';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ void main() {
// Verify that platform version is retrieved.
expect(
find.byWidgetPredicate(
(Widget widget) => widget is Text &&
widget.data.startsWith('Running on:'),
(Widget widget) =>
widget is Text && widget.data.startsWith('Running on:'),
),
findsOneWidget,
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@ import 'dart:async';
import 'package:flutter/services.dart';

class InstrumentationAdapter {
static const MethodChannel _channel =
const MethodChannel('instrumentation_adapter');
static const MethodChannel _channel = MethodChannel('instrumentation_adapter');

static Future<String> get platformVersion async {
final String version = await _channel.invokeMethod('getPlatformVersion');
Expand Down
71 changes: 15 additions & 56 deletions packages/instrumentation_adapter/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,60 +1,19 @@
name: instrumentation_adapter
description: A new flutter plugin project.
name: instrumentation_test
description: Runs tests that use the flutter_test API as platform native instrumentation tests.
version: 0.0.1
author:
homepage:
author: Flutter Team <[email protected]>
homepage: https://github.com/flutter/plugins/tree/master/packages/instrumentation_adapter

environment:
sdk: ">=2.1.0 <3.0.0"
environment:
sdk: ">=2.1.0 <3.0.0"

dependencies:
flutter:
sdk: flutter

dev_dependencies:
flutter_test:
sdk: flutter

# For information on the generic Dart part of this file, see the
# following page: https://dart.dev/tools/pub/pubspec
dependencies:
flutter:
sdk: flutter
flutter_test:
sdk: flutter

# The following section is specific to Flutter.
flutter:
# This section identifies this Flutter project as a plugin project.
# The androidPackage and pluginClass identifiers should not ordinarily
# be modified. They are used by the tooling to maintain consistency when
# adding or updating assets for this project.
plugin:
androidPackage: com.example.instrumentation_adapter
pluginClass: InstrumentationAdapterPlugin

# To add assets to your plugin package, add an assets section, like this:
# assets:
# - images/a_dot_burr.jpeg
# - images/a_dot_ham.jpeg
#
# For details regarding assets in packages, see
# https://flutter.dev/assets-and-images/#from-packages
#
# An image asset can refer to one or more resolution-specific "variants", see
# https://flutter.dev/assets-and-images/#resolution-aware.

# To add custom fonts to your plugin package, add a fonts section here,
# in this "flutter" section. Each entry in this list should have a
# "family" key with the font family name, and a "fonts" key with a
# list giving the asset and other descriptors for the font. For
# example:
# fonts:
# - family: Schyler
# fonts:
# - asset: fonts/Schyler-Regular.ttf
# - asset: fonts/Schyler-Italic.ttf
# style: italic
# - family: Trajan Pro
# fonts:
# - asset: fonts/TrajanPro.ttf
# - asset: fonts/TrajanPro_Bold.ttf
# weight: 700
#
# For details regarding fonts in packages, see
# https://flutter.dev/custom-fonts/#from-packages
flutter:
plugin:
androidPackage: io.flutter.plugins.instrumentationtest
pluginClass: InstrumentationTestPlugin