Open
Description
Via flutter/flutter#44166, we'll start asking plugin developers to create plugins compatible with both old and new Android embeddings their users will use. Since we never documented how to write Java code for creating plugins, https://flutter.dev/docs/development/packages-and-plugins/developing-packages#step-2b-add-android-platform-code-javakt, it would be good to have a breakout for that topic.
As a potential example, add a section in https://flutter.dev/docs/cookbook for Android plugin development with a realistic scenario and walk through how the old PluginRegistry and the new FlutterPlugin APIs work.
Metadata
Metadata
Assignees
Labels
Relates to a cookbook recipe or guideRelates to integrating Flutter into existing appsRelates to Flutter pluginsNeeds new or updated code sampleReported via move from flutter/flutterInvolves Swift, ObjC, Java, or Kotlin code for mobile appsValid but not urgent concern. Resolve when possible. Encourage upvote to surface.Target apps on the Android Platform