7

I want to find out if any one has been able to build all the build variants of an Android application on Microsoft App Center?

When setting up the build process on App Center, you can only select one build type?

dedda1994
  • 151
  • 1
  • 15
Stillie
  • 2,647
  • 6
  • 28
  • 50

2 Answers2

5

The only way around this was to create a new "App" in appcenter, but select the other build variants. Just needed to name the application appropriately.

I would suggest turning off build on push/commit as this will eat through your build time and only build manually as you need the other build variants to be tested

Stillie
  • 2,647
  • 6
  • 28
  • 50
  • Another solution could be to have multiple 'copies' of the same branch,whereby there is some automated way of ensuring branches are always in the same state. – Tatenda Zifudzi Sep 25 '20 at 09:37
  • I have created multiple application on the AppCenter but how can I select different variants for each application on AppCenter ? – Sultan Ali Mar 16 '22 at 12:14
  • i havnt worked on AppCenter in YEARS but from what i can remember is that when you setting up the build, you are able to select the build variant for the build. You will then make your changes as so. Example: Debug build, you will select the debug build variant and in your release build you will select your release build variant – Stillie Aug 11 '22 at 08:04
1

Try this:

  1. Create different branches for your environments. Let's say you have staging branch for instance.
  2. Next, you add a GitHub action to sync staging with master. You can make use of this GitHub Action to do that easily.
  3. Finally configure the staging branch on AppCenter with different config as you wish.

AppCenter is also tracking this feature request here. Hopefully this will be available soon.

Justin Joy
  • 355
  • 3
  • 11