Updates to espresso docs (#2461)
* updates to espresso docs
diff --git a/packages/espresso/CHANGELOG.md b/packages/espresso/CHANGELOG.md
index 116f3aa..32fdf15 100644
--- a/packages/espresso/CHANGELOG.md
+++ b/packages/espresso/CHANGELOG.md
@@ -1,3 +1,7 @@
+## 0.0.1+1
+
+* Updates to README to avoid unnecessary imports and warnings.
+
## 0.0.1
* Initial open-source release of Espresso bindings for Flutter.
diff --git a/packages/espresso/README.md b/packages/espresso/README.md
index c0678e9..7747560 100644
--- a/packages/espresso/README.md
+++ b/packages/espresso/README.md
@@ -10,7 +10,7 @@
of the Android app used for testing. It's best to put this in a debug or androidTest
AndroidManifest.xml so that you don't ship it to end users. (See the example app of this package.)
-Add dependencies to your build.gradle:
+Add the following dependencies in android/app/build.gradle:
```groovy
dependencies {
@@ -18,32 +18,7 @@
testImplementation "com.google.truth:truth:1.0"
androidTestImplementation 'androidx.test:runner:1.1.1'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.1.1'
-
- // Core library
api 'androidx.test:core:1.2.0'
-
- // AndroidJUnitRunner and JUnit Rules
- androidTestImplementation 'androidx.test:runner:1.1.0'
- androidTestImplementation 'androidx.test:rules:1.1.0'
-
- // Assertions
- androidTestImplementation 'androidx.test.ext:junit:1.0.0'
- androidTestImplementation 'androidx.test.ext:truth:1.0.0'
- androidTestImplementation 'com.google.truth:truth:0.42'
-
- // Espresso dependencies
- androidTestImplementation 'androidx.test.espresso:espresso-core:3.1.0'
- androidTestImplementation 'androidx.test.espresso:espresso-contrib:3.1.0'
- androidTestImplementation 'androidx.test.espresso:espresso-intents:3.1.0'
- androidTestImplementation 'androidx.test.espresso:espresso-accessibility:3.1.0'
- androidTestImplementation 'androidx.test.espresso:espresso-web:3.1.0'
- androidTestImplementation 'androidx.test.espresso.idling:idling-concurrent:3.1.0'
-
- // The following Espresso dependency can be either "implementation"
- // or "androidTestImplementation", depending on whether you want the
- // dependency to appear on your APK's compile classpath or the test APK
- // classpath.
- androidTestImplementation 'androidx.test.espresso:espresso-idling-resource:3.1.0'
}
```
@@ -91,10 +66,12 @@
You'll need to create a test app that enables the Flutter driver extension.
You can put this in your test_driver/ folder, e.g. test_driver/example.dart.
+Replace `<app_package_name>` with the package name of your app. If you're
+developing a plugin, this will be the package name of the example app.
```dart
import 'package:flutter_driver/driver_extension.dart';
-import '../lib/main.dart' as app;
+import 'package:<app_package_name>/main.dart' as app;
void main() {
enableFlutterDriverExtension();
diff --git a/packages/espresso/pubspec.yaml b/packages/espresso/pubspec.yaml
index 70a05ab..0e795a4 100644
--- a/packages/espresso/pubspec.yaml
+++ b/packages/espresso/pubspec.yaml
@@ -1,6 +1,6 @@
name: espresso
description: Java classes for testing Flutter apps using Espresso.
-version: 0.0.1
+version: 0.0.1+1
homepage: https://github.com/flutter/plugins/espresso
environment: