| // Copyright 2017 The Chromium 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.plugins.localauthexample; |
| |
| import io.flutter.embedding.android.FlutterFragmentActivity; |
| import io.flutter.embedding.engine.FlutterEngine; |
| import io.flutter.plugins.localauth.LocalAuthPlugin; |
| |
| public class MainActivity extends FlutterFragmentActivity { |
| // TODO(bparrishMines): Remove this once v2 of GeneratedPluginRegistrant rolls to stable. https://github.com/flutter/flutter/issues/42694 |
| @Override |
| public void configureFlutterEngine(FlutterEngine flutterEngine) { |
| flutterEngine.getPlugins().add(new LocalAuthPlugin()); |
| } |
| } |