Skip to content

[camera_android] Bump robolectric version to allow configurations for SDK >= 31 #119752

@camsim99

Description

@camsim99

The current robolectric version (4.5) used for the Android camera plugin does not support configuring tests to run on >= SDK 31. However, there are a number of tests in the plugin that configure tests this way, e.g. ResolutionFeatureTest.java. The robolectric version should be bumped to allow these tests to run.

Having tried to bump it experimentally, I know that this causes errors concerning unsupported Mockito operations, and these will have to be fixed as well to land the bump.

Dependabot may try to bump this version and create a PR, to which this issue should be linked.

Metadata

Metadata

Assignees

Labels

P1High-priority issues at the top of the work listp: cameraThe camera pluginpackageflutter/packages repository. See also p: labels.platform-androidAndroid applications specifically

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions