Skip to content

Commit

Permalink
[flutter_plugin_android_lifecycle] register the e2e plugin in the exa…
Browse files Browse the repository at this point in the history
…mple app (flutter#2223)
  • Loading branch information
amirh authored Oct 21, 2019
1 parent e61ba6e commit 655dd19
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 2 deletions.
3 changes: 3 additions & 0 deletions packages/flutter_plugin_android_lifecycle/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
## 1.0.1
* Register the E2E plugin in the example app.

## 1.0.0

* Introduces a `FlutterLifecycleAdapter`, which can be used by other plugins to obtain a `Lifecycle`
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

import android.util.Log;
import androidx.lifecycle.Lifecycle;
import dev.flutter.plugins.e2e.E2EPlugin;
import io.flutter.embedding.android.FlutterActivity;
import io.flutter.embedding.engine.FlutterEngine;
import io.flutter.embedding.engine.plugins.FlutterPlugin;
Expand All @@ -17,6 +18,7 @@ public class MainActivity extends FlutterActivity {
@Override
public void configureFlutterEngine(FlutterEngine flutterEngine) {
flutterEngine.getPlugins().add(new TestPlugin());
flutterEngine.getPlugins().add(new E2EPlugin());
}

private static class TestPlugin implements FlutterPlugin {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,14 @@ environment:
dependencies:
flutter:
sdk: flutter
e2e: "^0.2.1"

dev_dependencies:
flutter_test:
sdk: flutter

flutter_plugin_android_lifecycle:
path: ../
e2e: "^0.2.1"

flutter:
uses-material-design: true
2 changes: 1 addition & 1 deletion packages/flutter_plugin_android_lifecycle/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: flutter_plugin_android_lifecycle
description: Flutter plugin for accessing an Android Lifecycle within other plugins.
version: 1.0.0
version: 1.0.1
author: Flutter Team <flutter-dev@googlegroups.com>
homepage: https://github.com/flutter/plugins/tree/master/packages/flutter_plugin_android_lifecycle

Expand Down

0 comments on commit 655dd19

Please sign in to comment.