Skip to content

Add recipe for developing plugins on Android #7776

Open
@xster

Description

@xster

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

No one assigned

    Labels

    a.cookbookRelates to a cookbook recipe or guidedev.existing-appsRelates to integrating Flutter into existing appsdev.pluginRelates to Flutter pluginsfix.code-sampleNeeds new or updated code samplefrom.flutter-sdkReported via move from flutter/flutterlang.native-codeInvolves Swift, ObjC, Java, or Kotlin code for mobile appsp3-lowValid but not urgent concern. Resolve when possible. Encourage upvote to surface.target.AndroidTarget apps on the Android Platform

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions