GeneratedPluginRegistrant.ets 1.02 KB
import { FlutterEngine, Log } from '@ohos/flutter_ohos';
import FlutterBuglyPlugin from 'flutter_bugly';
import FlutterImageCompressOhosPlugin from 'flutter_image_compress_ohos';
import FluwxPlugin from 'fluwx';
import PhotoManagerPlugin from 'photo_manager';

/**
 * Generated file. Do not edit.
 * This file is generated by the Flutter tool based on the
 * plugins that support the Ohos platform.
 */

const TAG = "GeneratedPluginRegistrant";

export class GeneratedPluginRegistrant {

  static registerWith(flutterEngine: FlutterEngine) {
    try {
      flutterEngine.getPlugins()?.add(new FlutterBuglyPlugin());
      flutterEngine.getPlugins()?.add(new FlutterImageCompressOhosPlugin());
      flutterEngine.getPlugins()?.add(new FluwxPlugin());
      flutterEngine.getPlugins()?.add(new PhotoManagerPlugin());
    } catch (e) {
      Log.e(
        TAG,
        "Tried to register plugins with FlutterEngine ("
          + flutterEngine
          + ") failed.");
      Log.e(TAG, "Received exception while registering", e);
    }
  }
}