P
P
Petr Petrovich2018-04-26 14:49:40
Android
Petr Petrovich, 2018-04-26 14:49:40

How to install a separate test version of the application?

How to set up the app's build gradle file so that when run on a real device, a separate test version is installed?
It is assumed that the phone already has a stable version downloaded from google play and it is necessary that the test application be placed side by side, and not try to update the existing application.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Alexander Varakosov, 2018-04-27
@michael_bel

Using flavor. It's also a good reason to give kicks to anyone who has hardcoded the package name.

productFlavors {
        flavorDimensions "build"
        product {
            dimension "build"
        }

        develop {
            dimension "build"
            applicationIdSuffix ".dev"
            versionNameSuffix "-dev"
        }
}

P
pfg21, 2018-04-26
@pfg21

installation is guided by the package name and digital signature of the creator.
to create an alternative application - it must be renamed and re-signed.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question