doubleW
doubleW

Reputation: 688

Managing architecture release for react-native android

Google set an deadline for updating the apk files for apps so they need to have separate files for all architectures versions.

So in the build.gradle file I have made the following changes:

def enableSeparateBuildPerCPUArchitecture = true
...
splits {
        abi {
            ...
            include "armeabi-v7a", "x86", "arm64-v8a", "x86-64"
            ...
        }
    }
...
applicationVariants.all { variant ->
        variant.outputs.each { output ->

            def versionCodes = ["armeabi-v7a":1, "x86":2, "arm64-v8a":3, "x86-64":4]
            ...
        }
    }

At first I thought that it worked fine since in the ...android\app\build\outputs\apk\release directory I have found few files instead of one. However first thing that surprised me was the fact that I received 3 files versions : arm64-v8a, x86 and armeabi-v7a. Is this correct that x86-64 version was not generated?

The second thing is that when I updated the files on google play console, I am still getting the message that the files are not separated accordingly by the architecture version. Is there anything more that I should have done?

Upvotes: 0

Views: 1020

Answers (1)

doubleW
doubleW

Reputation: 688

Ok, I found it. Should use "x86_64" instead of "x86-64". Then it generates all 4 versions.

Upvotes: 2

Related Questions