Signing React Native Android APKs on Microsoft App Center

  • No credentials/keystore in the repository.
  • Build and sign it locally using the keystore (not checked into version control) with configuration using environment variables as part of the general build process.
  • Build it on MS App Center using their Branch Configuration for keystore upload and configuration.

What will happen?

Setting environment variables

ORG_GRADLE_PROJECT_MYAPP_RELEASE_STORE_FILE=myapp-dev.keystore
ORG_GRADLE_PROJECT_MYAPP_RELEASE_KEY_ALIAS=myapp-alias
ORG_GRADLE_PROJECT_MYAPP_RELEASE_STORE_PASSWORD=your-password
ORG_GRADLE_PROJECT_MYAPP_RELEASE_KEY_PASSWORD=your-password

Configure Gradle

Configure App Center

Upload your keystore and store credentials

That’s it!

Build succeeded at last!

--

--

--

Programmer, Mechanical Keyboard Aficionado, working in Frankfurt, coding Ruby/JS/Postgres/Elixir

Love podcasts or audiobooks? Learn on the go with our new app.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Christian Bäuerlein

Christian Bäuerlein

Programmer, Mechanical Keyboard Aficionado, working in Frankfurt, coding Ruby/JS/Postgres/Elixir

More from Medium

Native module for React Native using Kotlin

Using SharedPreference to store tokens with react native.

Building multi-platform React (web) and React Native (mobile) app in WSL2

React Native Notes 29: Firebase Google Sign-in Problem on Android APK