package com.atmob.map_amap_android;


import android.app.Activity;

import androidx.lifecycle.LifecycleOwner;

import com.atmob.map_amap_android.amap.MapViewFactory;
import com.atmob.map_amap_android.contants.Constants;
import com.google.gson.Gson;

import io.flutter.embedding.engine.plugins.FlutterPlugin;

public class FlutterViewPlugin {


    public static void registerWith(FlutterPlugin.FlutterPluginBinding flutterPluginBinding, Activity mActivity, LifecycleOwner lifecycleProvider) {
        flutterPluginBinding.getPlatformViewRegistry().registerViewFactory(Constants.MAP_WIDGET_VIEW_TYPE, new MapViewFactory(mActivity, flutterPluginBinding.getBinaryMessenger(), lifecycleProvider));
    }
}
