Skip to content

Instantly share code, notes, and snippets.

@shivam1283
Last active August 1, 2022 07:39
Show Gist options
  • Save shivam1283/09a06edcad336cc861e62e31ece467d8 to your computer and use it in GitHub Desktop.
Save shivam1283/09a06edcad336cc861e62e31ece467d8 to your computer and use it in GitHub Desktop.
Android studio set up

android release

staging

appcenter codepush release-react -a vitalAdmin/vitalApp -d Staging

Production

appcenter codepush release-react -a vitalAdmin/vitalApp -d Production

iOS release

staging

appcenter codepush release-react -a vitalAdmin/vitalApp-iOS -d Staging

Production

appcenter codepush release-react -a vitalAdmin/vitalApp-iOS -d Production

Clean the build

cd android
./gradlew clean

Changes in /android/app/build.gradle

  • Mandatory- Increase the versionCode in multiples of 5
  • Change versionName
  • make sure that enable enableSeparateBuildPerCPUArchitecture

Generate apk (or generate aab)

  • run npm script android-apk
  • build can be found in /android/app/build/outputs/apk/release
  • Copy the apks in separate folder (excluding)

Generate aab

  • ./gradlew bundleRelease

Update release on play store

  • Open the 'All apps'
  • Select Vital: Affordable & Personalization...
  • Select 'Production' in left side bar
  • Click on 'Edit Release' or 'Create new Release'
  • Upload apks generated in 'App bundles' except app-universal-release.apk
  • Add Release Notes in .
  • Save

References Release doc

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment