File tree Expand file tree Collapse file tree
packages/flutter_plugin_android_lifecycle
android/app/src/main/java/io/flutter/plugins/flutter_plugin_android_lifecycle_example Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ ## 1.0.1
2+ * Register the E2E plugin in the example app.
3+
14## 1.0.0
25
36* Introduces a ` FlutterLifecycleAdapter ` , which can be used by other plugins to obtain a ` Lifecycle `
Original file line number Diff line number Diff line change 66
77import android .util .Log ;
88import androidx .lifecycle .Lifecycle ;
9+ import dev .flutter .plugins .e2e .E2EPlugin ;
910import io .flutter .embedding .android .FlutterActivity ;
1011import io .flutter .embedding .engine .FlutterEngine ;
1112import io .flutter .embedding .engine .plugins .FlutterPlugin ;
@@ -17,6 +18,7 @@ public class MainActivity extends FlutterActivity {
1718 @ Override
1819 public void configureFlutterEngine (FlutterEngine flutterEngine ) {
1920 flutterEngine .getPlugins ().add (new TestPlugin ());
21+ flutterEngine .getPlugins ().add (new E2EPlugin ());
2022 }
2123
2224 private static class TestPlugin implements FlutterPlugin {
Original file line number Diff line number Diff line change @@ -8,14 +8,14 @@ environment:
88dependencies :
99 flutter :
1010 sdk : flutter
11+ e2e : " ^0.2.1"
1112
1213dev_dependencies :
1314 flutter_test :
1415 sdk : flutter
1516
1617 flutter_plugin_android_lifecycle :
1718 path : ../
18- e2e : " ^0.2.1"
1919
2020flutter :
2121 uses-material-design : true
Original file line number Diff line number Diff line change 11name : flutter_plugin_android_lifecycle
22description : Flutter plugin for accessing an Android Lifecycle within other plugins.
3- version : 1.0.0
3+ version : 1.0.1
44author : Flutter Team <flutter-dev@googlegroups.com>
55homepage : https://github.com/flutter/plugins/tree/master/packages/flutter_plugin_android_lifecycle
66
You can’t perform that action at this time.
0 commit comments