1

Android CI(gitlab, yml): how to build two APK files from the same project, only with different api urls. So that when installing the test version and the prod version do not overlap (reinstall) each other, and were installed on the device as different applications. I had in Build.Gradle file two api urls: for test and prod, and by my hand i can did it, but i need automize this proccess by CI.

  • Android treats APKs with the same package ID as the same app. You can use gradle flavors to create similar apps from the same project with small changes. You can then execute two separate build commands in your CI. One for each build type or flavor. See here: https://stackoverflow.com/questions/18491649/how-to-change-the-android-app-package-name-when-assembling-with-gradle – Alexander Hoffmann Oct 22 '21 at 12:57

0 Answers0