Skip to content

Android X Library Support #42

@aitJess

Description

@aitJess

Currently, android has stopped maintaining the support library, opting to replace it with the Android X library. This has caused issues when building with other plugins that use android x libraries, and unless updated will eventually use deprecated libraries. If you attempt to build the project with android X support enabled, it fails when building.

Reproduce Scenario (including but not limited to)

Build with an app that has Android X Support enabled

Steps to Reproduce

Add the plugin to your cordova project, and then add this code to your cordova project's config to enable Android X support.
<platform name="android"> <preference name="AndroidXEnabled" value="true" /> </platform>
And then build.

Cordova CLI version and cordova platform version

This was done using Cordova v10.0.0 and Cordova-Android v9.0.0

Namely, the plugin uses FloatRange, IntRange, NotNull, and Nullable from the support library.
I've already replaced the code using the support library in my own project, and have created a fork to fix this issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions