Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

cordova-androidx-build

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cordova-androidx-build

This plugin helps to build your app with AndroidX library.

  • 1.0.2
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
927
decreased by-23.39%
Maintainers
1
Weekly downloads
 
Created
Source

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 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

<dependency id="cordova-androidx-build" version="1.0.0">

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-adaptercordova-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 processafter cordova preparegradle sync
mechanismcordova hook scriptgradle

Keywords

FAQs

Package last updated on 30 May 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc