Upload To Google Store

Upload To Google Play
  1. Google Play Developer Console
  2. Link Developer Account with Google Wallet
  3. Create Application
  4. App Store Listing
  5. Upload App Bundles or APK to Google Play
  6. Time for Content Rating
  7. Fix App Pricing and Distribution
  8. Finally, Publish the Application

Android App Deployment Setup

Android Deployment - Publish on Store
  1. Generate an upload Key - Window Keytool
    • Keytool -genkeypair -v -storetype PKCS12 -keystore
    • Keytool must be run from: C:\Program Files\Java\jdkxx.xx.x\bin as administrator
  2. MACOS - Run Following Command
    • /usr/libexec/java_home → It will output the JDK
    • /Library/Java/JavaVirtualMachines/jdkxx.x.x.jdk/Contents/home → Navigate to this directory
    • cd your jdk/path
  3. Run the Keytool Command
    • sudo keytool -genkey -v -keystore
  4. Setting Up Gradle Variables
    • Place the my_upload_key.keystore in android/app
    • Edit the file ~/.gradle/gradle.properties or android/gradle.properties
                            
                              MYAPP_UPLOAD_STORE_FILE = my-upload-key.keystore
                              MYAPP_UPLOAD_KEY_ALIAS = my-key-alias
                              MYAPP_UPLOAD_STORE_PASSWORD = xxxxx
                              MYAPP_UPLOAD_KEY_PASSWORD = xxxxx
                            
                          
  5. Add Signing Config to our App's Gradle Config
    • android/app/build.gradle
  6. Generate the Release AAB or APK File
    • Run following command in project terminal
    • Go to android directory: cd android
    • ./gradle buildRelease or assembleRelease
  7. Enable Proguard to Reduce the Size of the APK
    • To run release apk:npx react-native build-android --mode=release
    • To run release apk:npm run android --mode="release"
    • def enableProguardInReleaseBuilds = true
  8. Upload ABB file in googl play store