npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

cordova-androidx-build

v1.0.4

Published

This plugin helps to build your app with AndroidX library.

Downloads

5,311

Readme

Cordova AndroidX Build plugin

What is this plugin?

Google introduced AndroidX libraries which replaces old Android support libraries.

Since Cordova will introduce AndroidX from cordova-android@9, however your plugin needs to support both with AndroidX and without AndroidX.

This plugin migrates user's project code to AndroidX automatically when your plugin code is build at the time. If the project does not specify AndroidX, this plugin migrates the user's project code migrates Android Support Library.

How to use this plugin?

Just install this plugin

$ cordova plugin add cordova-androidx-build

Or use this plugin as dependency in your plugin.xml

<?xml version='1.0' encoding='utf-8'?>
<plugin ...>
  <platform name="android">
    ...
    <dependency id="cordova-androidx-build" />  <-- Add this line
  </platform>
</plugin>

How does this plugin work?

The purpose of this plugin is to build your plugin code on any environments. That's why this plugin has two migrates mode:

  • If AndroidX is not available: this plugin changes the project code migrates to support library.

  • If AndroidX is available: this plugin changed the project code migrates to AndroidX.

What's the difference between cordova-plugin-androidx-adapter?

cordova-plugin-androidx-adapter migrates your plugin code to AndroidX. This plugin also migrates your plugin code to AndroidX.

However cordova-plugin-androidx-adapter works on only your PC, because it uses Cordova Hook Script mechanism. Because of this, cordova-plugin-androidx-adapter not cloud build services, such as PhoneGap Build.

This plugin is written in Gradle script, which works on your PC or cloud build services.

| | cordova-plugin-androidx-adapter | cordova-androidx-build | |----------------------------------|---------------------------------|---------------------------| | support library -> AndroidX | :white_check_mark: | :white_check_mark: | | support library <- AndroidX | :x: | :white_check_mark: | | work on PC | :white_check_mark: | :white_check_mark: | | work on cloud services | :x: | :white_check_mark: | | when execute the process | after cordova prepare | gradle sync | | mechanism | cordova hook script | gradle |