(Optional) Create an EmbeddingV1Activity.java file]
that uses the v1 embedding for the example project
in the same folder as MainActivity to
keep testing the v1 embedding’s compatibility
with your plugin. Note that you have to manually
register all the plugins instead of using
GeneratedPluginRegistrant.  For example:

    
    
 package io.flutter.plugins.batteryexample;

 import android.os.Bundle;
 import io.flutter.app.FlutterActivity;
 import io.flutter.plugins.battery.BatteryPlugin;

 public class EmbeddingV1Activity extends FlutterActivity {
   @Override
   protected void onCreate(Bundle savedInstanceState) {
     super.onCreate(savedInstanceState);
     BatteryPlugin.registerWith(registrarFor("io.flutter.plugins.battery.BatteryPlugin"));
   }
 }