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

jetifier

Package Overview
Dependencies
Maintainers
1
Versions
24
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jetifier - npm Package Compare versions

Comparing version 1.0.0-beta04.2 to 1.0.0

bin/jetify

8

package.json
{
"name": "jetifier",
"version": "1.0.0-beta04.2",
"version": "1.0.0",
"description": "jetifier from Android Studio, in npm package format",
"main": "index.js",
"bin": {
"jetifier-standalone": "./bin/jetifier-standalone"
"jetifier-standalone": "./bin/jetifier-standalone",
"jetfiy": "./bin/jetify"
},
"scripts": {
"dev-sync": "cp -rv bin index.js lib package.json src ../../Kullki/kscoreapp-rxp/node_modules/jetifier",
"shipit": "np",

@@ -32,4 +34,4 @@ "test": ""

"devDependencies": {
"np": "^5.0.2"
"np": "^5.0.3"
}
}

@@ -5,3 +5,3 @@ # jetifier

## Usage
## Usage for jar/zip/aar files

@@ -15,15 +15,21 @@ 1. `npm install jetifier` (or maybe `npm install -g jetifier` to make it globally available)

## Versioning (or "why beta?")
## Usage for source files
The jetifier-standalone utility is from Google, and they currently have it as beta
### To jetify / convert node_modules dependencies to AndroidX
In this package I preserve their versioning, and just append one more pre-release semantic version
so that I have space to publish new versions of the package even if they never release another one.
Imagine you are a react-native project and one of your library dependencies converts to AndroidX.
Now you need to convert your app, but react-native links source code directly and jetifier doesn't handle that.
In general the entire version prior to the last '.1' (or similar) is the upstream version.
If there was a way to take your react-native dependencies and convert them, then you could convert your app and use AndroidX dependencies.
To be precise if the version is `1.0.0-beta04.3`, the upstream version is `1.0.0beta04`, and it is my third re-package of that version.
1. Make sure your app is AndroidX (this is documented elsewhere but is just a refactor in Android Studio)
1. `npm install jetifier` (or use yarn, or install it globally - just install the package)
1. `npx jetify`
1. Get a cup of coffee, it takes a while. Performance improvements can come later.
1. `npx react-native run-android` (this should compile and work)
Please note that any time you install a new dependency, or reinstall node modules, you will need to run `npx jetify` again.
## Contributing
Please feel free to pull requests or log issues, especially to update versions if I somehow fail to notice an update. Thanks!
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