I am trying to set up a build for a React Native app on App Center. I have linked the app to the Azure Devops Repository, and selected the branch and attempted to create a build.
However, when I try to create the build, it finds the package.json but does not find any build variants:
I have confirmed that it is finding the package.json for the app (I remove it and it complains). I know that the build variants come from the build types in the build.gradle, which has a release variant in it.
I've googled the heck out of this and burned two evenings on it. I have another project that builds just fine, and I cannot see the difference between them.
Why is AppCenter not able to pick up the build variants? How do I configure them?
Just to close this question, the issue is a limitation currently on Azure DevOps.
As reported by MS and the maximum depth of the package.json is actually only two levels deep, not 4 levels as described in their documentation.