GeneratedPluginRegistrant.ets 1.99 KB
import { FlutterEngine, Log } from '@ohos/flutter_ohos';
import AppUpdateCheckPlugin from 'app_update_check_plugin';
import FlutterBarcodeScannerOhosPlugin from 'flutter_barcode_scanner_ohos';
import FlutterBuglyPlugin from 'flutter_bugly';
import FlutterImageCompressOhosPlugin from 'flutter_image_compress_ohos';
import FlutterNativeContactPickerPlugin from 'flutter_native_contact_picker';
import FlutterUdidPlugin from 'flutter_udid';
import FluwxPlugin from 'fluwx';
import ImagePickerPlugin from 'image_picker_ohos';
import PackageInfoPlugin from 'package_info_plus';
import PhotoManagerPlugin from 'photo_manager';
import SaveFilePlugin from 'save_file';
import XgFlutterPlugin from 'tpns_flutter_plugin';

/**
 * 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 AppUpdateCheckPlugin());
      flutterEngine.getPlugins()?.add(new FlutterBarcodeScannerOhosPlugin());
      flutterEngine.getPlugins()?.add(new FlutterBuglyPlugin());
      flutterEngine.getPlugins()?.add(new FlutterImageCompressOhosPlugin());
      flutterEngine.getPlugins()?.add(new FlutterNativeContactPickerPlugin());
      flutterEngine.getPlugins()?.add(new FlutterUdidPlugin());
      flutterEngine.getPlugins()?.add(new FluwxPlugin());
      flutterEngine.getPlugins()?.add(new ImagePickerPlugin());
      flutterEngine.getPlugins()?.add(new PackageInfoPlugin());
      flutterEngine.getPlugins()?.add(new PhotoManagerPlugin());
      flutterEngine.getPlugins()?.add(new SaveFilePlugin());
      flutterEngine.getPlugins()?.add(new XgFlutterPlugin());
    } catch (e) {
      Log.e(
        TAG,
        "Tried to register plugins with FlutterEngine ("
          + flutterEngine
          + ") failed.");
      Log.e(TAG, "Received exception while registering", e);
    }
  }
}