Skip to content

[camerax] ☂️ Clean up wrapped native classes #125926

Closed

Description

@camsim99

As the android_camera_camerax plugin has been under development, there have a number of tasks that have not blocked PRs but are important technical debt to pay down. This umbrella issue covers those tasks that apply to refactoring wrapped native classes:

  • Refactor logic in constructors/create methods to helper methods or to callers of those methods.
  • Remove any redundant documentation added or left by the autogenerator.
  • [Dart-specific] Make Dart Host API implementations private.
  • There are currently two ways to create files to save recordings to; condense to one.
  • [Native-specific] Move checks for objects being managed by an InstanceManager to the Flutter API implementations themselves versus where instances of those implementations are used.
  • Use command pattern to use handlers to create objects of each type that is represented by a LiveDataSupportedType (see original comment).

Activity

  1. added
    c: new featureNothing broken; request for a new capability
    platform-androidAndroid applications specifically
    packageflutter/packages repository. See also p: labels.
    P3Issues that are less important to the Flutter project
    c: tech-debtTechnical debt, code quality, testing, etc.
    on May 2, 2023
  2. camsim99 commented on Jul 7, 2025

    @camsim99
    ContributorAuthor

    We no longer have wrapper classes with proxy apis now used!

  3. github-actions commented on Jul 21, 2025

    @github-actions

    This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v and a minimal reproduction of the issue.

  4. locked as resolved and limited conversation to collaborators on Jul 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3Issues that are less important to the Flutter projectc: new featureNothing broken; request for a new capabilityc: tech-debtTechnical debt, code quality, testing, etc.p: cameraThe camera pluginpackageflutter/packages repository. See also p: labels.platform-androidAndroid applications specificallyteam-androidOwned by Android platform teamtriaged-androidTriaged by Android platform team

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions