title: React Native: Version code too big for Android using enableSeparateBuildPerCPUArchitecture
body: <p>I was compiling my React Native App for Android having <strong>enableSeparateBuildPerCPUArchitecture</strong> to false but since I read if I set to true, then the app will reduce like 4mb and it's true.</p>
  
  <p>So my current version code was 9 so I set to 10 the new one and when I created a new release with that option to <strong>true</strong> I uploaded it to my Google Play dashboard and I realised the new version code is not 10 but is 1048586 :/</p>
  
  <p>Fortunately I don't published that version and I just removed it but I'm wondering what happened and if that's normal and if I create a new version after that, the number will increate just 1 unit like 1048586 to 1048587?</p>
  
  <p>Thanks!</p>
  
  <p><strong>EDIT</strong></p>
  
  <p>I found the line of code that set the version code</p>
  
  <pre><code>applicationVariants.all { variant -&gt;
      variant.outputs.each { output -&gt;
          // For each separate APK per architecture, set a unique version code as described here:
          // http://tools.android.com/tech-docs/new-build-system/user-guide/apk-splits
          def versionCodes = ["armeabi-v7a":1, "x86":2]
          def abi = output.getFilter(OutputFile.ABI)
          if (abi != null) {  // null for the universal-debug, universal-release variants
              output.versionCodeOverride =
                      versionCodes.get(abi) * 1048576 + defaultConfig.versionCode
          }
      }
  }
  </code></pre>
  
  <p>But still I couldn't find the real reason about why it's necessary to increase the version code to a big number</p>