import UIKit
import Flutter
import google_mobile_ads


@UIApplicationMain
@objc class AppDelegate: FlutterAppDelegate {
  override func application(
    _ application: UIApplication,
    didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?
  ) -> Bool {

      GeneratedPluginRegistrant.register(with: self)

      let listTileFactory = ListTileNativeAdFactory()
          FLTGoogleMobileAdsPlugin.registerNativeAdFactory(
              self, factoryId: "listTileNativeAdFactory", nativeAdFactory: listTileFactory)

    return super.application(application, didFinishLaunchingWithOptions: launchOptions)
  }
}
