| // Copyright 2014 The Flutter Authors. All rights reserved. |
| // Use of this source code is governed by a BSD-style license that can be |
| // found in the LICENSE file. |
| |
| package io.flutter.demo.gallery; |
| |
| import androidx.annotation.NonNull; |
| import io.flutter.embedding.android.FlutterActivity; |
| import io.flutter.embedding.engine.FlutterEngine; |
| |
| public class MainActivity extends FlutterActivity { |
| private FlutterGalleryInstrumentation instrumentation; |
| |
| /** Instrumentation for testing. */ |
| public FlutterGalleryInstrumentation getInstrumentation() { |
| return instrumentation; |
| } |
| |
| @Override |
| public void configureFlutterEngine(@NonNull FlutterEngine flutterEngine) { |
| super.configureFlutterEngine(flutterEngine); |
| instrumentation = new FlutterGalleryInstrumentation(flutterEngine.getDartExecutor()); |
| } |
| } |