Skip to content

Bintray mirror of React Native

James Treanor edited this page Jan 21, 2019 · 1 revision

Unlike almost every other Android library, React Native is not distributed through a maven repository (see this issue).

To allow native Android projects to include gutenberg-mobile without requiring a local Node environment, we maintain a maven mirror of the React Native packages that are required to use it here: https://bintray.com/wordpress-mobile/react-native-mirror.

You can use the repo in an Android project by adding this to the repositories block of your build.gradle:

maven { url "https://dl.bintray.com/wordpress-mobile/react-native-mirror/" }

Updating the repository

If the version of react-native or jsc-android being used in gutenberg-mobile is updated, the new versions must also be updated on the maven repo.

To do this, someone with write access to the Bintray repo should follow these steps:

  1. Check out the version of gutenberg-mobile which uses the new package versions.
  2. Run ./bin/update-bintray-repo.sh.
  3. Provide your Bintray username and API key when prompted (you can leave "Default package licenses" blank).
  4. It will then upload the packages to Bintray.

You can confirm that the new versions have been added by checking Bintray here.

Clone this wiki locally