How to save two versions of the application?

I have two branches of the same master

version1
version2

I would like to be able to simultaneously use both versions of the same application on my phone, without overwriting each other.

Is it possible?

thank

+4
source share
1 answer

Yes. It is possible.

Change the package name in the Android manifest or build.gradle application.

Example:

Application Version 1

app build gradle:

defaultConfig {
        applicationId "com.example.application.appone"
        ...
              }

manifest file:

<manifest
    package="com.example.application.appone">

Application Version 2

app build gradle:

defaultConfig {
        applicationId "com.example.application.apptwo"
        ...
              }

manifest file:

<manifest
    package="com.example.application.apptwo">
+4
source

Source: https://habr.com/ru/post/1675865/


All Articles