|
6 | 6 |
|
7 | 7 | import android.content.Context;
|
8 | 8 | import androidx.annotation.NonNull;
|
9 |
| -import androidx.annotation.Nullable; |
10 | 9 | import androidx.lifecycle.Lifecycle;
|
11 | 10 | import io.flutter.embedding.engine.FlutterEngine;
|
12 |
| -import io.flutter.embedding.engine.FlutterEngineGroup; |
13 | 11 | import io.flutter.plugin.common.BinaryMessenger;
|
14 | 12 | import io.flutter.plugin.platform.PlatformViewRegistry;
|
15 | 13 | import io.flutter.view.TextureRegistry;
|
@@ -109,23 +107,20 @@ class FlutterPluginBinding {
|
109 | 107 | private final TextureRegistry textureRegistry;
|
110 | 108 | private final PlatformViewRegistry platformViewRegistry;
|
111 | 109 | private final FlutterAssets flutterAssets;
|
112 |
| - private final FlutterEngineGroup group; |
113 | 110 |
|
114 | 111 | public FlutterPluginBinding(
|
115 | 112 | @NonNull Context applicationContext,
|
116 | 113 | @NonNull FlutterEngine flutterEngine,
|
117 | 114 | @NonNull BinaryMessenger binaryMessenger,
|
118 | 115 | @NonNull TextureRegistry textureRegistry,
|
119 | 116 | @NonNull PlatformViewRegistry platformViewRegistry,
|
120 |
| - @NonNull FlutterAssets flutterAssets, |
121 |
| - @Nullable FlutterEngineGroup group) { |
| 117 | + @NonNull FlutterAssets flutterAssets) { |
122 | 118 | this.applicationContext = applicationContext;
|
123 | 119 | this.flutterEngine = flutterEngine;
|
124 | 120 | this.binaryMessenger = binaryMessenger;
|
125 | 121 | this.textureRegistry = textureRegistry;
|
126 | 122 | this.platformViewRegistry = platformViewRegistry;
|
127 | 123 | this.flutterAssets = flutterAssets;
|
128 |
| - this.group = group; |
129 | 124 | }
|
130 | 125 |
|
131 | 126 | @NonNull
|
@@ -162,21 +157,6 @@ public PlatformViewRegistry getPlatformViewRegistry() {
|
162 | 157 | public FlutterAssets getFlutterAssets() {
|
163 | 158 | return flutterAssets;
|
164 | 159 | }
|
165 |
| - |
166 |
| - /** |
167 |
| - * Accessor for the {@link FlutterEngineGroup} used to create the {@link FlutterEngine} for the |
168 |
| - * app. |
169 |
| - * |
170 |
| - * <p>This is useful in the rare case that a plugin has to spawn its own engine (for example, |
171 |
| - * running an engine the background). The result is nullable since old versions of Flutter and |
172 |
| - * custom setups may not have used a {@link FlutterEngineGroup}. Failing to use this when it is |
173 |
| - * available will result in suboptimal performance and odd behaviors related to Dart isolate |
174 |
| - * groups. |
175 |
| - */ |
176 |
| - @Nullable |
177 |
| - public FlutterEngineGroup getEngineGroup() { |
178 |
| - return group; |
179 |
| - } |
180 | 160 | }
|
181 | 161 |
|
182 | 162 | /** Provides Flutter plugins with access to Flutter asset information. */
|
|
0 commit comments